INVITE-ONLY SCRIPT

signal heads-up_Bollinger

83
https://www.tradingview.com/x/SU9CEi5y/
signal heads-up_Bollinger

Overview

signal heads-up & slow-trail combines Bollinger-based entries, a predictive Heads-Up (ETA) timer, multi-level TP1–TP5 zones, and a Slow-Trail stop engine that advances gradually to protect profits. It includes compact R/R HUD output and Text/JSON alerts for entries, TP/SL hits, and predictive events.

How it Works
1) Entry Logic (Bollinger)

Modes:

Revert Cross: fade back inside the bands (mean-reversion).

Cross Threshold: momentum/breakout style.

Gating & Safety:

Optional bar-close confirmation to reduce intrabar noise.

Trade Direction gating (Long/Short only).

Per-side cooldown (min bars between entries).

Optional filters (see below).

2) Quality Filters (optional)

HTF Trend Filter: EMA slope from a higher timeframe to favor trades aligned with trend.

BB Width Filter: Require Bollinger Band width (% of price) to lie within a min–max range, avoiding dead zones or extreme noise.

3) Heads-Up (ETA Prediction)

Estimates minutes to the next event by converting price velocity to per-minute terms and projecting distance to a target:

Outside Revert (entry): time to revert from outside band toward re-entry.

Nearest Band Touch: time to touch the closest band.

Basis Cross: time to cross the SMA basis.

Spike Heads-Up: detects when band width is compressed and starting to expand with directional tilt, projecting ETA to a “breakout-ready” width.

Heads-Up is predictive, not a guarantee; it updates each bar as volatility and velocity change.

4) TP Zones (TP1–TP5)

On a new signal, the script draws a ladder of up to 5 horizontal TP levels projected from the signal bar.

Zones can expire after N bars (optional).

The HUD shows R/R to TP1–TP5 for the currently active side.

5) Slow-Trail Stop (the signature)

A “glide, don’t jerk” trailing engine that advances the stop in fractions toward a dynamic target:

Move to BE on TP1: once TP1 is touched, the engine flags BE and eases the stop toward entry (no snap).

Follow TP for SL: after higher TPs hit (e.g., TP3), the stop trails to the previous TP (TP2).

Optional Chandelier Trail: blended into the target.

Pacing & Progress:

Move by fraction (slMoveFraction, e.g., 0.33).

Respect min bars between moves and a hold after moving.

Require ATR-based progress (slMinATRProgress) so the stop only advances when price meaningfully moves.

6) Alerts & HUD

Manual alerts: alertcondition() for BUY/SELL entries.

Auto alerts: alert() for Entry / TP / SL / Heads-Up / Spike with cooldown and optional one-TP-per-bar.

Formats: Text (mobile-friendly) or JSON (for bots/webhooks); optional ZoneID tagging.

HUD: compact table showing symbol/TF, last Entry & SL, R/R to TP1–TP5, alert mode, MaxHit per side, and color-coded HU/Spike lines (NOW / ~Xm).

Key Inputs (high level)

Strategy: Trade Direction, Entry Strategy.

Bollinger: Length, Multiplier.

Filters: HTF EMA slope (TF & length), BB width min/max %.

Stops: Mode (ATR× / Percent / Points), ATR length/mult, Slow-Trail pacing (fraction, min bars, ATR progress, hold), Move to BE on TP1, Follow TP for SL, optional Chandelier.

TP Zones: size multiplier, colors, label side/offset, expiry.

Heads-Up: lookahead minutes, velocity length, HU mode, compression threshold, slope length, directional tilt, NOW/SOON thresholds.

Alerts: manual/auto, JSON vs Text, cooldown, strict-touch, min bars between entries, ZoneID.

How to Use (step-by-step)

Attach & Name
Add the script and keep your preferred signal … title. The short name appears on the chart.

Pick Entry Style

Revert Cross for mean-reversion around bands.

Cross Threshold for momentum continuation.

Choose Risk Basis
Use ATR 14 × 1.5–2.0 as a sensible SL baseline. Enable Move SL→BE on TP1 and Follow TP for progressive protection. Keep slMoveFraction ≈ 0.3 to glide.

Tune Heads-Up
Start with Lookahead = 10 min, Velocity length = 14.
Mode Nearest Band Touch is a solid general default.
Keep Spike Heads-Up on to catch compress-then-expand phases.

Enable Filters (optional)

HTF EMA slope when you want trend alignment (e.g., HTF=60, EMA=50).

BB width filter to skip dead sessions or hyper-chop.

Set TP Ladder
Keep the default zone size multiplier; adjust if your instrument’s range is larger/smaller.
Use zone expiry to avoid stale ladders.

Create Alerts (TradingView)

Choose “Any alert() function call” and Once Per Bar Close if you use close-confirmation.

Pick JSON if you integrate with bots/webhooks; otherwise Text is phone-friendly.

Use cooldown and one-TP-per-bar to reduce noise.

Operate
Watch the HUD: HU line shows BUY/SELL NOW / ~Xm; Spike line hints imminent expansion.
When a signal triggers, TP1–TP5 draw and the Slow-Trail begins pacing the stop forward as price progresses.

Declinazione di responsabilità

Le informazioni ed i contenuti pubblicati non costituiscono in alcun modo una sollecitazione ad investire o ad operare nei mercati finanziari. Non sono inoltre fornite o supportate da TradingView. Maggiori dettagli nelle Condizioni d'uso.