OrderTicket
OrderSend(), if successful, returns OrderTicket() number which one can use in OrderClose().
OrderMagicNumber() can also be used to identify orders sent by an EA.
european

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
Hi,
I'm wondering if someone can go into intimate detail about the Order functions. It seems pretty easy to open them, but selecting and closing them, the right ones, gives me a headache. It seems easy to just let one run until it hits a stop loss - I have trailing stop code I have downloaded that seems to work ok.
But I have systems that I want to stop and reverse, or close when an event or indicator fires. In this case, I need to be able to get the open order and close it.
I am interested in seeing code for both a single order, and one that handles multiple orders.
THANKS!
burn0050