The signal is formed when a bar is closing. The moment, when a candlestick formed by Candles_Smoothed changes its color, indicates the time for market entry.
Place Candles_Smoothed.ex5 compiled file to the terminal_data_catalogue\MQL5\Indicators.
Creation of a trading robot based on this trading signals module has nothing special in it. It has been described in details in the article "MQL5 Wizard for Dummies". The general idea of creating a trading signals module has been described in the article "Simple Trading Systems Using Semaphore Indicators".
Default Expert Advisor's input parameters have been used during the tests shown below. Stop Loss and Take Profit have not been used during the tests.
Fig.1. Deals examples on the chart
Testing results for 2011 at NZDUSD H4:
Fig.2. Test results chart
Translated from Russian by MetaQuotes Software Corp.
Original code: https://www.mql5.com/ru/code/829
The Acceleration/Deceleration Indicator (AC) measures acceleration and deceleration of the current driving force.Average Directional Movement Index (ADX)
The Average Directional Movement Index Indicator (ADX) helps to determine if there is a price trend.