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
1. Loop through OrderHistory and see if any MagicNumber trade closed because of TP.
2. If so, close all other orders with the MagicNumber?
Thank you andrew - trying to get 1st open order closed by tp seems to be an issue.
It's pretty simple. Assign a custom code to the comment field or a different magicnumber to this first order. After that, if you don't have this magic number, you can close all orders. Or if there is no special code in the comment section, it's like close all orders.
Thank you Mehmet Bastem - the custom comment suggestion good idea.. am wondering how to give it to first openorder only...mmh
Thank you andrew - trying to get 1st open order closed by tp seems to be an issue.
Thank you Mehmet Bastem - the custom comment suggestion good idea.. am wondering how to give it to first openorder only...mmh
Closed because of TP?
Yes closed by TP... identifying the first open order, by magic number,symbol when it is closed by TP
This will work only if the TP or SL is never modified. Fails on trailing SLs. This will work only for buy orders.
This will work only if the TP or SL is never modified. Fails on trailing SLs. This will work only for buy orders.