It detects the best interval but when "Best interval" changes to true does not work ("virtual.mqh is required", see image 1c).
Virtual.mqh and all other files are in its folders (expert or include) and all they were compiled.
I also tried to add the below 2 lines in my EA code,at the beginning or in other positions, but always gives many errors when compile the EA.
#define VIRTUAL_TESTER // Ejecutamos en el entorno virtual #include <fxsaber\Virtual\Virtual.mqh> // Entorno comercial virtual
I have been trying for several hours but don´t know how to make it works.
Will thank any help.
#define BESTINTERVAL_ONTESTER // Критерий оптимизации - прибыль лучшего интервала. //#define VIRTUAL_LIMITS_TP_SLIPPAGE // Лимитники и TP исполняются по первой цене акцепта - положительные проскальзывания #define VIRTUAL_CLOSEALL_BYEND // Закрывает принудительно все ордера в конце тестирования #include <fxsaber\Virtual\Virtual.mqh> // https://www.mql5.com/ru/code/22577 #include <fxsaber\BestInterval\BestInterval.mqh> // https://www.mql5.com/ru/code/22710
Last version is here.

- www.mql5.com
I updated to last version of BestInterval and Virtual.
When compile with new lines at the beginning of the code got many errors. At the end only 3 (see image).
Thank you very much for your help
I updated to last version of BestInterval and Virtual.
When compile with new lines at the beginning of the code got many errors. At the end only 3 (see image).
Thank you very much for your help
Put these lines at the beginning, not at the end.

- Aplicaciones de trading gratuitas
- 8 000+ señales para copiar
- Noticias económicas para analizar los mercados financieros
Usted acepta la política del sitio web y las condiciones de uso
BestInterval:
Cálculo del mejor intervalo del trading.
Autor: fxsaber