OPEN-SOURCE SCRIPT

Dobrusky Pressure Core

134
What it does & who it’s for
Dobrusky Pressure Core is a volume by time replacement for traders who care about which side actually controls each bar. Instead of just plotting total volume, it splits each bar into estimated buy vs sell pressure and overlays a custom, session-aware volume baseline. It’s built for discretionary traders who want more nuanced volume context for entries, breakouts, and pullbacks.

Core ideas
  • Buy/sell pressure split: Each bar’s volume is broken into estimated buying and selling pressure.
  • Dominant side highlighting: The dominant side (buy or sell) is always displayed starting from the bottom of the bar, so you can quickly see who “owned” that bar.
  • Median-based baseline: Uses the median of the last N bars (50 by default) to build a robust volume baseline that’s less sensitive to one-off spikes.
  • Session-aware behavior: Baseline is calculated from Regular Trading Hours (RTH) by default, with an option to include Extended Hours (ETH) and a control to force Regular data on higher timeframes.
  • Volume regimes: Three multipliers (1x, 1.5x, 2x by default) show normal, high, and extreme volume regions.
  • Flexible display: Baseline can be shown as lines or as columns behind the volume, with full color customization.


How the pressure logic works
For each bar, the script:
  • Adjusts the range for gaps relative to the prior close so the “true” traded range is more consistent.
  • Computes buy pressure as a proportion of the adjusted range from low to close.
  • Defines sell pressure as: total volume minus buy pressure.
  • Marks the bar as buy-dominant if buy pressure ≥ sell pressure, otherwise sell-dominant, and colors the dominant side from the bottom to at least the midpoint using the selected buy/sell colors.


In practice, this turns basic volume columns into bars where the internal split and dominant side are clearly visible, helping you judge whether aggressive buyers or sellers truly controlled the bar instead of just looking at the price action.

Volume baseline & session logic
The script builds a session-aware baseline from recent volume:
  • Baseline length: A rolling window (default 50 bars) is used to compute a median volume value instead of a simple moving average.
  • RTH-only by default: By default, the baseline is built from Regular Trading Hours bars only. During extended hours, the baseline effectively “freezes” at the last RTH-derived value unless you choose to include extended session data.
  • Extended mode: If you select Extended mode, the script builds separate rolling baselines for RTH and ETH trading, using the appropriate one depending on the current session.
  • Force Regular Above Timeframe: On timeframes equal to or higher than your chosen threshold, the baseline automatically uses Regular session data, even if Extended is selected.
  • Multipliers: Three adjustable multipliers (1x, 1.5x, 2x by default) create normal, high, and extreme volume bands for quick identification.


This lets you choose whether you want a pure RTH reference or a baseline that adapts to extended-session activity.

Example ways to use it
1. Replace standard volume bars
  • Add Dobrusky Pressure Core to your volume pane and hide the default volume if you prefer a clean look.
  • Use the colors and split to see at a glance whether buyers or sellers were dominant on each bar.


2. Pressure confirmation for entries
For longs (example concept; adapt to your own rules):
  • Require that the entry bar’s buy pressure is greater than the previous bar’s sell pressure, or
  • If the entry and prior bar are both buy-dominant, require that the entry bar has more buy pressure than the prior bar.


This helps avoid taking a long when buying pressure is clearly fading relative to what sellers recently showed. A mirrored idea can be used for short setups with sell pressure.

3. Context from baseline multipliers
  • Use ~1x baseline as “normal” volume.
  • Watch for bars at or above 1.5x baseline when you want to see increased participation.
  • Treat 2x baseline and above as “extreme” volume zones that may mark climactic or especially important bars.


In practice, the baseline and multipliers are best used as context and filters, not as rigid rules.

Settings overview
  • Display
  • - Show Volume Baseline: toggle the baseline and its levels on or off.
  • - Baseline Display: choose between Line or Bars for the baseline visualization.

  • Baseline Calculation
  • - Length: lookback for the median baseline (default 50, configurable).
  • - Baseline Session Data: choose Regular or Extended to control which session data feeds the baseline.

  • Session Controls
  • - Regular Session (Local to TZ): define your RTH window (e.g., 0930-1600).
  • - Session Time Zone: choose the time zone used for that window.
  • - Force Regular Above Timeframe: on higher timeframes, force the baseline to use Regular session data only.

  • Baseline Levels
  • - Show Level x Multiplier 1/2/3: toggle each volume regime level.
  • - Multiplier 1/2/3: define what you consider normal, high, and extreme volume (defaults: 1.0, 1.5, 2.0).

  • Colors
  • - Buy Volume / Sell Volume: choose colors for buy and sell pressure.
  • - Baseline Bars (Base / x2 / x3): colors when the baseline is drawn as columns.
  • - Baseline Line (Base / x2 / x3): colors when the baseline is drawn as lines.


Limitations & best practices
  • This is a decision-support and visualization tool, not a buy/sell signal generator.
  • Best suited to markets where volume data is meaningful (e.g., index futures, liquid equities, liquid crypto).
  • The usefulness of any volume-based metric depends on the underlying data feed and instrument structure.
  • Always combine pressure and baseline context with your own strategy, risk management, and testing.


Originality
Most volume tools either show total volume only or compare it to a simple moving average. Dobrusky Pressure Core combines:
  • An intrabar buy/sell pressure split based on a gap-adjusted price range.
  • A median-based, configurable baseline built from session-specific data.
  • Session-aware behavior that keeps the baseline focused on Regular hours by default, with the option to incorporate Extended hours and force Regular data on higher timeframes.


The goal is to give traders a richer, session-aware view of participation and pressure that standard volume bars and simple SMA overlays don’t provide, while keeping everything transparent and open-source so users can review and adapt the logic.

면책사항

해당 정보와 게시물은 금융, 투자, 트레이딩 또는 기타 유형의 조언이나 권장 사항으로 간주되지 않으며, 트레이딩뷰에서 제공하거나 보증하는 것이 아닙니다. 자세한 내용은 이용 약관을 참조하세요.