Hi,
I have made an indicator (see attachment) based on a bunch of current indicators to Alert/Email/Sound when orders are opened and closed.
When an order is closed the Alert/Email will detail the ticket, pair, lots, profit/loss, commission, ect. This works without problems.
When an order is opened the Alert/Email will detail the ticket, pair, Lots, ect... This works fine when placing a market order.
But when a pending orders get filled the Alert/Email info (ticket, pair, Lots, ect...) will not state the info from the filled order but instead the info of the last added pending order, one that is not filled yet.
Can somebody help me, or give tips to make this work so the right info gets send by Alert/Email when a pending order is executed. I'm not a (good) coder, in fact I do my coding with a copy/paste strategy ;-)
Thanks so much for the help.
I have made an indicator (see attachment) based on a bunch of current indicators to Alert/Email/Sound when orders are opened and closed.
When an order is closed the Alert/Email will detail the ticket, pair, lots, profit/loss, commission, ect. This works without problems.
When an order is opened the Alert/Email will detail the ticket, pair, Lots, ect... This works fine when placing a market order.
But when a pending orders get filled the Alert/Email info (ticket, pair, Lots, ect...) will not state the info from the filled order but instead the info of the last added pending order, one that is not filled yet.
Can somebody help me, or give tips to make this work so the right info gets send by Alert/Email when a pending order is executed. I'm not a (good) coder, in fact I do my coding with a copy/paste strategy ;-)
Thanks so much for the help.
Attached File(s)
Order Alerts.mq4
4 KB
|
899 downloads
sounds.rar
250 KB
|
702 downloads