Aimak:
You can use OrderComment() to search for [tp] or [sl] in the comment of orders from history
thanks.
is there any way to use Ontrade()?
how can i have the accurate time of closing by TP or SL?
mohsen bahrami:
how to tell if a position closed by TP or by SL was opened by EA? i have an open position by using OrderSend(). depend on TP or SL happen, i want to call FunctionA() (When TP ) and Function2() (when SL happen).
is there any way to use Ontrade()? how can i have the accurate time of closing by TP or SL?
Aimak: You can use OrderComment() to search for [tp] or [sl] in the comment of orders from history
Not all brokers modify comments that way. Not a good idea to use comments, brokers can change
comments, including complete
replacement.
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 every one.
how to tell if a position closed by TP or by SL was opened by EA?
i have an open position by using OrderSend(). depend on TP or SL happen, i want to call FunctionA() (When TP ) and Function2() (when SL happen).
thanks.