A modified indicator of Bill Williams' zone trading.
In contrast to using standard Awesome Oscillator (AO) and Accelerator Oscillator (AC), this indicator allows setting the calculation price and period for the fast and slow MAs used for the AO calculation, the smoothing period and the method for AC calculation, as well as selecting the filter type - using two indicators or any of them separately.
The indicator has six input parameters:
The indicator is drawn in a separate window as a candlestick chart, colored depending on the zone:
The indicator is provided with four buffers and can be used inside an Expert Advisor:


Tradotto dal russo da MetaQuotes Ltd.
Codice originale https://www.mql5.com/ru/code/20215
DPO_Bar
Detrended Price Oscillator Bar - price chart without a trend.
SV v.4.2.5
The Expert Advisor opens no more than one position per day. Positions are opened at the specified time. It searches for the Highest and Lowest price in an interval. Data of two iMA (Moving Average, MA) indicators are used.
HA EMA3 Indicator
A Moving Average based on Heiken Ashi candlesticks.
LRL
Linear regression line (LSMA) - a moving average calculated by the linear regression method.