I am a newbie to MQ4. I am trying to create an EA that places the order after a few bars from a Moving Average Crossover. I know how to identify the Moving Average crossover. I know how to count the number of bars. But when I combine these two into a single EA I cannot get the expected result. Can anyone help me please?
The iBarShift() function searches for bar by open time. The function returns bar shift with the open time specified. But my concern is how to count the number of bars after a my concern is hot to count the number of bars after a moving average cross over. Please help me.