How to get the current backtesting mode in code?

 
Hi,

I'ld like to know: is there a way, like via a function+enumerator, to know, from inside the code, if the current running optimization/backtesting is using which system? (OHLC1 min, fake tick, real tick, etc.)

I couldn't find anything in the F1 :T
 
You test code. The code should never care that it is being tested (diagnostic messages excepted).
          Detect optimization mode programmatically - Expert Advisors - MQL5 programming forum (2020.05.15)
 
William Roeder #:
You test code. The code should never care that it is being tested (diagnostic messages excepted).
          Detect optimization mode programmatically - Expert Advisors - MQL5 programming forum (2020.05.15)

Hmm fine :) 

 

It is poissible. Not without DLL.

This library allows you to do so.

You do have to read the Russian thread or study the code to find out how.