Download MetaTrader 5

Watch how to download trading robots for free

Interesting script?
So post a link to it -
let others appraise it

You liked the script? Try it in the MetaTrader 5 terminal

2015.12.11 15:40
Expert_RSI_Stochastic_MA

Expert_RSI_Stochastic_MA - expert for MetaTrader 4

| English Русский 中文 Español Deutsch 日本語 Português

Views:
15175
Rating:
votes: 36

This Expert Advisor uses three indicators: MA(150), RSI(3) with the levels of 80 and 20, Stochastic(6, 3, 3) with the levels of 70 and 30. These parameters can be changed and customized. Also, the input parameters of the Expert Advisor need to be changed if the used quotes are not 5-digit.

1. The direction of the deal entry is based on the MA (Moving Average). Only one deal per each side can be opened.

  • If Bid > MA, then consider the buy direction.
  • If Ask < MA, then consider the sell direction.
2. The position entry when the RSI and Stochastic conditions are met.
  • Buy if RSI and Stochastic are below the minimum level, i.e. RSI < 20 and Stochastic < 30.
  • Sell if RSI and Stochastic are above the maximum level, i.e. RSI > 80 and Stochastic > 70.

3. Exit the deal by Stochastic.

Exit in the green in points.

  • (Trailing Stop = 0) If the Trailing Stop in the input parameters is zero, then close the position once the Stochastic reaches the opposite level, if the deal is in green in points.

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

  • (Trailing Stop > 0) if the Trailing Stop is set in the input parameters, then once the Stochastic reaches the opposite level, the Stop Loss is trailed every time a new candlestick is opened on a specified distance from the price. It can be seen in the first figure. As a result, closed by trailing stop. It should be noted that a negative closure is also possible here, as Stop Loss does not get into the breakeven immediately at times.

Closure at a loss in points.

  • (allow Loss = 0) If allow Loss in the input parameters is equal to 0, then close the position once the Stochastic reaches the opposite level, if the deal is at a loss in points.

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

  • (allow Loss > 0) If allow Loss is set in the input parameters, and the position is out of the deal entry zone by Stochastic, and the deal is at a loss by the specified amount or more, then the position is closed.
b) Close if the position is BUY and Stochastic > 30 and OpenPrice - Bid >= allow Loss in points
s) Close if the position is SELL and Stochastic < 70 and Ask - OpenPrice >= allow Loss in points

RSI_Stochastic_MA_01

RSI_Stochastic_MA_03

Important!

The purpose of this Expert Advisor is researching the market and the RSI and the Stochastic indicators. If this EA gets thought through, then a result with good profit may be obtained.

Translated from Russian by MetaQuotes Software Corp.
Original code: https://www.mql5.com/ru/code/13960

Accelerator Oscillator (AC) Accelerator Oscillator (AC)

The Acceleration/Deceleration Indicator (AC) measures acceleration and deceleration of the current driving force.

Average Directional Movement Index (ADX) Average Directional Movement Index (ADX)

The Average Directional Movement Index Indicator (ADX) helps to determine if there is a price trend.

Modify All TP SL Modify All TP SL

The script modifies all orders (market and pending) on the symbol with specified Take Profit and Stop Loss.

iFractals 4all TF iFractals 4all TF

Buy or sell just by looking at the "arrow" as a signal. Very easy and simple.