How can you make an expert end from within it own code?
Divide by zero ? .. doesn't detach it from the chart, though.
inbhm:
How can you make an expert end from within it own code?
There is no way to do so I'm afraid.How can you make an expert end from within it own code?
You can stop it working though.
bool Stop; int init() { Stop = false; } int start() { if (Stop) return (0); // EA code here // if something happens that has to stop the EA... Stop = true; return (0); }
You might want to put the Stop in a globalvar, cause the thing that stopped the
ea might change in the next execution or something...and it could start up again.
.
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register