The Exp_BBands_Stop Expert Advisor is based on the signals obtained from the BBands_Stop_v1 signal indicator. A signal for a transaction forms when a bar is closing, if the indicator changes its position and color.
Proper operation of the generated Expert Advisor requires the compiled indicator file BBands_Stop_v1.ex5 to be placed in terminal_data_directory\MQL5\Indicators.
Tests shown below were run using the default input parameters of the Expert Advisor. Stop Loss and Take Profit were not used during the tests.
Fig. 1. Examples of transactions in the chart
Testing results for USDCHF H4 over 2011:
Fig. 2. Testing results chart
Translated from Russian by MetaQuotes Software Corp.
Original code: https://www.mql5.com/ru/code/1070
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.