A trading system based on the signals of indicator AverageChangeCandle. The signal is formed when a bar is closing if the indicator direction has changed.
For the generated EA to operate correctly, the compiledAverageChangeCandle.ex5 indicator file must be in the <terminal_data_directory>\MQL5\Indicators folder.
Note that library file TradeAlgorithms.mqh is designed for using EAs with the brokers that offer a nonzero spread and a possibility to set Stop Loss and Take Profit simultaneously with opening a position. You can download the other versions of this library at Trade Algorithms.
The EA default input parameters were used in tests below. Stop Loss and Take Profit were not used in testing.
Fig. 1. Example trades on the chart
Testing results for USDJPY H4 over the year 2016:
Fig. 2. Testing results chart