Expert Advisors • Indicators • Scripts • Libraries

MQL.RobotFX.org is the biggest collection of MetaTrader expert advisors (MT5 & MT4), indicators, scripts and libraries that can be used to improve trading results, minimize risks or simply automate trading tasks

MetaTrader 5 Expert Advisor | Exp_XRSI_Histogram_Vol

The trading system based on the signals of the XRSI_Histogram_Vol indicator. The signal is formed when a bar is closing if there is breakthrough of an overbought/oversold level. Since there are two levels, each of the levels has its own position with its own magic number and size for a breakthrough:

input uint Magic1=555;            //Magic number for orders by a normal signal  input uint Magic2=777;            //Magic number for orders by a strong signal  input double MM1=0.1;             //Share of a deposit in a deal (normal signal)  input double MM2=0.2;             //Share of a deposit in a deal (strong signal)  

For the generated EA to operate correctly, the compiled XRSI_Histogram_Vol.ex5 indicator file should be available in the <terminal_data_directory>\MQL5\Indicators folder.

Default Expert Advisor's input parameters have been used during tests shown below. Stop Loss and Take Profit have not been used during the tests.

MetaTrader Experts, Indicators, Scripts and Libraries

Fig. 1. Examples of trades on the chart

Testing results for USDJPY H4 over the year 2017:

MetaTrader Experts, Indicators, Scripts and Libraries

Fig. 2. Test results chart

21953