- Market Hours Indicators
- Simple experts
- [Archive!] Writing an advisor for free
In my EA, I've got this thing called NoNewOrders (true/false) which probably doesn't exist in other EAs.
I haven't got around to implementing StopOperation. When is that supposed to cut in?
bool enabled=true; start(){ if (!enabled) return; ... if (condition) enabled=false;
- Remove an EA through MQL4 code
In my EA, I've got this thing called NoNewOrders (true/false) which probably doesn't exist in other EAs.
I haven't got around to implementing StopOperation. When is that supposed to cut in?
That sounds more like Baldrick. Blackadder would actually like the EA to stop under certain conditions when he is away partying - so not actually there to click anything!!!!
Thanks for that - Guess it really was simple in the end, especially when you see someone else's solution!!!!
BTW....
As a non_programmer, is my understanding correct?
if (!enabled) is the same as if(enabled == false)
thanks a million pips
if (!enabled) is the same as if(enabled == false)
Yes, that is correct. WHRoeder likes to copy and paste code, but that doesn't mean he knows what Blackadder considers to be suitable conditions for stopping an EA.

- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use