Body×Volume Pressure (Green vs Red) — array based

This indicator measures buying vs. selling pressure by looking at candle size together with trading volume. Instead of showing only price or only volume, it blends both into a single view, so you can quickly see when one side of the market is taking control.
It plots three main things:
1. Net Pressure Histogram
• Bars above zero (teal) = stronger buying pressure
• Bars below zero (maroon) = stronger selling pressure
2. Smoothed Net Line (EMA)
• A gray line that tracks the trend of net pressure
• Helps filter noise and spot when momentum is shifting
3. (Optional) Green & Red Pressure Sums
• Transparent teal = total “buy” pressure
• Transparent maroon = total “sell” pressure (plotted negative for symmetry)
⸻
⚙️ Inputs & Terms
• Lookback Window (len):
How many candles the indicator considers when tallying pressure. Larger = smoother, smaller = more sensitive.
• EMA Length (smoothLen):
The smoothing period for the gray Net EMA line. Helps you see the bigger picture trend in pressure.
• Bull/Bear Ratio Thresholds (optional):
Levels that define when buying or selling pressure is strong enough to call it an “imbalance.”
• Show Labels:
If enabled, the script will mark chart points with Bull imbalance or Bear imbalance labels when thresholds are crossed.
⸻
🚀 Quick Start Tutorial
1. Add to chart
• Copy/paste the code into the TradingView Pine Editor.
• Click “Add to chart.”
2. Choose a market and timeframe
• Works on any market (stocks, crypto, forex) and timeframe (1m, daily, weekly).
3. Read the histogram
• Tall teal bars = strong buying push.
• Tall maroon bars = strong selling push.
• Flat/low bars = market indecision.
4. Watch the Net EMA line
• If it trends above zero, buyers are dominating.
• If it trends below zero, sellers are dominating.
• Crossovers near zero can foreshadow momentum shifts.
5. Use thresholds (optional)
• Adjust the Bull and Bear thresholds in settings.
• When the ratio crosses them, labels/alerts will fire to highlight imbalances.
6. Combine with your strategy
• Use it alongside price action, support/resistance, or other indicators.
• Think of it as a confirmation tool for whether buyers or sellers are truly in control.
⸻
👉 This tool doesn’t give buy/sell signals by itself. It shows you pressure dynamics so you can make more informed trading decisions.
สคริปต์แบบเฉพาะผู้ได้รับเชิญเท่านั้น
เฉพาะผู้ใช้ที่ได้รับการอนุมัติจากผู้เขียนเท่านั้นที่สามารถเข้าถึงสคริปต์นี้ได้ คุณจะต้องร้องขอและได้รับอนุญาตก่อนจึงจะสามารถใช้งานได้ โดยปกติจะได้รับอนุญาตหลังจากชำระเงินแล้ว สำหรับรายละเอียดเพิ่มเติม ทำตามคำแนะนำของผู้เขียนด้านล่างหรือติดต่อ drlicht1 โดยตรง
TradingView ไม่แนะนำให้ชำระเงินหรือใช้สคริปต์ เว้นแต่ว่าคุณจะเชื่อถือผู้เขียนสคริปต์และเข้าใจวิธีการทำงานของมัน คุณยังอาจพบทางเลือกของโอเพนซอร์ส แบบฟรีในสคริปต์ชุมชนของเรา
คำแนะนำของผู้เขียน
คำจำกัดสิทธิ์ความรับผิดชอบ
สคริปต์แบบเฉพาะผู้ได้รับเชิญเท่านั้น
เฉพาะผู้ใช้ที่ได้รับการอนุมัติจากผู้เขียนเท่านั้นที่สามารถเข้าถึงสคริปต์นี้ได้ คุณจะต้องร้องขอและได้รับอนุญาตก่อนจึงจะสามารถใช้งานได้ โดยปกติจะได้รับอนุญาตหลังจากชำระเงินแล้ว สำหรับรายละเอียดเพิ่มเติม ทำตามคำแนะนำของผู้เขียนด้านล่างหรือติดต่อ drlicht1 โดยตรง
TradingView ไม่แนะนำให้ชำระเงินหรือใช้สคริปต์ เว้นแต่ว่าคุณจะเชื่อถือผู้เขียนสคริปต์และเข้าใจวิธีการทำงานของมัน คุณยังอาจพบทางเลือกของโอเพนซอร์ส แบบฟรีในสคริปต์ชุมชนของเรา