Hi all
there is some sound for the orders closed by take profit/stop loss?
Thanks.
Hi all
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.
This is an example I found in code base:
Description:
The indicator alerts at order closing, and reports about its profit.
//+------------------------------------------------------------------+
//| AlertCloseOrder.mq4 |
//| Copyright © 2010, Vladimir Hlystov |
//| http://cmillion.narod.ru |
//+------------------------------------------------------------------+
#property copyright "Copyright © 2010, Vladimir Hlystov"
#property link "http://cmillion.narod.ru"
#property indicator_chart_window
int Orders;
//+------------------------------------------------------------------+
int start()
{
if (Orders>OrdersTotal()) AlertOrder();
Orders=OrdersTotal();
return(0);
}
//+------------------------------------------------------------------+
void AlertOrder()
{
string txt;
double OCP;
int i=OrdersHistoryTotal()-1;
if(OrderSelect(i,SELECT_BY_POS,MODE_HISTORY)==true)
{
OCP=OrderClosePrice();
if (OCP==OrderStopLoss() ) txt="SL";
if (OCP==OrderTakeProfit()) txt="TP";
Alert("Order N ",OrderTicket()," close in ",txt," ",
DoubleToStr(OCP,Digits)," profit ",DoubleToStr(OrderProfit(),2));
} }
//+------------------------------------------------------------------+
Thats great.
And How Can I install?
Thanks anyway