PROTECTED SOURCE SCRIPT
YBL – Smart Money Volume++ (Neón)

🔹 Full description (pégalo en “Describe your script…”)
YBL – Smart Money Volume++ (Neon)
YBL – Smart Money Volume++ is an advanced volume spike detector that separates Smart Money vs Retail activity, plots neon bubbles and levels on price, and keeps a live profit/loss table for both classes.
The goal is to see who is winning right now – aggressive Smart Money or late Retail traders – and to use that information as a real-time bias filter and execution map.
⸻
🔧 Core logic
• Lower timeframe volume engine
• Uses request.security_lower_tf() to read lower TF volume (1–15m or Auto based on the chart).
• Builds a rolling buffer of volume and computes:
• Classic Z-score, and
• Robust MAD-Z (Median + MAD) for outlier detection.
• Adaptive Z/MAD thresholds
• Main window length: zLen (default 50 bars).
• Adaptive threshold: |Z| > thEff, where thEff scales automatically with volatility using thAutoK.
• Option to use robust MAD-Z (useMAD = true) or classic Z-score.
• Retail vs Smart Money classification
• Volume events are classified per tick as:
• Retail if they fire near the bar close, or
• Smart Money if they occur inside the candle body (aggressive participation).
• Optional ATR filter to ignore events too far from the current close.
• Volume levels & decay
• For each valid event the script draws a horizontal neon level at the event price:
• Color encodes direction (bull/bear) and class (Smart/Retail).
• Thickness and glow are proportional to spike intensity.
• Levels can:
• Extend over time,
• Be deleted when price body crosses them (cleanOnBody), and/or
• Expire after N bars (decayBars).
• Neon volume bubbles
• On each bar, the largest spike generates a bubble:
• Size = function of |Z| (Tiny → Huge).
• Color = Smart vs Retail + Bull vs Bear.
• Anti-overlap offset so bubbles don’t stack on top of price.
⸻
📊 Live P/L table (Retail vs Smart)
The script keeps track of whether each level is in profit or loss:
• For each stored level it checks if the current close is:
• In profit or loss for that direction.
• The P/L table shows:
• Retail: total profit volume, total loss volume, and Hit%.
• Smart Money: total profit volume, total loss volume, and Hit%.
• Background of the cells is shaded with a neon heatmap, emphasizing the dominant side.
• A Mini Mode is available:
• Automatically sets the table to Tiny, reduces stored levels and turns off glow for iPad / low-clutter layouts.
⸻
🎛 Main options
• Mini Mode – Light version for iPad or when you want less visual noise.
• Lower TF selection – Auto (based on chart TF) or fixed (1/3/5/15).
• Filters
• In-body vs at-close classification.
• ATR distance filter.
• Global “who to show”: Smart Money / Retail / Both.
• Visual
• Levels on/off, decay, clean on candle body, glow width.
• Bubbles on/off, anti-overlap.
• Colors
• Full YBL Neon theme:
• Smart bull / Smart bear.
• Retail bull / Retail bear.
⸻
🔔 Alerts
The script comes with four alert conditions per bar:
• Retail Bull – bullish Retail event.
• Retail Bear – bearish Retail event.
• Smart Money Bull – bullish Smart Money event.
• Smart Money Bear – bearish Smart Money event.
You can plug these directly into TradingView alerts to track activity for each class.
⸻
📈 How I use it
• As a heatmap of participation:
• I want to see whether Smart Money levels are being respected or broken.
• As a bias filter:
• If Smart Money bubbles and levels are in profit and stacking in one direction, I avoid fighting that side.
• As a confluence tool:
• I combine these levels with my other YBL tools (CVD, order-flow bubbles, institutional levels) to define execution zones.
⸻
⚠️ Disclaimer
This script is for educational/analytical purposes only and does not constitute financial advice. Always do your own research and manage your risk.
YBL – Smart Money Volume++ (Neon)
YBL – Smart Money Volume++ is an advanced volume spike detector that separates Smart Money vs Retail activity, plots neon bubbles and levels on price, and keeps a live profit/loss table for both classes.
The goal is to see who is winning right now – aggressive Smart Money or late Retail traders – and to use that information as a real-time bias filter and execution map.
⸻
🔧 Core logic
• Lower timeframe volume engine
• Uses request.security_lower_tf() to read lower TF volume (1–15m or Auto based on the chart).
• Builds a rolling buffer of volume and computes:
• Classic Z-score, and
• Robust MAD-Z (Median + MAD) for outlier detection.
• Adaptive Z/MAD thresholds
• Main window length: zLen (default 50 bars).
• Adaptive threshold: |Z| > thEff, where thEff scales automatically with volatility using thAutoK.
• Option to use robust MAD-Z (useMAD = true) or classic Z-score.
• Retail vs Smart Money classification
• Volume events are classified per tick as:
• Retail if they fire near the bar close, or
• Smart Money if they occur inside the candle body (aggressive participation).
• Optional ATR filter to ignore events too far from the current close.
• Volume levels & decay
• For each valid event the script draws a horizontal neon level at the event price:
• Color encodes direction (bull/bear) and class (Smart/Retail).
• Thickness and glow are proportional to spike intensity.
• Levels can:
• Extend over time,
• Be deleted when price body crosses them (cleanOnBody), and/or
• Expire after N bars (decayBars).
• Neon volume bubbles
• On each bar, the largest spike generates a bubble:
• Size = function of |Z| (Tiny → Huge).
• Color = Smart vs Retail + Bull vs Bear.
• Anti-overlap offset so bubbles don’t stack on top of price.
⸻
📊 Live P/L table (Retail vs Smart)
The script keeps track of whether each level is in profit or loss:
• For each stored level it checks if the current close is:
• In profit or loss for that direction.
• The P/L table shows:
• Retail: total profit volume, total loss volume, and Hit%.
• Smart Money: total profit volume, total loss volume, and Hit%.
• Background of the cells is shaded with a neon heatmap, emphasizing the dominant side.
• A Mini Mode is available:
• Automatically sets the table to Tiny, reduces stored levels and turns off glow for iPad / low-clutter layouts.
⸻
🎛 Main options
• Mini Mode – Light version for iPad or when you want less visual noise.
• Lower TF selection – Auto (based on chart TF) or fixed (1/3/5/15).
• Filters
• In-body vs at-close classification.
• ATR distance filter.
• Global “who to show”: Smart Money / Retail / Both.
• Visual
• Levels on/off, decay, clean on candle body, glow width.
• Bubbles on/off, anti-overlap.
• Colors
• Full YBL Neon theme:
• Smart bull / Smart bear.
• Retail bull / Retail bear.
⸻
🔔 Alerts
The script comes with four alert conditions per bar:
• Retail Bull – bullish Retail event.
• Retail Bear – bearish Retail event.
• Smart Money Bull – bullish Smart Money event.
• Smart Money Bear – bearish Smart Money event.
You can plug these directly into TradingView alerts to track activity for each class.
⸻
📈 How I use it
• As a heatmap of participation:
• I want to see whether Smart Money levels are being respected or broken.
• As a bias filter:
• If Smart Money bubbles and levels are in profit and stacking in one direction, I avoid fighting that side.
• As a confluence tool:
• I combine these levels with my other YBL tools (CVD, order-flow bubbles, institutional levels) to define execution zones.
⸻
⚠️ Disclaimer
This script is for educational/analytical purposes only and does not constitute financial advice. Always do your own research and manage your risk.
สคริปต์ที่ได้รับการป้องกัน
สคริปต์นี้ถูกเผยแพร่เป็นแบบ closed-source อย่างไรก็ตาม คุณสามารถใช้ได้อย่างอิสระและไม่มีข้อจำกัดใดๆ – เรียนรู้เพิ่มเติมได้ที่นี่
คำจำกัดสิทธิ์ความรับผิดชอบ
ข้อมูลและบทความไม่ได้มีวัตถุประสงค์เพื่อก่อให้เกิดกิจกรรมทางการเงิน, การลงทุน, การซื้อขาย, ข้อเสนอแนะ หรือคำแนะนำประเภทอื่น ๆ ที่ให้หรือรับรองโดย TradingView อ่านเพิ่มเติมใน ข้อกำหนดการใช้งาน
สคริปต์ที่ได้รับการป้องกัน
สคริปต์นี้ถูกเผยแพร่เป็นแบบ closed-source อย่างไรก็ตาม คุณสามารถใช้ได้อย่างอิสระและไม่มีข้อจำกัดใดๆ – เรียนรู้เพิ่มเติมได้ที่นี่
คำจำกัดสิทธิ์ความรับผิดชอบ
ข้อมูลและบทความไม่ได้มีวัตถุประสงค์เพื่อก่อให้เกิดกิจกรรมทางการเงิน, การลงทุน, การซื้อขาย, ข้อเสนอแนะ หรือคำแนะนำประเภทอื่น ๆ ที่ให้หรือรับรองโดย TradingView อ่านเพิ่มเติมใน ข้อกำหนดการใช้งาน