Alert when order closes
void OnTradeTransaction( const MqlTradeTransaction& trans, const MqlTradeRequest&, const MqlTradeResult& ) { if (trans.type == TRADE_TRANSACTION_DEAL_ADD) Alert("Hello World!"); }
void OnTradeTransaction( const MqlTradeTransaction& trans, const MqlTradeRequest&, const MqlTradeResult& ) { if (trans.type == TRADE_TRANSACTION_DEAL_ADD) Alert("Hello World!"); }
You agree to website policy and terms of use
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!!