PROTECTED SOURCE SCRIPT
TFT VIP TRADE BODY & VOLUME RANGE

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×).
• 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×).
Korumalı komut dosyası
Bu komut dosyası kapalı kaynak olarak yayınlanmaktadır. Ancak, özgürce ve herhangi bir sınırlama olmaksızın kullanabilirsiniz – daha fazla bilgi burada.
Feragatname
Bilgiler ve yayınlar, TradingView tarafından sağlanan veya onaylanan finansal, yatırım, işlem veya diğer türden tavsiye veya tavsiyeler anlamına gelmez ve teşkil etmez. Kullanım Şartları'nda daha fazlasını okuyun.
Korumalı komut dosyası
Bu komut dosyası kapalı kaynak olarak yayınlanmaktadır. Ancak, özgürce ve herhangi bir sınırlama olmaksızın kullanabilirsiniz – daha fazla bilgi burada.
Feragatname
Bilgiler ve yayınlar, TradingView tarafından sağlanan veya onaylanan finansal, yatırım, işlem veya diğer türden tavsiye veya tavsiyeler anlamına gelmez ve teşkil etmez. Kullanım Şartları'nda daha fazlasını okuyun.