SanMiguel:
Sometimes this script enters 2 trades, at other times it only enters 1 of the trades and reports an error of Error = no error
Any ideas what this could be or a way to reorder if something goes wrong in the error checking code?
Presumably, the second order always succeeds, and it's the first order which is periodically failing. The success of the second order will reset the last-error to zero. To find out what's going wrong, simply put some logging directly after the attempt to place the first order.

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
Sometimes this script enters 2 trades, at other times it only enters 1 of the trades and reports an error of Error = no error
Any ideas what this could be or a way to reorder if something goes wrong in the error checking code?