Sound for order closed by take profit/stop loss

 

Hi, there is some sound for the orders closed by take profit/stop loss?

Thanks.

 
kekko25:

Hi, there is some sound for the orders closed by take profit/stop loss?

Thanks.

No, there is no built-in sound for such event.
But you may develop it or find relevant code or hire someone to code it.
 
kekko25:

Hi, there is some sound for the orders closed by take profit/stop loss?

Thanks.

This is an example I found in code base:It's very simple one and just alerts on order close and show if it is closed at TP or SL, you'll need to add extra lines to play sound.
Alert at Order Closing
Alert at Order Closing
  • votes: 10
  • 2010.04.26
  • Vladimir Khlystov
  • www.mql5.com
The indicator alerts at order closing, and reports about its profit.
 

Форум по трейдингу, автоматическим торговым системам и тестированию торговых стратегий

Библиотеки: MT4Orders

fxsaber, 2017.09.14 08:52

// Триггер SL/TP/SO
void OnTradeTransaction ( const MqlTradeTransaction &Trans, const MqlTradeRequest &Request, const MqlTradeResult &Result )
{ 
  if ((Trans.type == TRADE_TRANSACTION_ORDER_ADD) && OrderSelect(Trans.order))
  {
    const ENUM_ORDER_REASON Reason = (ENUM_ORDER_REASON)OrderGetInteger(ORDER_REASON);
    
    if (Reason == ORDER_REASON_TP)
      Alert("Position #" + (string)Trans.position + " - triggered TP.");    
    else if (Reason == ORDER_REASON_SL)
      Alert("Position #" + (string)Trans.position + " - triggered SL.");    
    else if (Reason == ORDER_REASON_SO)
      Alert("Position #" + (string)Trans.position + " - triggered StopOut.");    
  }
}
 
Mohammad Hossein Sadeghi:
This is an example I found in code base:It's very simple one and just alerts on order close and show if it is closed at TP or SL, you'll need to add extra lines to play sound.

And How Can I install?


Thanks anyway

Reason: