|
Multiple TF
Hi
The answer is yes. Some functions have parameter "timeframe". For example:
double iMA( string symbol, int TIMEFRAME, int period, int ma_shift, int ma_method, int applied_price, int shift)
MA1 = iMA(NULL,PERIOD_M30,FastMA,0,MODE_EMA,PRICE_MEDIAN ,i)
MA2 = iMA(NULL,PERIOD_D1,SlowMA,0,MODE_EMA,PRICE_MEDIAN, i)
Here we have two moving averages: first from half hour chart, second from daily one. Painting them together is quite complicated, but for EA it does not really matter.
hope this helps
alx
Last edited by alx; 10-10-2006 at 08:04 AM.
|