Forum

MQL5 Indicator: weird behavior

Hi all, I coded a custom indicator who needs tick data to be rendered, so it starts drawing from the current bar onwards. The weird thing is that from time to time the values of the indicator for the previous rendered bars disappear, like if the indicator was restarted. Any hints

Skew between tick time and current bar

Hi all, I'm pretty new to MT4 and MQL, but I found a strange behavior on the following code: void OnTick() { int order_action_status; MqlTick last_tick; SymbolInfoTick(Symbol(),last_tick); Print("TICK: " + TimeToString(last_tick.time, TIME_DATE|TIME_SECONDS)); } That code produces an output like