Inconsistent Script Execution: Sometimes work, then not for no apparent reason

 

Hi,

I have a script which opens pending orders.

It will work fine once or twice, then stops working. Journal says the script is loaded successfully, then removed. Both when working and not.

Can anyone explain this, or point me to a reason why a working script stops working?

Driving me a bit nuts here.

And, FWIW, the Account Info script has NEVER worked!

Really has me wondering about this MQL4 language.....

Help appreciated!

Regards,
Merlin

 

Script runs 1 time from start to finish then exits and is "removed" from the chart.

 
phy wrote >>

Script runs 1 time from start to finish then exits and is "removed" from the chart.

Thanks. I'm aware of that.

Does not address my problem, though. A script should run EVERY time it's called onto a chart. Not just randomly sometimes working and, other times not working.

Can anyone understand and help with this problem?

Regards,

Merlin

 
Show your code.
Reason: