I created it because there is no Bollinger bands in the MQL 5 wizard for some reason.
It is not the purpose to make profit on this program alone.
It is a purpose to incorporate it into the MQL 5 Wizard.
The trade signal is very simple.
For basic usage of the MQL 5 wizard, see " Create your own trading robot in 6 steps ".
1. Trade signal
The trade signal consists of two patterns.
2. Create an expert advisor using the MQL 5 wizard
Once you compile SignalBands.mqh you will be able to use it with the MQL5 wizard.
To generate a transaction robot based on this logic, select Signals of indicator 'Bollinger Bands' in the signal property of the MQL 5 wizard.
3. Test result
Let's examine back test of expert advisor's history data (USDJPY H4, test period: 01.01.2018 - 01.11.2018, PeriodBands = 120, Shift = 0, Deviation = 1.6, Applied = closing price, Weight = 1.0) .
Attachment: The SignalBands.mqh of the SignalBands class must be placed in terminal_data_folder \ MQL5 \ Include \ Expert \ Signal \ MySignal.
The ExpertsBands.mq5 file contains the expert advisor code that was created using the MQL 5 wizard.