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

hedger - expert pour MetaTrader 5

Publié par:
Vladimir Karputov
Vues:
12342
Note:
(25)
Publié:
2019.02.07 08:58
hedger.mq5 (43.44 KB) afficher
Besoin d'un robot ou d'un indicateur basé sur ce code ? Commandez-le sur Freelance Aller sur Freelance

Idea by: eugene-last

mq5 code by: barabashkakvn

The EA hedges a too losing position.

Suppose thereis an open BUY position on a given symbol (the position has been opened by another EA or manually). As soon as the losses on this position, in pips, exceed the pre-defined level of Drawdown (opening a hedge), the EA will open a hedging SELL position with the same lot size. Then that new SELL position will be tracked and, as soon as its losses, in pips, exceed the predefined level of Drawdown (closing the hedge), the EA will close that hedging SELL position.

hedger

To demonstrate how it works, a BUY position opening operation was added for the TESTER mode only.

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

Ingrit Ingrit

Comparing OHLC on timeframe M5

Starter Starter

Three timeframes. One iMA (Moving Average, MA) and one iStochastic (Stochastic Oscillator) on each timeframe

Stochastic_Convergence_Divergence Stochastic_Convergence_Divergence

Indicator Two Stochastics with MA Smoothing and Convergence Divergence line

Market_Sessions Market_Sessions

Indicator Market Session