This forum is in read-only mode now. You may discuss your questions on forums of MQL4.community and MQL5.community
Use script to turn experts off - remotely?Back to topics list |
|
Ruby
2007.02.01 10:20
|
|
Zap
2007.02.01 13:43
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. |
|
Ruby
2007.02.01 19:22
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 |
Download MetaTrader 5 (450 Kb, web installer) — a new terminal for financial markets
