- Tháng sáu 23, 2013
- Gửi bởi: Nhóm ngoại hối Wiki
- Loại: Ngoại hối Ấn Độ
Miễn bình luận
1687
1552
Tên: |
|
||
Tác giả: | cmillion (2010.04.26 12:41) | ||
Đã tải xuống: | 2859 | ||
Tải xuống: |
|
||
Sự miêu tả:The indicator alerts at order closing, and reports about its profit. //+------------------------------------------------------------------+ //| AlertCloseOrder.mq4 | //| Bản quyền © 2010, Vladimir Hlystov | //| http://cmillion.narod.ru | //+------------------------------------------------------------------+ #property copyright "Bản quyền © 2010, Vladimir Hlystov" #property link "http://cmillion.narod.ru" #property indicator_chart_window int Orders; //+------------------------------------------------------------------+ int start() { nếu như (đơn đặt hàng>OrdersTotal()) AlertOrder(); Orders=OrdersTotal(); trở lại(0); } //+------------------------------------------------------------------+ void AlertOrder() { string txt; double OCP; int i=OrdersHistoryTotal()-1; nếu như(OrderSelect(Tôi,SELECT_BY_POS,MODE_HISTORY)==true) { OCP=OrderClosePrice(); nếu như (OCP==OrderStopLoss() ) txt="SL"; nếu như (OCP==OrderTakeProfit()) txt="TP."; Báo động("Order N ",OrderTicket()," close in ",txt," ", DoubleToStr(OCP,Digits)," lợi nhuận ",DoubleToStr(OrderProfit(),2)); } } //+------------------------------------------------------------------+ |