Voir comment télécharger gratuitement des robots de trading
Retrouvez-nous sur Telegram !
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
Experts

OpenTicks - expert pour MetaTrader 5

Publié par:
Vladimir Karputov
Vues:
3246
Note:
(19)
Publié:
2017.01.19 16:57
Mise à jour:
2018.06.27 13:39
\MQL5\Include\Trade\
OpenTicks.mq5 (18.93 KB) afficher
Besoin d'un robot ou d'un indicateur basé sur ce code ? Commandez-le sur Freelance Aller sur Freelance

Author of the idea — Maksim Zerkalov, author of the mq5 code — barabashkakvn.

When opening a new bar, the EA analyzes the value of the previous four bars:

   if(iHigh(1)>iHigh(2) && iHigh(2)>iHigh(3) &&
      iHigh(3)>iHigh(4) && iOpen(1)>iOpen(2) &&
      iOpen(2)>iOpen(3) && iOpen(3)>iOpen(4))
      BuyOp=true;
   if(iHigh(1)<iHigh(2) && iHigh(2)<iHigh(3) &&
      iHigh(3)<iHigh(4) && iOpen(1)<iOpen(2) &&
      iOpen(2)<iOpen(3) && iOpen(3)<iOpen(4))
      SellOp=true;

When we have an open position, then the "HalfLots" variable value is checked in the

void TrailingStairs(ulong m_ticket,ushort trldistance)

trailing block. In other words, the system checks if it is possible to partially close a profitable position. If "HalfLots==true", the position is closed partially:

                  m_trade_partial.PositionClose(m_position.Ticket(),-1,half_volume);


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

Exp_CenterOfGravityCandle Exp_CenterOfGravityCandle

The Exp_CenterOfGravityCandles Expert Advisor is based on signals of the CenterOfGravityCandles indicator.

WPR_Histogram_Round_HTF WPR_Histogram_Round_HTF

The WPR_Histogram_Round indicator with the timeframe selection option available in the input parameters.

Exp_TimesDirection Exp_TimesDirection

The Expert Advisor opens and closes positions at the predefined moments in time.

SilverTrend_Signal_Alert SilverTrend_Signal_Alert

SilverTrend semaphore signal indicator features alerts, emails and push notifications.