S&P 500 7,457.69 -1.01% NASDAQ 25,520.24 -1.40% DOW 52,146.42 -0.77% R2K 2,962.22 -0.42% VIX 18.77 +12.19% US 10Y 4.54 -0.61% DXY 100.75 +0.02% GOLD 4,023.00 +0.94% CRUDE 81.77 +3.57%
Next Bullish Trade
Sign in
OdysseyHQ Pine Scripts · Pine Script · TradingView

Sway — by OdysseyHQ

One glance tells you the regime — an EMA-21 midline, trend cloud and wide Keltner rails that all flip color the moment price changes sides.

📈 Works on any TradingView chart 📧 Full Pine Script emailed instantly ♾️ Lifetime access, no subscription
Free with NBT Pro — not sold separately Go Pro to claim it →

This script is exclusive to NBT Pro members — go Pro and claim it in one click, right here.

Real charts · signals computed by the indicator's rules, not drawn

Sway — by OdysseyHQ preview 1
Real NVDA daily bars — the midline, cloud, rails and candles all flip color the moment price changes sides of the EMA-21. The annotated flip to red saw a measured **−7.7%** follow-through.
Sway — by OdysseyHQ preview 2
The anatomy view — EMA-21 midline, translucent trend cloud, and the wide KC3 rails (EMA-21 ± 3×ATR-21) that frame stretched moves.

About this Pine Script

See the regime before you plan the trade. Sway paints your whole chart by one rule: is price above or below its EMA-21? The midline, a translucent cloud between price and the EMA, the wide Keltner rails (EMA-21 ± 3×ATR-21) and every candle all switch color together — teal while buyers are in charge, red when they're not.

What's on the chart

  • EMA-21 midline — the dividing line between the two regimes,

colored by which side price closed on.

  • Trend cloud — a translucent fill between price and the midline,

so the distance from "fair" is visible at a glance.

  • KC3 rails — Keltner bands at EMA-21 ± 3×ATR-21 in the same regime

color; tags of the outer rails mark stretched, reversal-prone moves.

  • Regime candles — every bar takes the regime color, so a flip is

impossible to miss even zoomed way out.

  • Optional cross markers — small triangles at each close above /

below the midline (off by default; one toggle turns them on).

Every length, color and toggle is editable from the indicator's settings. Works on any symbol and timeframe TradingView supports — stocks, ETFs, futures, crypto.

Free with NBT Pro — not sold separately. Claim it below and the full Pine Script is revealed on the page (or emailed to your Pro address). Paste it into TradingView's Pine Editor and it's on your chart in about a minute. This is a charting tool, not financial advice — always do your own due diligence before any trade.

How you get access

1Buy the indicator — the full Pine Script is emailed to you the moment checkout completes.
2In TradingView, open the Pine Editor (bottom of any chart) and paste the script.
3Click Add to chart and save — it's yours for life, on any symbol and timeframe.
Sway — by OdysseyHQ

Exclusive to NBT Pro — never sold separately. Go Pro and this script is yours to claim instantly.

Go Pro to claim it →

NBT Pro includes every Pine Script — this one and Signal Stack.