OPEN-SOURCE SCRIPT

Strong Supertrend Engine | ProjectSyndicate

4 679
Strong Supertrend Engine maps the session around a Supertrend trend-stop and power-ranks the with-trend zones where price is most likely to continue, not reverse. Every session it reads one decision from the prior completed session's daily Supertrend — is the session open above the Supertrend a green, buy-only regime or below it a red, sell-only regime — and then projects an ATR-scaled ladder of reaction zones around the session open. On top of the zones it draws the session's best continuation setups as zone-to-zone arrows: in a green regime it points up from a pullback zone to a target zone; in a red regime it points down from a rally zone to a target below. The whole tool runs on one idea: trade dips with the trend, not against it — buy dips into support while the Supertrend is green, sell rips into resistance while it is red, and favor the stronger-graded zones.

This is the inverse of a fade tool. Across a broad multi-instrument study FX majors and crosses, gold and an index, fading stretched levels back to balance behaved like a coin flip, while with-trend pullback entries were the side that carried a modest, repeatable edge. Strong Supertrend Engine is built around that side.

🟢🔴 Summary how to trade this more details below, read entire guide. Best trade setups with this system is to buy dips, arrows highlight best entry zones / prices when price is trading above green ST zones. Likewise, sell rips, arrows highlight best entry zones on sell side / when price is trading below red ST zones. Detailed overview below. Run on lower TFs for best entries, i.e.
M5 M10 M15 M30.

🟢🔴 The Supertrend Regime the master switch — The session open versus the daily Supertrend sets the only bias that matters. Open above the Supertrend ⇒ the core stop band renders green and the engine shows BUY-ONLY setups buy the dips. Open below ⇒ the band renders red and the engine shows SELL-ONLY setups sell the rips. A close back through the Supertrend flips the regime and recolors everything. You never fight the band: green means look for longs, red means look for shorts.

🧲 The Session Basis auction center — Each session's zone ladder is anchored to the session open by default Prior HL2, OHLC4 or Close optional. Price spends the day auctioning around this basis, so the inner zones sit exactly where price actually trades and the outer zones mark a genuine stretch. The basis is also the natural first reference a with-trend pullback works back through.

📊 ATR-Scaled Zone Ladder — Five escalating tiers are projected above and below the basis at calibrated ATR offsets 0.12, 0.25, 0.40, 0.55, 0.75 × ATR by default, drawn as clean equal-height shaded bands. The spacing is deliberately pulled in to where price genuinely travels intraday a typical session covers roughly half an ATR from the open, so the inner tiers get tagged often and the outer tiers mark the real extremes. A global width multiplier and per-tier offsets let you reshape the geometry for any instrument or timeframe.

ES снимок

🟩 The Core Supertrend Stop Band — The actual daily Supertrend value is drawn as a bold band — green support in an uptrend, red resistance in a downtrend. It is the trend's hard line: the trade thesis holds while price stays on the correct side of it, and a close through it is the regime flip and the natural hard stop.

🏷️ 0–10 Strength Grade & In-Zone Labels — Every zone carries a live 0–10 grade inside the band — the tier name with a ▲ / ▼ side marker, stars, the X.X/10 score and a tier word FORMING → WEAK → MODERATE → STRONG → ELITE. The grade blends tier extremity, volatility context, trend regime and with-trend alignment so the with-trend side is favored. Read it as a descriptive conviction ranking for which zone deserves attention — it is not a backtested win-rate.

WTI снимок

🏹 Continuation Setup Arrows the signature feature — For the last N sessions, the engine selects the best 2–4 with-trend setups per session and draws each as a zone-to-zone arrow that spans several zones 3 by default, so each arrow shows a meaningful directional trade, not a one-tier hop. In a green regime arrows run up from a pullback/dip zone, through the open, to a target zone above; in a red regime they run down from a rally/rip zone to a target below. Each arrow is labeled with the entry→target zones, the R multiple of the move, and a star grade. Setups are ranked by regime strength + momentum alignment + clean pullback depth, so the strongest, best-located trades surface first.

📈 Laguerre PPO Momentum Confluence — A daily, non-repainting Laguerre PPO reads whether momentum agrees with the regime. It boosts the score of aligned setups and can be set as a hard filter so only momentum-confirmed setups print. Up-momentum strengthens buy-dip setups in a green regime; down-momentum strengthens sell-rip setups in a red regime.

BTC снимок

⚙️ Uniform ATR Zone Height — Every tier shares one identical ATR-based thickness, centered on its level, for a clean, consistent look on any symbol or timeframe.

🎨 Regime & Strength Shading — Stronger zones render more opaque, weaker ones stay faint, and counter-trend zones are dimmed so the actionable with-trend side pops. Resistance tiers shade red, support tiers green, the core stop green/red by regime, and the arrows green for buys, red for sells. Arrow labels use black text for crisp readability on the colored tags.

🔒 Non-Repainting — Each session's regime, basis, zones, scores and arrows lock in from the completed prior session read with a confirmed [1] offset and never change intraday. Zones span exactly one session and close cleanly at the boundary — no bleed into the next session. The last N sessions are kept default 10 and older ones are removed automatically.

Silver снимок

📋 Live Dashboard — A compact panel reports the current Regime BUY-ONLY / SELL-ONLY, Momentum up / down, the number of setups this session, the Trend, the Supertrend stop price, ATR, the distance from price to the stop in ATR, and the trend age in sessions.

🔔 Native Alerts — Dedicated Buy Continuation Setups and Sell Continuation Setups alerts the moment a new session's setups print, plus zone-touch, strong-zone, extreme-tier, core-stop-tag and Supertrend-flip alerts.

🔧 Fully Customizable — Supertrend ATR length and factor, basis source, the five tier offsets and global width multiplier, zone thickness, the four scoring weights and their lookbacks, the score filter, the Laguerre fast/slow gammas and momentum-filter toggle, arrow count 2–4, arrow span zones, spacing, width, colors and labels, dashboard position/size, transparency and shading — all adjustable.

DAX снимок

🎯 Why this is different — Most band tools draw static envelopes and leave you guessing which edge matters, and most "tops & bottoms" tools quietly ask you to fade strong moves. Strong Supertrend Engine does the opposite: it frames the session as a trend defined by the Supertrend, refuses to show counter-trend trades, and hands you the session's best with-trend continuation setups as labeled arrows from zone to zone. You read the regime green/red, the destination the arrow's target zone, and the conviction the score at a glance.

🚀 Apply to Gold XAUUSD, Silver, Forex, Crypto and Indices on any intraday timeframe.

🎯 How To Trade It — Two Approaches

Everything hinges on the regime: green Supertrend = buy dips only, red Supertrend = sell rips only. Never fade the band. Use the stronger-graded zones and the printed arrows to pick the best-located entry.

◾ 1 BUY DIPS in a Green Supertrend Regime — open above the green ST
This is the engine's core long thesis. The session open is above the green Supertrend, so the regime is BUY-ONLY and buy arrows point up from the dip zones toward higher targets.
▪️ Setup: wait for price to pull back / dip into a support zone below the open — prefer the stronger-graded zones higher score / more stars, ideally one a buy arrow points up out of, with Laguerre momentum up.
▪️ Entry: long on the dip into the zone, in the direction of the green regime the with-trend bounce.
▪️ Stop: below the entry zone — one tier deeper — with the green core Supertrend stop as the hard invalidation. A decisive close below the green ST flips the regime; the long thesis is then wrong, stand aside.
▪️ Targets: step up zone to zone toward the arrow's target each arrow spans ~3 zones — through the open into the upper tiers, banking partials at each tier and trailing with the trend.
⚖️ The cleanest version: price opens above a rising green Supertrend, dips into a STRONG/ELITE support tier, holds, and rotates back up through the open into the upper tiers — exactly the leg the arrow frames. The deeper-but-still-graded dips offer the better risk; the shallow ones trigger most often.

◾ 2 SELL RIPS in a Red Supertrend Regime — open below the red ST
The mirror image. The session open is below the red Supertrend, so the regime is SELL-ONLY and sell arrows point down from the rally zones toward lower targets.
▪️ Setup: wait for price to rally / rip into a resistance zone above the open — prefer the stronger-graded red zones higher score / more stars, ideally one a sell arrow points down out of, with Laguerre momentum down.
▪️ Entry: short on the rip into the zone, in the direction of the red regime.
▪️ Stop: above the entry zone — one tier higher — with the red core Supertrend stop as the hard invalidation. A decisive close above the red ST flips the regime; stand aside.
▪️ Targets: step down zone to zone toward the arrow's target through the open into the lower tiers, banking partials and trailing the move.

Rule of thumb: ⭐ Green Supertrend, open above it → buy dips into the stronger support zones, target the arrow's zones up. ⭐ Red Supertrend, open below it → sell rips into the stronger resistance zones, target the arrow's zones down. ⭐ When price closes through the Supertrend, the regime flips — wait for the new side before taking the next trade.

EURUSD снимок

⚠️ IMPORTANT NOTICE: Strong Supertrend Engine frames a Supertrend-defined trend and ranks the best with-trend continuation setups. The 0–10 score is a descriptive conviction ranking, not a backtested win-rate, and the with-trend edge measured in study was modest — these zones and arrows are decision support, not a standalone trade trigger. Always combine them with your own strategy, price-action confirmation and risk management. Past behavior does not guarantee future results.

Отказ от ответственности

Информация и публикации не предназначены для предоставления и не являются финансовыми, инвестиционными, торговыми или другими видами советов или рекомендаций, предоставленных или одобренных TradingView. Подробнее читайте в Условиях использования.