Alert when order executed

 

@all

how can I set an alert in MT4 when stopbuy or stopsell order execudet,

I know I can set an alert of BID or ASK, but ist not the same

order is execudet.

kindest regards

winkel

 

Try to make custom alert:

make variable : alertBlvl and alertSlvl

1) check on witch level is set pending buy/sell

2) set variables alertBlvl and alertSlvl to levels from orders

3) when price (bid) hits that levels thorw one alert (u can use another variable for that)

Hope it helps.

 

@Kalenzo

thanks for request.

there is no other possibility?

every time I must set the variable, that not

so good.

I would like easy acoustic alert (sound) when order

is executed, I mean have a new position open or

the position is flat.

BID or ASK alerts existing in the alert table, but no

alert when the order is executed.

best regards

Winkel

 
winkel:
@Kalenzo

thanks for request.

there is no other possibility?

every time I must set the variable, that not

so good.

I would like easy acoustic alert (sound) when order

is executed, I mean have a new position open or

the position is flat.

BID or ASK alerts existing in the alert table, but no

alert when the order is executed.

best regards

Winkel

Well there is another way. If u are using one of the order, or one of the type of order, u can set magic number and variable called mode.

When the order is pending set variable to 1 and when it is on set 0 but before u do that check previous value of that variable. If it will be difrent - throw alert.

Reason: