Voir comment télécharger gratuitement des robots de trading
Retrouvez-nous sur Facebook !
Rejoignez notre page de fans
Un script intéressant ?
Poster un lien vers celui-ci -
laisser les autres l'évaluer
Vous avez aimé le script ? Essayez-le dans le terminal MetaTrader 5
Indicateurs

Alert at Order Closing - indicateur pour MetaTrader 4

Vues:
32247
Note:
(16)
Publié:
2010.04.26 10:41
Mise à jour:
2014.04.21 14:54
MQL5 Freelance Besoin d'un robot ou d'un indicateur basé sur ce code ? Commandez-le sur Freelance Aller sur Freelance

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));
}  }
//+------------------------------------------------------------------+

Traduit du russe par MetaQuotes Ltd.
Code original : https://www.mql5.com/ru/code/9642

Instrument 2 Instrument 2

Displaying of any instrument, synchronisation on bars or on days.

Support and resistance levels Support and resistance levels

This a bollinger band indicator with an extra deviation level. If you keep the period at 25 and deviations of 1.0 and 2.0, It will show you all your resistance and support lines. And also overbought and oversold levels.

EA Moving Average_Money EA Moving Average_Money

I have programmed an EA using Moving Average (from mt4 default Moving Average.mq4) to decide open buy/sell combine with StopLoss using the Money Management.

EA_Email - send an e-mail on your account details every xx minutes EA_Email - send an e-mail on your account details every xx minutes

This EA will send an e-mail about your account details every xx minutes.