Guide
How does the Adaptive Price Channel Strategy strategy work ?
The Adaptive Price Channel Strategy relies on ATR and ADX indicators to differentiate between sideways and trending markets and establishes trade positions based on the price closing beyond a dynamically computed price channel. The indicators' length parameter and an ATR multiplier are used to calculate the price channel's boundaries.
The process begins with determining the highest high (HH) and lowest low (LL) within the given length, alongside calculating the ATR. By comparing upward and downward price movements, the positive directional indicator (+DI) and negative directional indicator (-DI) are computed to derive the ADX value.
- If the ADX is below 25, it signifies a sideways market. A long position is initiated if price closes above (HH minus ATR multiplied by the ATR multiplier), while a short position is taken if price closes below (LL plus ATR multiplied by the ATR multiplier).
- If the ADX is 25 or higher and the +DI surpasses the -DI, suggesting a bullish market, a long position is taken when price exceeds the upper boundary of the price channel.
- Conversely, in a bearish market indicated by an ADX of 25 or above with +DI below the -DI, a short position is entered if price falls beneath the lower boundary of the price channel.
Positions are exited after a specified number of bars post-entry, as defined by the user's exit_length input. Trades are placed only within a user-defined period, and the strategy visualizes the HH and LL with green and red lines respectively on the chart.