A trading system based on the SR-RateIndicator indicator signals. A trade signal is generated at the close of a bar if the color of the histogram has changed from dark to bright pink or lime, i.e. when the indicator has entered the overbought or oversold zone.
For the generated EA to operate correctly, the compiled SR-RateIndicator.ex5 indicator file should be added in the <terminal_data_directory>MQL5Indicators folder.
Note that the TradeAlgorithms.mqh library file allows using Expert Advisors with brokers who offer nonzero spread and the option of setting Stop Loss and Take Profit during position opening.
The EA default input parameters were used in tests below. Stop Loss and Take Profit were not used in testing.
Fig. 1. Example of trades on the chart
Testing results for the year 2017, EURUSD H12:
Fig. 2. Testing results chart