Forum

MQL5 Economic Calendar in backtesting

The title says it all—I need to use the economic calendar for event handling during backtesting. However, as many of you know, the CalendarValueHistory function in MQL5 doesn't work during backtesting. After researching, I came across this solution: https://www.mql5.com/de/forum/319172 . While it

Multi symbol expert advisor change result depending on symbol selected in backtesting setting

Hi everyone, like the title I have this weird problem The onInit function is the following. The symbols are stored in the input variable Symbols separated by ",". I have some array for checking new bar in different timefrimes (such as TimeLastCheckTickProcessed) for each symbol and then I have an

Indicator not synchronized with expert advisor in 1 minute ohlc

Hi, i have the following system: An indicator working on M15 period acting only when a new bar is created, using a system similar to the one below bool isNewBar() { static datetime PeriodLastBarOpenTime; datetime CurrentBarOpenTime = iTime ( Symbol (), Period (), 0 ); if