Thread: Help with an EA
View Single Post
  #3 (permalink)  
Old 12-08-2008, 05:32 PM
icepeak icepeak is offline
Junior Member
 
Join Date: Nov 2006
Posts: 21
icepeak is on a distinguished road
It does check the last price so it should recalculate every tick. This is what I have for the iMA.

Code:
double RSI = iRSI(NULL, RSI_TF, RSI_PERIOD, PRICE_CLOSE, 0);
double MA5S = iMA(Symbol(),PERIOD_M5,MASlow,0,MODE_SMA, PRICE_CLOSE, 0);
double MA5F = iMA(Symbol(),PERIOD_M5,MAFast,0,MODE_SMA, PRICE_CLOSE, 0);
double MA1 = iMA(Symbol(),PERIOD_H4,MAPeriod,0, MODE_SMA, PRICE_CLOSE, 0);
Reply With Quote