OPEN-SOURCE SCRIPT

Ripster Labels + Air Gaps (v6)

84
What it shows (on one chart)

EMA Clouds (current timeframe)

Plots EMA 8/12/21/34/50/200 with three cloud fills:

12–21 = “fast” cloud

34–50 = “mid” cloud

50–200 = “base” cloud

Cloud color: green when the faster EMA is above the slower (bullish), red/maroon/orange when below (bearish).

Toggle lines vs. clouds via A) EMA Clouds settings.

MTF Rails (higher-TF EMAs)

For three higher timeframes (defaults 30m / 60m / 240m), draws two EMAs each (defaults 34 & 50).

These are stepline-like rails you can visually use as higher-TF supports/resistances.

Configure in B) MTF Rails (turn on/off, change TFs/lengths/colors).

Relative Volume Box (RVol)

Small table (top-center) showing:

Candle Vol (formatted K/M/B if enabled)

RVol = current bar volume / SMA 20 of volume (as a %)

Color scale: blue (<100%), yellow (100–150%), red (>150%).

Settings in C) RVol Box.

DTR vs ATR Box

Daily True Range (DTR = day high − day low) vs ATR(14) on the daily timeframe, with DTR as % of ATR.

Placed at top-right; toggle in D) DTR/ATR Box.

Ripster Trend Label (10m 12/50)

Looks at a separate timeframe (default 10m): EMA 12 vs EMA 50.

Bottom-right table cell shows “10m Trend ↑/↓/Sideways” (green/red/gray).

Configure in E) Ripster Trend Labels (TF and lengths).

Air Gaps (single EMA per TF)

Three horizontal, auto-extending lines showing an EMA from 30m / 60m / 240m (default length 12).

“Air gaps” are the price spaces between these lines—often lighter-resistance zones for price.

Start point logic:

All Bars = draw from the chart’s left

Start of Day = draw from today’s first bar

Bars Offset = draw from N bars back (default 100)

Settings in F) Air Gaps (TFs, length, draw-from, bars-back).

Inputs & where to tweak
A) EMA Clouds

Show EMA Clouds: master toggle

Source: close (default)

Lengths: 8/12/21/34/50/200

Show EMA lines: toggle plotted lines (clouds remain)

B) MTF Rails

Show MTF Rails

TF1/TF2/TF3 (defaults 30/60/240)

EMA A/B (defaults 34/50)

C) RVol Box

Show box

Format as K/M/B: K=1e3, M=1e6, B=1e9

D) DTR/ATR Box

Show DTR/ATR

ATR len: default 14 (daily)

E) Ripster Trend Labels

Show labels

Trend TF: default 10 (10-minute)

Trend EMA Fast/Slow: default 12/50

F) Air Gaps

Show Air Gap lines

TF1/TF2/TF3 (30/60/240)

EMA length: default 12

Draw from: All Bars | Start of Day | Bars Offset

Bars back: used if Draw from = Bars Offset

How it makes decisions

Cloud bias = sign of (faster EMA − slower EMA) for each cloud pair.
Example: 12>21 → fast cloud is bullish (green); 34>50 → mid cloud bullish (teal).

10m trend label = sign of (EMA12−EMA50) on the Trend TF (default 10m).

RVol = volume / sma(volume, 20); formatted as a percent and color-coded.

Practical read of the screen

Fast cloud flips (12/21) often mark short-term momentum changes; mid cloud flips (34/50) reflect swing bias.

Air Gap lines from higher TFs frequently act as support/resistance. Larger spaces between lines = “air gaps” where price can move with less friction.

RVol color tells you how “real” a move is: red/yellow often confirms momentum; blue warns of thin/liquidy bars.

DTR vs ATR shows if today’s range is stretched vs recent norm.

Design choices (why your prior errors are gone)

Removed multiline ?: chains → replaced by if/else (Pine v6 is picky about line continuations).

Moved fill() calls outside of local if blocks (Pine limitation).

ta.change(time("D")) != 0 makes the if condition boolean.

Declared G_drawFrom / G_barsBack before startX() so identifiers exist.

Pernyataan Penyangkalan

Informasi dan publikasi tidak dimaksudkan untuk menjadi, dan bukan merupakan saran keuangan, investasi, perdagangan, atau rekomendasi lainnya yang diberikan atau didukung oleh TradingView. Baca selengkapnya di Persyaratan Penggunaan.