I don't think you can do it directly, you can figure out a workaround though.
Eg.:
You put someting like: if(FileReadNumber(csvhandle)==1) return; right after start(){ .
The rest of the EA (which is basically the whole EA) won't run if the file with the handle "csvhandle" contains a "1". You can rewrite this number in the file manually, or through a different program to "0" or "1", causing the EA to run or quit after line1.
This is the solution I use for this issue, I hope it helped.
Eg.:
You put someting like: if(FileReadNumber(csvhandle)==1) return; right after start(){ .
The rest of the EA (which is basically the whole EA) won't run if the file with the handle "csvhandle" contains a "1". You can rewrite this number in the file manually, or through a different program to "0" or "1", causing the EA to run or quit after line1.
This is the solution I use for this issue, I hope it helped.
Thanks Zap.
Another workaround:
Place very very very far pending order with special comment.
Check for pending order with that special comment to trigger EA on / off.
In this way if the file is corrupted of lost or whatever, you can still control the EA from any terminal available.
Ruby
Another workaround:
Place very very very far pending order with special comment.
Check for pending order with that special comment to trigger EA on / off.
In this way if the file is corrupted of lost or whatever, you can still control the EA from any terminal available.
Ruby
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
Ruby
In addition to this post: "Use script to turn experts off?"