The overbought zone is determined as candlesticks, at which the indicator valueValue > Lmax(Lmax=-20).
The oversold zone is determined as candlesticks, at which the indicator valueValue < Lmin(Lmin=-80).
The values of Lmax and Lmin should be included in indicator parameters.
A yellow point should be added at the High point of candlesticks in the overbought zone—it is the H point.
A green point should be added at the Low point of candlesticks in the oversold zone—it is the L point.
If there is at least one L point between two H points, search for a LL point in the interval between two H points. The candlestick with the lowest Low price will be the LL point. Generally, the LL point is not necessarily an L point. Search for candlesticks with the lowest Low price.
If there is at least one H point between two L points, search for a HH point in the interval between two L points. The candlestick with the highest High price will be the HH point. Generally, the HH point is not necessarily a H point. Search for candlesticks with the highest High price.
Connect LL and HH points to draw a ZigZag. The default color is yellow. The first step is finished.
MarketMind Breakout Pro XAUUSD H1 — Donchian Breakout EA Project type: Personal EA development and backtesting Platform: MetaTrader 5 Instrument: XAUUSD Timeframe: H1 Strategy: Donchian Channel breakout with EMA 200 Project overview This project evaluates a Donchian breakout trading strategy for XAUUSD on the H1 timeframe. The system uses channel-based breakout conditions and an EMA 200 trend filter. Historical