OPEN-SOURCE SCRIPT
Güncellendi Volume Based Analysis V 1.00

Volume Based Analysis V1.00 – Multi-Scenario Buyer/Seller Power & Volume Pressure Indicator
Description:
1. Overview
The Volume Based Analysis V1.00 indicator is a comprehensive tool for analyzing market dynamics using Buyer Power, Seller Power, and Volume Pressure scenarios. It detects 12 configurable scenarios combining volume-based calculations with price action to highlight potential bullish or bearish conditions.
When used in conjunction with other technical tools such as Ichimoku, Bollinger Bands, and trendline analysis, traders can gain a deeper and more reliable understanding of the market context surrounding each signal.
2. Key Features
- 12 Configurable Scenarios covering Buyer/Seller Power convergence, divergence, and dominance
- Advanced Volume Pressure Analysis detecting when both buy/sell volumes exceed averages
- Global Lookback System ensuring consistency across all calculations
- Dominance Peak Module for identifying strongest buyer/seller dominance at structural pivots
- Real-time Signal Statistics Table showing bullish/bearish counts and volume metrics
- Fully customizable inputs (SMA lengths, multipliers, timeframes)
- Visual chart markers (S01 to S12) for clear on-chart identification
3. Usage Guide
- Enable/Disable Scenarios: Choose which signals to display based on your trading strategy
- Fine-tune Parameters: Adjust SMA lengths, multipliers, and lookback periods to fit your market and timeframe
- Timeframe Control: Use custom lower timeframes for refined up/down volume calculations
Combine with Other Indicators:
- Ichimoku: Confirm volume-based bullish signals with cloud breakouts or trend confirmation
- Bollinger Bands: Validate divergence/convergence signals with overbought/oversold zones
- Trendlines: Spot high-probability signals at breakout or retest points
- Signal Tables & Peaks: Read buy/sell volume dominance at a glance, and activate the Dominance Peak Module to highlight key turning points.
4. Example Scenarios & Suggested Images
Image #1 – S01 Bullish Convergence Above Zero
S01 activated, Buyer Power > 0, both buyer power slope & price slope positive, above-average buy volume. Show S01 ↑ marker below bar.Image #2 – Combined with Ichimoku
Display a bullish scenario where price breaks above Ichimoku cloud while S01 or S09 bullish signal is active. Highlight both the volume-based marker and Ichimoku cloud breakout.
Image #3 – Combined with Bollinger Bands & Trendlines
Show a bearish S10 signal at the upper Bollinger Band near a descending trendline resistance. Highlight the confluence of the volume pressure signal with the band touch and trendline rejection.
Image #4 – Dominance Peak Module
Pivot low with green ▲ Bull Peak and pivot high with red ▼ Bear Peak, showing strong dominance counts.
Image #5 – Statistics Table in Action
Bottom-left table showing buy/sell volume, averages, and bullish/bearish counts during an active market phase.
5. Feedback & Collaboration
Your feedback and suggestions are welcome — they help improve and refine this system. If you discover interesting use cases or have ideas for new features, please share them in the script’s comments section on TradingView.
6. Disclaimer
This script is for educational purposes only. It is not financial advice. Past performance does not guarantee future results. Always do your own analysis before making trading decisions.
Tip: Use this tool alongside trend confirmation indicators for the most robust signal interpretation.
Sürüm Notları
What’s New (v1.1+): Event-Driven Decision TableIn response to user feedback and advanced live market testing, the indicator’s Decision Table logic has been significantly improved.
Now, the signal summary table (top right) is event-driven:
The table holds all previous signals until a new signal appears on a new bar (candle).
As soon as a new signal is detected in a fresh bar, the table is instantly cleared and repopulated only with the current bar’s active scenarios.
If there are no new signals in the new bar, the previous table remains visible, allowing traders to keep track of the last active signals until new activity occurs.
Benefit:
This approach ensures much more accurate, real-time decision tracking — reducing noise, preventing premature table resets, and making the logic consistent with live price action. The logic is robust, responsive, and adapts to periods of high and low activity seamlessly.
As always, your feedback, bug reports, and suggestions for further improvements are welcome.
Sürüm Notları
What’s New in v1.2+:This update introduces the Balance Line and Multi-Point Volume/Price Comparison module, giving traders a powerful new way to visualize and analyze price and volume structure. With this feature, balance lines are drawn directly on the chart between key reference bars (t0, t-26, t-52), making it easy to spot major trend movements, shifts in momentum, and critical equilibrium zones. The real-time comparison table highlights Buy, Sell, and Delta volumes at each anchor point, automatically detecting whether market flows are balanced or imbalanced across these key periods.
For advanced users, optional High/Low and Cross Hi/Lo lines can be displayed to further enhance swing structure analysis and uncover hidden areas of support, resistance, or price confluence. These new visualization tools provide a deeper multi-timeframe perspective and support more informed trading decisions in any market condition.
Your feedback and suggestions are always welcome. Please share your thoughts in the comments so we can continue to improve and expand this indicator together.
Sürüm Notları
What’s New in v1.3+: Enhanced Hi/Lo Visualization ModuleThis update upgrades the optional Cross Hi/Lo Lines feature into fully shaded HiLo and LoHi triangles, providing a cleaner, more intuitive visual experience for swing structure analysis.
From lines to triangles: Instead of three separate lines per group, the new module uses filled polygons to connect key High and Low points (t0, t-26, t-52), forming visually distinct triangles.
Customizable colors & opacity: Traders can now set line and fill colors independently for both HiLo and LoHi triangles, including transparency control for better chart integration.
Improved clarity: The shaded areas make it easier to spot key swing zones, price confluence regions, and potential support/resistance areas at a glance.
This enhancement not only improves aesthetics but also speeds up interpretation of the indicator’s structural patterns, helping traders quickly identify significant market swings in real-time.
Sürüm Notları
Volume Based Analysis V1.4+ – Dynamic Balance Table & Dedicated High/Low Triangle VisualizationDescription:
1. Overview
The Volume Based Analysis V1.4+ builds on the existing multi‐scenario buyer/seller power and volume pressure framework with key visual and functional improvements to the Balance module. The update focuses on making balance period comparisons fully dynamic and introducing dedicated “High–High–High” and “Low–Low–Low” triangle visualizations for clearer swing structure interpretation.
2. Key Enhancements
Dynamic Balance Comparison Table:
The Buy/Sell/Delta comparison table (bottom right) now automatically updates its column headers (t‑0, t‑distance, t‑distance×2) based on the user‐selected Balance Line Distance. This ensures that all on‐chart labels remain synchronized with the actual lookback period being analyzed.
Generalized Tooltips:
All related tooltip descriptions have been rewritten in a generalized form to avoid fixed numbers and clearly state that all calculations and visuals adapt to the selected distance value.
Dedicated High/Low Triangles:
The old multi‐line High/Low module has been replaced with filled polygon triangles for same‐type anchor points:
High–High–High Triangle (H0 → Hdistance → Hdistance×2) with a default blue theme.
Low–Low–Low Triangle (L0 → Ldistance → Ldistance×2) with a default red theme.
Both triangles feature independent line and fill color inputs (with transparency) so traders can tailor the display to their chart style.
Full Integration with Existing Logic:
The new triangle module uses the same underlying reference points (idx0, idx26, idx52) as the rest of the Balance module, ensuring compatibility with all current calculations and avoiding any disruption to existing functions.
3. Benefits:
Immediate visual clarity for identifying same‐type swing points and potential zones of continuation or reversal.
Consistent and accurate column labels for all balance period comparisons, regardless of the chosen lookback distance.
Cleaner chart presentation by replacing multiple connecting lines with a single filled shape per group.
4. Usage Guide:
Adjust Balance Line Distance to set the reference spacing. All table labels and triangle anchors will update automatically.
Customize triangle colors and opacity from the indicator settings to match your preferred chart style.
Combine with the Cross Hi/Lo Triangles (introduced in v1.3+) to get both same‐type and cross‐type swing structure perspectives on the same chart.
5. Feedback & Collaboration:
We encourage you to share your experiences and results using this updated module — especially in combination with your existing strategies and other technical tools. Your insights will help us refine the design and develop even more powerful features in future versions.
6. Disclaimer:
This script is for educational purposes only and is not financial advice. Past performance does not guarantee future results. Always perform your own due diligence before trading.
Tip: For best results, use this indicator alongside complementary tools such as trend confirmation indicators, Ichimoku, or Bollinger Bands, and share your findings in the comments so we can continue improving this system together.
Sürüm Notları
Volume Based Analysis — v1.5+ Release NotesUpgrade from v1.4+
Overview
Version 1.5+ delivers a major interface and analytics upgrade while keeping the core 12-scenario logic unchanged.
Expect a unified dashboard, triangle typing & metrics, live peak signal recording, and a Decision Table relocation designed for maximum readability without overlapping TradingView’s built-in panels.
Major Changes
1. Unified Dashboard (Bottom-Left)
- Replaces the separate Balance Table (bottom-right) and Decision Table (top-right).
- Displays:
Live Buy/Sell counts for t-0 and t-1
Bull/Bear counts & Volume Δ/▽
Buy/Sell/Delta balance status (“✔ Balanced” / “❌ Unbalanced”)
Triangle analysis: type, normalized area, equi-coherence score, t-0 vs t-1 comparison
2. Triangle Typing & Metrics (New)
- Classifies triangles by side lengths: Equilateral / Isosceles / Scalene
- Classifies triangles by angles: Acute / Right / Obtuse
Lengths calculated from price swings, optionally normalized by ATR for timeframe/symbol scaling
- Angles calculated with the Law of Cosines and tolerance controls
- Extra metrics:
Normalized Area (Heron’s formula + ATR scaling)
Equi-coherence: lower = closer to equilateral
- Optional t-1 triangle calculation for historical comparison
3. Live Record Peak Signals (New)
- Counts simultaneous Bull/Bear signals per candle
- Prints “▲ Bull Record” or “▼ Bear Record” on-chart when a new record is hit
4. Decision Table Relocation
Now positioned Top-Left instead of top-right
Configurable top padding (default: 3 rows) to avoid overlap with TradingView’s symbol/price/volume panel
Clears and updates only on the first signal of a new bar
Visual & UX Enhancements
- Semi-transparent plotshapes (alpha = 100) for improved readability
- Dark/Light dashboard themes
- Compact Mode for mobile and smaller screens
- Adjustable dashboard padding to prevent UI overlaps
- Color-coded cells for quick interpretation
Removed / Replaced
- Removed: Bottom-Right Balance Table
- Removed: Top-Right Decision Table
(Both replaced by the Unified Dashboard; Decision Table is still optionally available at Top-Left with padding)
New Settings
- Triangle Module: tri_enable, tri_tol_pct, tri_right_deg, tri_use_atr, tri_show_prev
- Dashboard: dash_compact, dash_theme_dark, dash_pad_rows
- Decision Table: Decision Table: Top Padding Rows
Upgrade Notes
- No changes to the core 12 scenario detection logic — your signals and alerts will behave exactly as before
- New features (Triangle Typing, Peak Signal Records, Dashboard) can be enabled without affecting existing strategies
- Users upgrading from v1.4+ will immediately benefit from improved clarity, better layout, and richer analytics without re-tuning parameters
Sürüm Notları
Volume Based Analysis — v1.6+ Release NotesUpgrade from v1.5+
Overview
Version 1.6+ builds on the unified dashboard and triangle analytics by adding Apex Angle display directly in the dashboard, refining visual alignment with triangle colors, and ensuring table positioning avoids overlaps.
All 12 core scenario logics remain unchanged — the update focuses on visual clarity, extra geometry insight, and usability.
What’s New
1. Apex Angle in Dashboard (New)
The triangle rows HiLo ▽△▽ and LoHi △▽△ in the Unified Dashboard now display the apex angle (middle vertex) for t-0, calculated using the existing tri_f_len_dx and Law of Cosines.
Angle is shown in degrees with 1 decimal precision by default (e.g., HiLo ▽△▽ (52.3°)), configurable in the code if needed.
Uses the same ATR-normalized geometry already employed for triangle typing, ensuring consistent measurement.
2. Visual Palette Alignment
Triangle row background colors updated for better match with triangle chart elements:
Dark Theme: #ff527d (HiLo) and aqua (LoHi) at 85 alpha
Light Theme: #ff8aa6 (HiLo) and #73d7dd (LoHi) at 30 alpha
3. Dashboard Layout Stability
Table positioning, padding, and color themes remain compatible with symbol/price panels and prevent overlap with TradingView’s UI.
Minor Enhancements
Added small utility (tri_fmt_deg) to format angles for table display.
Code cleaned so Apex Angle calculation uses the existing side-length function (tri_f_len_dx) — no duplicate functions or naming conflicts.
Removed / Replaced
No removals in 1.6+; this update is additive over 1.5+ features.
Upgrade Notes
Signals and alerts are unaffected — only dashboard visuals and triangle information are enhanced.
Apex Angle display is active by default in v1.6+. If you wish to hide it, simply revert the column-0 label text to the previous fixed names ("HiLo ▽△▽", "LoHi △▽△").
Sürüm Notları
Volume Based Analysis — v1.7+ Release NotesUpgrade from v1.6+
Overview
v1.7+ makes a minor but deliberate adjustment to triangle row labels in the Unified Dashboard to better reflect the actual swing pattern structure.
No calculation or signal logic is affected — purely a label naming alignment for clarity.
What’s New
Triangle Row Labels Updated
Before:
HiLo ▽△▽ → apex angle
LoHi △▽△ → apex angle
Now:
LoHiLo △▽△ → apex angle
HiLoHi ▽△▽ → apex angle
This naming aligns with the three-point swing pattern (start → middle → end) for each triangle type.
Upgrade Notes
No changes to geometry calculations, apex angle measurement, or scenario logic.
All visual, color, and metric enhancements from v1.6+ remain intact.
Existing users will see the new names in the dashboard without needing to adjust settings.
Açık kaynak kodlu komut dosyası
Gerçek TradingView ruhuna uygun olarak, bu komut dosyasının oluşturucusu bunu açık kaynaklı hale getirmiştir, böylece yatırımcılar betiğin işlevselliğini inceleyip doğrulayabilir. Yazara saygı! Ücretsiz olarak kullanabilirsiniz, ancak kodu yeniden yayınlamanın Site Kurallarımıza tabi olduğunu unutmayın.
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.
Açık kaynak kodlu komut dosyası
Gerçek TradingView ruhuna uygun olarak, bu komut dosyasının oluşturucusu bunu açık kaynaklı hale getirmiştir, böylece yatırımcılar betiğin işlevselliğini inceleyip doğrulayabilir. Yazara saygı! Ücretsiz olarak kullanabilirsiniz, ancak kodu yeniden yayınlamanın Site Kurallarımıza tabi olduğunu unutmayın.
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.