PROTECTED SOURCE SCRIPT

TFT VIP TRADE BODY & VOLUME RANGE

69
x-times (LAST BAR): Body & Volume vs Last 10 compares the current candle’s body size and volume to the SMA of the last N candles (default 10) and shows the result as “×ratio”. It’s designed to keep the chart uncluttered while giving you two key reads from the 5-minute timeframe:
• Previous 5m (closed) bar → fixed label with its final ratios.
• Current 5m (running) bar → live-updating label with real-time ratios.

Multi-timeframe behavior
• On 1-minute charts:
• A stamp for the last closed 5m is placed on that 5m block’s final 1-minute bar.
• A live label shows the current 5m ratios on the current 1-minute bar.
→ You’ll always see two labels max (closed 5m + running 5m).
• On 5-minute charts:
• One label on the previous 5m candle (closed).
• One label on the current 5m candle (running).
• On other timeframes:
• A single label shows the current 5m ratios on the last bar.

What the numbers mean
• Body ×r = abs(Close − Open) compared to SMA(body, N) on the reference TF.
• Vol ×r = Volume compared to SMA(Volume, N) on the reference TF.
• Color cue: ≥3× red, ≥2× orange, otherwise teal.

Inputs
• Lookback (bars): N for the SMA comparison (default 10).
• Decimals: number of decimals in the ×ratios.
• Vertical position: Above bar / Below bar.
• Layout: Side by side (previous left, current right) or Stacked.
• Horizontal offset (bars): space left/right from the anchor bar (for side-by-side).
• Vertical offset (ATR×): lift/drop labels using ATR for consistent spacing.

Notes & Tips
• Focuses on candle body, not high–low range.
• Keeps the chart clean: at most two labels on 1m/5m.
• Great for spotting impulsive 5m moves (body expansion) and volume surges relative to recent history.

Limitations
• No alerts baked in (by design).
• Ratios use SMA of the last N bodies/volumes; change N to suit volatility.



If you want, I can add a short tagline version for the “short description” box or wire in alert conditions (e.g., trigger when Body ≥ 2× or Vol ≥ 3×).

면책사항

이 정보와 게시물은 TradingView에서 제공하거나 보증하는 금융, 투자, 거래 또는 기타 유형의 조언이나 권고 사항을 의미하거나 구성하지 않습니다. 자세한 내용은 이용 약관을 참고하세요.