OPEN-SOURCE SCRIPT
Mis à jour

BB with Heikin Ashi + Reversal Check

435
This indicator combines Bollinger Bands (BB) with Heikin Ashi candles to detect potential reversal points after price breaks the BB boundaries. It works on any symbol and timeframe, retrieving Heikin Ashi data via request.security().

Core Features
Heikin Ashi Candle Plot

Smooths price action by using Heikin Ashi candles instead of regular candles.

Candles are plotted directly on the chart with green (bullish) and red (bearish) colors.

Bollinger Bands (BB)

Calculated from Heikin Ashi close price.

Includes Basis (MA), Upper Band, and Lower Band, with customizable MA type, length, and standard deviation multiplier.

Break & Reversal Detection

The indicator tracks whether the price has broken above the Upper Band (p1) or below the Lower Band (p2).

It remembers the last breakout direction until the opposite breakout occurs (mutually exclusive logic).

Signal Logic

Long Signal (▲):
Price was previously below the Lower Band and then reversed upward (BB Lower rising + Heikin Ashi candle rising).

Short Signal (▼):
Price was previously above the Upper Band and then reversed downward (BB Upper falling + Heikin Ashi candle falling).

Alerts

Custom alert conditions trigger when Long or Short signals occur, allowing automated notifications or bot integration.

Use Cases
✅ Swing Trading / Trend Reversal – Identify potential bottom/top reversals after BB breakouts.
✅ Mean Reversion Strategies – Enter trades when the price reverts to the BB mean after an extreme breakout.
✅ Multi-Timeframe Analysis – Works with any timeframe and symbol via request.security().

Customization
MA Type: SMA, EMA, RMA, WMA, VWMA

BB Length & StdDev Multiplier

Timeframe & Symbol Selection

Notes de version
overlay=false
Notes de version
overlay=true,scale = scale.none
Notes de version
candleUp = ta.rising(haClose,1) and haClose>haHigh[1]

candleDown = ta.falling(haClose,1) and haClose<haLow[1]

Clause de non-responsabilité

Les informations et les publications ne sont pas destinées à être, et ne constituent pas, des conseils ou des recommandations en matière de finance, d'investissement, de trading ou d'autres types de conseils fournis ou approuvés par TradingView. Pour en savoir plus, consultez les Conditions d'utilisation.