Alert when order closes

To add comments, please log in or register
River S. Dude
39
River S. Dude  

Is there a way to get an alert when an order is closed, either manually or if it hits a limit or stop?

Thanks in advance!!

fxsaber
10636
fxsaber  
void OnTradeTransaction( const MqlTradeTransaction& trans, const MqlTradeRequest&, const MqlTradeResult& )
{
  if (trans.type == TRADE_TRANSACTION_DEAL_ADD)
    Alert("Hello World!");
}
To add comments, please log in or register