- جون 23, 2013
- کی طرف سے پوسٹ کیا گیا: فاریکس وکی ٹیم
- قسم: FX Ind
کوئی تبصرہ نہیں
1687
1552
نام: |
|
||
مصنف: | cmillion (2010.04.26 12:41) | ||
ڈاؤن لوڈ کیا گیا۔: | 2859 | ||
ڈاؤن لوڈ کریں: |
|
||
تفصیل:The indicator alerts at order closing, and reports about its profit. //+------------------------------------------------------------------+ //| AlertCloseOrder.mq4 | //| کاپی رائٹ © 2010, Vladimir Hlystov | //| http://cmillion.narod.ru | //+------------------------------------------------------------------+ #property copyright "کاپی رائٹ © 2010, Vladimir Hlystov" #property link "http://cmillion.narod.ru" #property indicator_chart_window int Orders; //+------------------------------------------------------------------+ int start() { اگر (Orders>OrdersTotal()) AlertOrder(); Orders=OrdersTotal(); return(0); } //+------------------------------------------------------------------+ void AlertOrder() { string txt; double OCP; int i=OrdersHistoryTotal()-1; اگر(OrderSelect(میں,SELECT_BY_POS,MODE_HISTORY)==true) { OCP=OrderClosePrice(); اگر (OCP==OrderStopLoss() ) txt="SL"; اگر (OCP==OrderTakeProfit()) txt="ٹی پی"; Alert("Order N ",OrderTicket()," close in ",txt," ", DoubleToStr(OCP,Digits)," منافع ",DoubleToStr(OrderProfit(),2)); } } //+------------------------------------------------------------------+ |