How to limit function of Demo EA type of utility - page 2

 
Paul Anscombe:

It seems that the T&Cs may have been tweaked since I last looked.. as before you were not allowed to make any restrictions to market products. However, this seems t have been watered down in the rules.

To achieve what you want you need to check if the Ea is running in the tester or not, you can do that by looking it up

https://www.mql5.com/en/docs/constants/environment_state/mql5_programm_info

Thank you sir

Reason: