Who to Block backtest on ea

 

Hello all!


Iam novice on mql4,  i would like to block the backtest of my expert advisor.

I looked, but found nothing about this.

I only see who i need to user "MQL_TESTER"

So i would like to disable backtesting of my ea.


Who can help me for  only this little option to add to my code.


Thank you 

Testing trading strategies on real ticks
Testing trading strategies on real ticks
  • www.mql5.com
The article provides the results of testing a simple trading strategy in three modes: "1 minute OHLC" using only Open, High, Low and Close prices of minute bars; detailed modeling in "Every tick" mode, as well as the most accurate "Every tick based on real ticks" mode applying actual historical data. Comparing the results allows us to assess...
 
  1. Why? You don't care. No one is likely to subscribe if they can't back test it.

  2. Test for it.
              Write logging data to text file? - MQL5 programming forum #3.2 20.04.21
 
I have read, but but I still haven’t figured out how I can block the trategy tester fonction
 
int OnInit()
{
   if(IsTesting())
      return(INIT_FAILED);
   return(INIT_SUCCEEDED);
}

In future please post in the correct section

I have moved your topic to the MQL4 and Metatrader 4 section.

Reason: