OPEN-SOURCE SCRIPT

Three Bar Reversal Pattern [LuxAlgo]

The Three Bar Reversal Pattern indicator identifies and highlights three bar reversal patterns on the user price chart.

The script also provides an option for incorporating various trend indicators used to filter out detected signals, allowing them to enhance their accuracy and help obtain a more comprehensive analysis.

🔶 USAGE

imagen

The script automates the detection of three-bar reversal patterns and provides a clear, visually identifiable signal for potential trend reversals.

imagen

When a reversal chart pattern is confirmed and price action aligns with the pattern, the pattern's boundaries are extended, forming levels, with the upper boundary often acting as a resistance and the lower boundary as a support.

imagen

The script allows users to filter patterns based on a specific trend direction detected by multiple trend indicators. Users can choose to view patterns that are either aligned with the detected trend or opposite to it.

imagen

Included trend indicators are: Moving Average Cloud, Supertrend, and Donchian Channels.

imagen

🔶 DETAILS

The three-bar reversal pattern is a technical analysis pattern that signals a potential reversal in the prevailing trend. The pattern consists of three consecutive bar formations:

  • First Bar and Second Bar: 2 consecutive of the same sentiment, representing the prevailing trend in the market.
  • Third Bar: Confirms the reversal by closing beyond the high or low of the first bar, signaling a potential change in market sentiment.


Various types of three-bar reversal patterns are documented. The script supports two main types:

  • Normal Pattern: Detects three-bar reversal patterns without requiring the third bar closing price to surpass the high (bullish pattern) or low (bearish pattern) of the first bar. It identifies basic formations signaling potential trend reversals.
  • Enhanced Pattern: Specifically identifies three-bar reversal patterns where the third bar closing price surpasses the high (bullish pattern) or low (bearish pattern) of the first bar. This type provides a more selective signal for stronger trend reversals.


imagen

🔶 SETTINGS

  • Pattern Type: Users can choose the type of 3-bar reversal patterns to detect: Normal, Enhanced, or All. "Normal" detects patterns that do not necessarily surpass the high/low of the first bar. "Enhanced" detects patterns where the third bar surpasses the high/low of the first bar. "All" detects both Normal and Enhanced patterns.
  • Derived Support and Resistance: Toggles the visibility of the support and resistance levels/zones.


🔹 Trend Filtering

  • Filtering: Allows users to filter patterns based on the trend indicators: Moving Average Cloud, Supertrend, and Donchian Channels. The "Aligned" option only detects patterns that align with the trend and conversely, the "Opposite" option detects patterns that go against the trend.


🔹 Trend Indicator Settings

  • Moving Average Cloud: Allows traders to choose the type of moving averages (SMA, EMA, HMA, etc.) and set the lengths for fast and slow-moving averages.
  • Supertrend: Options to set the ATR length and factor for Supertrend.
  • Donchian Channels: Option to set the length for the channel calculation.


🔶 RELATED SCRIPTS

breakoutChart patternsluxalgoreversalreversalpatternthreebarTrend Analysis

Script de código abierto

Siguiendo fielmente el espíritu de TradingView, el autor de este script lo ha publicado en código abierto, permitiendo que otros traders puedan entenderlo y verificarlo. ¡Olé por el autor! Puede utilizarlo de forma gratuita, pero tenga en cuenta que la reutilización de este código en la publicación se rige por las Normas internas. Puede añadir este script a sus favoritos y usarlo en un gráfico.

¿Quiere utilizar este script en un gráfico?


Get access to our exclusive tools: luxalgo.com

Join our 150k+ community: discord.gg/lux

All content provided by LuxAlgo is for informational & educational purposes only. Past performance does not guarantee future results.
También en:

Exención de responsabilidad