OPEN-SOURCE SCRIPT
Cập nhật

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

Phát hành các Ghi chú
overlay=false
Phát hành các Ghi chú
overlay=true,scale = scale.none
Phát hành các Ghi chú
candleUp = ta.rising(haClose,1) and haClose>haHigh[1]

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

Thông báo miễn trừ trách nhiệm

Thông tin và ấn phẩm không có nghĩa là và không cấu thành, tài chính, đầu tư, kinh doanh, hoặc các loại lời khuyên hoặc khuyến nghị khác được cung cấp hoặc xác nhận bởi TradingView. Đọc thêm trong Điều khoản sử dụng.