Can anyone help me with the following.
Im trying to write an EA that runs on an hourly chart, but I want to look at whats happening on the 5 minute window too. A couple of expressions I have....
TriggerMovingAverage = iMA(Symbol(),PERIOD_M5,8,0,MODE_EMA,0,1);
both constantly return the value 0
Any ideas what I'm doing wrong, or can this just not be done?
Many thanks for any help.
Try NULL instead of Symbol() and 5 instead of PERIOD_M5 and see what happens => iClose(NULL, 5, 1)
Or do you actually have the M5 data?