Hi There !
One question please
My EA have a flag called bool firstOrder to know if we have already sent one order to the market (and already executed).
The problem is that if the EA somehow resets itself, this flag returns to true even if we have already sent an order.
Can someone please tell me from where to start with this subject? Any article describing how to verify any executed orders during the day?
Regards,
MRC
For instance, you can scan your order history (maybe this is the best solution).
A simpler way is create an external flag, for instance using a file to store this flag and last date/time.
Hi Coutinho, there are some workarounds to check this precisely.
For instance, you can scan your order history (maybe this is the best solution).
A simpler way is create an external flag, for instance using a file to store this flag and last date/time.
Like the idea of "scan your order history". Do y know any command and/or library to start ?
Hi There !
One question please
My EA have a flag called bool firstOrder to know if we have already sent one order to the market (and already executed).
The problem is that if the EA somehow resets itself, this flag returns to true even if we have already sent an order.
Can someone please tell me from where to start with this subject? Any article describing how to verify any executed orders during the day?
Regards,
MRC
Instead of playing with history, you can more simply use Global Variables of the Terminal. It's more easy to implement, however it depends of your needs, in some circumstances, you could be forced to check the history.
Instead of playing with history, you can more simply use Global Variables of the Terminal. It's more easy to implement, however it depends of your needs, in some circumstances, you could be forced to check the history.

- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
Hi There !
One question please
My EA have a flag called bool firstOrder to know if we have already sent one order to the market (and already executed).
The problem is that if the EA somehow resets itself, this flag returns to true even if we have already sent an order.
Can someone please tell me from where to start with this subject? Any article describing how to verify any executed orders during the day?
Regards,
MRC