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
Experts

Expert_RSI_Stochastic_MA - expert pour MetaTrader 5

Publié par:
Vladimir Karputov
Vues:
8447
Note:
(31)
Publié:
2017.08.10 12:54
Mise à jour:
2018.06.27 13:21
Besoin d'un robot ou d'un indicateur basé sur ce code ? Commandez-le sur Freelance Aller sur Freelance

The author of the idea is Oksana Berenko, and the author of the mq5 code is barabashkakvn.

The Expert Advisor uses three indicators: MA(150), RSI(3) with levels 80 and 20, Stochastic(6, 3, 3) with levels 70 and 30. You can change these parameters and set your own values. 

1. Trade entry direction is determined based on MA (Moving Average). Only one trade is opened in one direction.

  • If Bid > MA, consider the buy direction.
  • If Ask < MA, consider the sell direction.

2. Position entry is performed when RSI and Stochastic conditions are met.

  • Buy if RSI and Stochastic are below the lower level, i.e. RSI < 20 and Stochastic < 30.
  • Sell if RSI and Stochastic are above the upper level, i.e. RSI > 80 and Stochastic > 70.

3. Exit is based on Stochastic.

Exit with profit points.

  • (Trailing Stop = 0) If Trailing Stop is set to zero, close a position upon reaching the opposite Stochastic level, if the trade has a certain profit in points.

b) Close BUY if Stochastic > 70 and OpenPrice <= Bid 
s) Close SELL if Stochastic < 30 and OpenPrice >= Ask

  • (Trailing Stop > 0) If the Trailing Stop value is specified, then once the opposite Stochastic level is reached, the position Stop Loss will be trailed at the opening of each new candlestick, keeping the specified distance form the price. Note that in this case a position can be closed with a loss, since Stop Loss sometimes is not immediately moved to a breakeven level.

Closing with a loss in points.

  • (allow Loss = 0) If 'allow Loss' is set to 0, close a position upon reaching the opposite Stochastic level, if the trade has a certain loss in points.

b) Close BUY if Stochastic > 70 and OpenPrice > Bid 
s) Close SELL if Stochastic < 30 and OpenPrice < Ask

  • (allow Loss > 0) If 'allow Loss' is specified, and we have exited the position entry zone as per Stochastic, while a trade has a loss specified in points or even more, the position is closed.
b) Close BUY if Stochastic > 30 and OpenPrice - Bid >= allow Loss in points
b) Close SELL if Stochastic < 70 and Ask - OpenPrice >= allow Loss in points

Expert_RSI_Stochastic_MA

Testing on EURUSD,H1:

Expert_RSI_Stochastic_MA EURUSD_H1

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

Color_QEMA_Envelopes_Digit_HTF Color_QEMA_Envelopes_Digit_HTF

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

Color_PEMA_Envelopes_Digit_HTF Color_PEMA_Envelopes_Digit_HTF

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

StopATR_auto StopATR_auto

Automated calculation of Stop Loss levels based on the ATR indicator.

ExpertClor_v01 ExpertClor_v01

An assistant Expert Advisor. Only CLOSING positions.