Forum

SeriesInfoInteger("EURUSD",0,5) randomly returning 1970.01.01 00:00:00. bug?

That is, in other words, this: void OnTick { Print ( ( datetime ) SeriesInfoInteger ( Symbol (), PERIOD_CURRENT , SERIES_LASTBAR_DATE ) ); } normally returns the proper server time for the last bar for the current period whichever it is; however it randomly returns "1970.01.01 00:00:00" for no

NewTick event per period on live trading, possible?

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