I want to create a simple EA
-
I want to know the uses of the
on init
on timer
and all of them their uses. Can someone help me please -
__I want to know the uses of the
on init
on timer
and all of them their uses. Can someone help me please[/quote:20wwk26b]ON INIT mean what will happen when the first time u put the ea on your chart
ON TIMER mean what will happen when the timer set x right after u put the ea on your chart, let's say 60s, mean what will happen in the first 60s after u put the ea on your chart -
The timer also works only for live trading, it does not work for backtesting. Look at the very bottom here: http://docs.mql4.com/runtime/testing The timer event is working by itself and it does not care about ticks, it's like a clock.