- يونيو 23, 2013
- منشور من طرف: فريق ويكي الفوركس
- فئة: FX Ind
لا توجد تعليقات
1687
1552
اسم: |
|
||
مؤلف: | com.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>إجمالي الطلبات()) 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="TP"; يُحذًِر("Order N ",OrderTicket()," close in ",رسالة قصيرة," ", DoubleToStr(OCP,Digits)," ربح ",DoubleToStr(OrderProfit(),2)); } } //+------------------------------------------------------------------+ |