Hi,
I'm a programmer new to MQL and to this forum. Right now I'm trying to trigger the NewTick event for an Expert Advisor attached to a chart on "open prices only" mode --which ticks for every new period for the chosen time-frame (M1, M5, M15, ...)-- so I can make use of the OnTick() function to communicate the OHLC values every -say- hour.
I've been reading throughout the documentation and couldn't figure it out, thanks in advance for any possible remark.
--
Luero
Hi Lucero,
Try to use OnTimer() function or check if Current_Time != Time on Bar 0, because basically we can't generate new tick in live.
:D
20
Hi,
I'm a programmer new to MQL and to this forum. Right now I'm trying to trigger the NewTick event for an Expert Advisor attached to a chart on "open prices only" mode --which ticks for every new period for the chosen time-frame (M1, M5, M15, ...)-- so I can make use of the OnTick() function to communicate the OHLC values every -say- hour.
I've been reading throughout the documentation and couldn't figure it out, thanks in advance for any possible remark.
--
Luero