How do I restrict my ea to only backrest and not trade.

 
How do I restrict my ea to only backrest and not trade.example like what is done by MQL when you download the from version of an ea and all you can do is to backrest and not trade the system..please how do I achieve this.
 
Don Kush:
How do I restrict my ea to only backrest and not trade.example like what is done by MQL when you download the from version of an ea and all you can do is to backrest and not trade the system..please how do I achieve this.

It is difficult to be sure exactly what you are asking for.

If you mean backtesting in the strategy tester, then don't attach the EA to any chart, just use the tester.

 
Keith Watford:

It is difficult to be sure exactly what you are asking for.

If you mean backtesting in the strategy tester, then don't attach the EA to any chart, just use the tester.

I want to restrict ea to only backrest when I send them to my clients 

 
Don Kush:

I want to restrict ea to only backrest when I send them to my clients 

Use something like

if(!IsTesting())

  return;    // You can issue an alert and/or use ExpertRemove() instead