Hello, I am a newbie MQL5 coder - but not new to coding or trading. I understand to access the open time of the most recent bar inside a custom indicator , in OnCalculate, I need to access time[0]. However this is giving me a time in May (13), while
Hello, I am new to MetaTrader and I am trying to figure out MQL5. I am trying to create a custom indicator and need to find the opening time of the current bar. Today is August 22, 2025 - but time[0] is giving me May 13, 2025. The Data Window on the chart correctly August 22, 2025. What am I doing wrong ?