OPEN-SOURCE SCRIPT

BHUVANA Fib 50–61.8 • Turn Alerts when FIB directions change

116

Detects step-up / step-down on both Fib 50 & 61.8 (your “stairs” logic).

Triggers BUY/SELL on that slope change (optionally also requires price to be above/below the line).Spot volatility compression around the 50%–61.8% Fibonacci mid-band of the current swing, then trade the first expansion with clean, rules-based entries and auto SL references.
Swing mapping: Finds the active high/low over a user-defined lookback and computes Fib 50% and Fib 61.8%.

Squeeze detection: Measures the distance between 50% and 61.8%. If the band width is ≤ (ATR × multiplier), the zone is flagged as a Squeeze.

Breakout entries (on close):

Long when price crosses up through 50% while squeezed.

Short when price crosses down through 61.8% while squeezed.

Risk framework: Auto-plots stop lines from the signal bar:

Long SL = swing low; Short SL = swing high.

Visuals: Fib lines (50/61.8) + optional yellow zone highlight during squeeze.
Signals evaluate on bar close (no forward-looking data).

Works well on XAUUSD / US30 intraday (5–15m) during London/NY sessions.

Add your own alertcondition() lines if you want push alerts on Long/Short entries.

Aviso legal

As informações e publicações não se destinam a ser, e não constituem, conselhos ou recomendações financeiras, de investimento, comerciais ou de outro tipo fornecidos ou endossados pela TradingView. Leia mais nos Termos de Uso.