How to implement the closing of positions one at a time after N minutes ? - page 9

 

Renat Akhtyamov:
...

The error in my case is broadcast by the Expert Advisor in the Experts tab.

Natalia's Expert Advisor does not broadcast the error. The reason is to check if the boolean value is less than zero.

If there is a closing error, the result of the function will be false, which is zero.

You check for -1 - i.e., to true, respectively, it does not output your error descriptions (not error handling, but simply their description in Russian).

And there is one more error - when selecting an order by ticket, before closing it, we should check that its OrderCloseTime() is equal to zero. If it is equal, then close it, if it is not, then the order is already closed.

It's a pity you are teaching people with such knowledge...

 
Artyom Trishkin:

-1 is true

Learn it all the same...


Artem, don't start)) There'll be another 5 pages of useless discussion ))

Reason: