Hello, I want to control the max loss of an EA---When the loss reaches a certain amount, then stop it. I know I can set a varible as a flag in start() to do that. But its not ideal since the flag will loose in many cases(like restarting the computer).
So I have to know
1) Is there a better way to tell MT4 :not run a certain EA by that EA itself ?
2) Can I use an EA to switch off MT4 expert advisor function?
one more question occurs to me
3)If my MT4 is running, but I lose the internet connection or the market is closed. Then after its back to normal, will the EA start to run from Init() automatically or from start()?
Thanks ahead.
So I have to know
1) Is there a better way to tell MT4 :not run a certain EA by that EA itself ?
2) Can I use an EA to switch off MT4 expert advisor function?
one more question occurs to me
3)If my MT4 is running, but I lose the internet connection or the market is closed. Then after its back to normal, will the EA start to run from Init() automatically or from start()?
Thanks ahead.