Hello,
I have a simple EA that opens my pending orders with Entry Price, Stop Loss and Take Profit parameters that I manually enter. I want the EA to alert me when a pending order is filled. I tried using
if(OrderOpenTime() !=0)
but pending orders are considered "open" when they are accepted by the trade server, so I was notified as soon as the EA set the order.
Any ideas?
Give it a magic number. If the ea detects an increase in open trades with the magic number it alerts.
@raptor your system will alert forever until the trade closes.
Give it a magic number. If the ea detects an increase in open trades with the magic number it alerts.
@raptor your system will alert forever until the trade closes.
Thanks for the input, I will try each way to see which works best for me.
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
Hello,
I have a simple EA that opens my pending orders with Entry Price, Stop Loss and Take Profit parameters that I manually enter. I want the EA to alert me when a pending order is filled. I tried using
if(OrderOpenTime() !=0)
but pending orders are considered "open" when they are accepted by the trade server, so I was notified as soon as the EA set the order.
Any ideas?
Thanks in advance for the help.
Scratchman