OPEN-SOURCE SCRIPT
Güncellendi

Continuation Suite v1 — 5m/15m

3 771
Continuation Suite v1 — 5m/15m (Non-Repainting, S/R + Trend Continuation)

What it does
Continuation Suite v1 is a practical intraday toolkit that combines non-repainting trend-continuation signals with auto-built Support/Resistance (S/R) from confirmed pivots. It’s designed for fast, liquid names on 5m charts with an optional 15m higher-timeframe (HTF) overlay. You get: stacked-EMA bias, disciplined pullback+reclaim entries, optional volume/volatility gates, a “Strong” signal tier, solid S/R lines or zones, and a compact dashboard for fast reads.



Why traders use it
• Clear bias using fast/mid/slow EMA stacking.
• Actionable entries that require a pullback, a reclaim, and (optionally) a minor break of prior extremes.
• Signal quality gates (volume vs SMA, ATR%, ADX/DI alignment, EMA spacing, slope).
• Non-repainting logic when “Confirm on Close” = ON. Intrabar previews show what’s forming, but confirmed signals only print on bar close.
• S/R that matters: confirmed-pivot lines or ATR-sized zones, optional HTF overlay, and auto de-dup to avoid clutter.



Signal construction (no magic, just rules)

Bullish continuation (base):
1. Trend: EMA fast > EMA mid > EMA slow
2. Pullback: price pulls into the stack (lowest low or close vs EMA fast/mid over a lookback)
3. Reclaim: close > EMA fast and close > open
4. Break filter (optional): current bar takes out the prior bar’s high
5. Filters: volume > SMA (if enabled) and ATR% ≤ max (if enabled)
6. Cooldown: a minimum bar gap between signals

Bearish continuation (base): mirror of the above.

Strong signals: base conditions plus ADX ≥ threshold, DI alignment (DI+>DI- for longs; DI->DI+ for shorts), minimum EMA-spacing %, and minimum fast-EMA slope.

Reference stops:
• Longs: lowest low over the pullback lookback
• Shorts: highest high over the pullback lookback

Alerts are included for: Bullish Continuation, Bearish Continuation, STRONG Bullish, STRONG Bearish.



S/R engine (current TF + optional HTF)
• Builds S/R from confirmed pivots only (left/right bars).
• Choose Lines (midlines) or Zones (ATR-sized).
• Zones merge when a new pivot lands near an existing zone’s mid (ATR-scaled epsilon).
• Touches counter tracks significance; you can require a minimum to draw.
• HTF overlay (default 15m) draws separate lines/zones with tiny TF tags on the right.
• De-dup option hides current-TF zones that sit too close to HTF zones (ATR-scaled), reducing overlap.
• Freeze on Close (optional) keeps arrays stable intrabar; snapshots show levels immediately as bars open.



Presets
• Auto: Detects QQQ-like tickers (QQQ, QLD, QID) or SoFi; else defaults to Custom.
• QQQ: Tighter ATR% and EMA settings geared to index-ETF behavior.
• SoFi: Wider ATR allowances and longer mid/slow for single-name behavior.
• Custom: Expose all key inputs to tune for your product.



Dashboard (top-right)
• Preset in use
• Bias (Bullish CONT / Bearish CONT / Neutral)
• Strong (Yes/No)
• Volatility (ATR% bucket)
• Trend (ADX bucket)
• HTF timeframe tag
• Volume (bucket or “off”)
• Signals mode (Close-Confirmed vs Intrabar)



Inputs you’ll actually adjust

Trend/Signals
• Fast/Mid/Slow EMA lengths
• Pullback lookback, Min bars between signals
• Volume filter (vol > SMA N)
• ATR% max filter (cap excessive volatility)
• Require break of prior bar’s high/low
• “Strong” gates: min EMA slope, min EMA spacing %, ADX length & threshold

Support/Resistance
• Lines vs Zones
• Pivot left/right bars
• Extend left/right (bars)
• Max pivots kept (current & HTF)
• Zone width (× ATR), Merge epsilon (× ATR), Min gap (× ATR)
• Min touches, Max zones per side near price
• De-dup current TF vs HTF (× ATR)

Repainting control
• Confirm on Close: when ON, signals/SR finalize on bar close (non-repainting)
• Freeze on Close: freeze S/R intrabar with snapshot updates
• Show previews: translucent intrabar labels for what’s forming



How to use it (straightforward)
1. Load on 5-minute chart (baseline). Keep Confirm on Close ON if you hate repainting.
2. Use Bias + Strong + S/R context. If a long prints into HTF resistance, you have information.
3. Manage risk off the reference stop (pullback extreme). If ATR% reads “Great,” widen expectations; if “Poor,” size down or pass.
4. Alerts: wire the four alert types to your workflow.



Notes and constraints
• Designed for liquid symbols. Thin books and synthetic “volume” will degrade the volume gate.
• S/R is pivot-based. On very choppy tape, touch counts help. Increase min touches or switch to Lines to declutter.
• If your chart timeframe isn’t 5m, behavior changes because lengths are in bars, not minutes. Tune lengths accordingly.



Disclaimers

This is a research tool. No signals are guaranteed. Markets change, outliers happen, slippage is real. Nothing here is financial advice—use your own judgment and risk management.



Author: DaddyScruff
License: MPL-2.0 (Mozilla Public License 2.0)
Sürüm Notları
Same logic and visuals, now fully optimized — no more timeout errors, faster response, same accuracy.
Sürüm Notları
Update v1.1
1. Add BTC preset and plug in its trend/SR defaults.
2. Drop in the reversal block (triggers + next-bar confirm + gates + cooldown + alerts).
3. Switch default current-TF S/R style to ZONES; keep HTF as LINES.
4. Enable S/R sync gating for CONT/STRONG (BLOCK LONG IN RES / SHORT IN SUP; minOppDistATR = 0.30).
5. Add NEXT zones rendering and HTF TF-label badges.
6. Adopt snapshot/freeze logic so S/R doesn’t jitter intrabar.
7. Upgrade dashboard text (ALL-CAPS, buckets, TL;DR) and add REV alerts.
8. Normalize input labels to ALL-CAPS for visual consistency.
Sürüm Notları
CONTINUATION SUITE V2 is a ground up rebuild of the engine behind V1.1. Same idea (EMA stack continuations, pullback reclaims, reversal confirmations, and ATR based support and resistance), now with smarter zones, symbol aware presets, full trade plans, and a strict no repaint model.

SMART SUPPORT AND RESISTANCE (ROLE FLIPPING)
• Levels now flip roles when price closes through them. A broken resistance becomes support on that close, a broken support becomes resistance. Higher timeframe levels flip on the higher timeframe close.
• A level tested from both sides merges into one zone with a combined touch count, so a support box will never draw on top of a resistance box at the same price.
• Overlapping opposite zones around price resolve automatically, the zone closer to price wins. Current timeframe zones also hide when they sit on a higher timeframe level of either role, keeping the chart clean.

AUTO SENSE PRESETS
• The preset engine detects what is on the chart using instrument type and futures root, not just ticker text.
• Preset families: QQQ, SPY, GOLD (with silver), OIL (with natural gas), BTC, ETH (also the fallback for other crypto), TSLA, NVDA, SOFI, FX majors, and CUSTOM for full manual control.
• Futures, index, CFD, and ETF aliases resolve to the right family: NQ and ES futures, NAS100, US500, XAUUSD, USOIL, GLD, USO, IBIT, and many more.
• Leveraged ETF awareness: known 2x and 3x funds (TQQQ, SQQQ, SSO, UPRO, UCO, NVDL, TSLL and others) automatically scale the volatility ceiling, the one setting leverage actually breaks. Every other parameter is ATR normalized and self adjusts.
• The dashboard always shows what was resolved, for example AUTO→QQQ | 3X ATR SCALE.

TRADE PLANS AND SMARTER ALERTS
• Every signal draws a position tool style plan: entry, stop (swing or ATR based), TP1 and TP2, with shaded risk and reward boxes and R multiples on the label.
• The suite tracks the most recent plan and fires STOP HIT, TP1 HIT, and TP2 HIT alerts on confirmed bars.
• Quality score 0 to 100 on every signal, weighing trend strength, EMA stack separation, slope, volume, room to the next opposite level, and higher timeframe alignment. Shown on the plan label, the dashboard, and inside every alert so signals can be filtered at a glance.
• Alert format input: TEXT for humans or JSON for webhooks and bots, carrying ticker, interval, signal, side, quality, entry, stop, and targets.
• Setup tip: create one alert with the condition set to "Any alert() function call" and every signal and every plan hit flows through it. Classic per signal alert conditions are still included.

NEW FILTERS
• HTF BIAS GATE: optionally block signals against, or require alignment with, the EMA stack on a higher timeframe of your choice.
• SESSION FILTER: optional trading window plus a skip the first N minutes setting for the open chop. Leave it off for crypto and FX.

NO REPAINT MODEL (PLAIN ENGLISH)
• Signals confirm on bar close.
• All higher timeframe data (zones and bias) uses the last closed higher timeframe bar, identical on historical and live charts. Toggleable, costs one higher timeframe bar of lag.
• Zones freeze intrabar and update on close. Plan hits evaluate on confirmed bars only.
• The only intentionally repainting elements are the optional "pre" preview labels, which exist to give an early heads up and can be turned off.

UI AND QUALITY OF LIFE
• Trend ribbon between the fast and mid EMAs shows stack direction at a glance.
• Theme aware colors across DARK, LIGHT, and NEON, including the EMAs.
• Restyled dashboard: title header, live ADX and ATR% readouts, session and bias status, distance to the nearest levels in ATR units, active plan status, last signal with quality and recency, running signal counts, plus position and text size inputs.
• Performance: consolidated higher timeframe requests and drawings that rebuild once per bar, so the suite stays light on busy charts.

UNDER THE HOOD
• All signal gates (S/R, session, bias) apply before anything is plotted or alerted, so the chart, the alerts, and the dashboard always agree.
• Stack gap and slope filters are ATR normalized, so preset values transfer across symbols and timeframes.
• Internal refactors for Pine v6 type compliance, stability, and speed.

NOTES
• If you customized the stack gap or slope inputs in V1.1, those now use ATR units and will need redialing. Everything else carries over.
• Educational tool, not financial advice. Test on your own symbols and timeframes before trusting any signal.

Feragatname

Bilgiler ve yayınlar, TradingView tarafından sağlanan veya onaylanan finansal, yatırım, alım satım veya diğer türden tavsiye veya öneriler anlamına gelmez ve teşkil etmez. Kullanım Koşulları bölümünde daha fazlasını okuyun.