OPEN-SOURCE SCRIPT
Ferrum Pressure Gauge [JOAT]

Ferrum Pressure Gauge [JOAT]
Introduction
The Ferrum Pressure Gauge is an open-source composite momentum-volume oscillator that fuses three independent pressure measurements — volume-weighted momentum, price velocity with acceleration, and RSI-derived trend pressure — into a single index displayed in a separate pane. The index is paired with a signal (resonance) line, and the space between them is filled with an 8-layer gradient that visually communicates momentum intensity at a glance. Dynamic non-repainting zones adapt to recent range, divergence detection identifies price-vs-index fractures, and a precursor engine spots early reversal conditions before the main index confirms them.
Most momentum oscillators measure a single dimension — either price momentum or volume momentum, but rarely both in a unified way. FPG addresses this by weighting price changes by volume activity through a logarithmic volume impact function, then combining that with velocity, acceleration, and RSI into a composite reading. The result is an oscillator that responds to both the speed and the conviction behind price moves.

Core Engine: Fusion Reactor
The composite index is built from three sub-components:
1. Volume-Weighted Momentum (Net Flow)
Price changes are scaled by a logarithmic volume impact function that amplifies moves occurring on above-average volume while dampening moves on thin volume:
Pine Script®
The logarithmic scaling prevents extreme volume spikes from producing absurdly large momentum readings while still giving meaningful weight to elevated volume. Fast and slow EMAs of this volume-weighted momentum produce a dual-speed flow, and their difference (smoothed) becomes the Net Flow component.
2. Price Velocity and Acceleration
Velocity measures the average price change per bar over the fast period. Acceleration is the change in velocity — it detects whether momentum is building or fading. These are combined with the volume ratio and scaled to produce the Flow Strength component.
3. RSI Trend Pressure
RSI is centered around zero (RSI - 50) and smoothed, providing a bounded measure of trend pressure that complements the unbounded volume-weighted components.
The three components are averaged and passed through a final WMA smoothing pass to produce the Pressure Index. A separate EMA of the index produces the Resonance (signal) line.
8-Layer Gradient Fill
The space between the Pressure Index and the Resonance Line is divided into 8 equal segments, each filled with progressively increasing transparency. This creates a smooth gradient that is dense and vivid when momentum is strong (large gap between index and signal) and thin and faded when momentum is weak. The gradient direction and color shift based on whether the index is positive or negative and whether it is in the upper or lower crucible zone.
Dynamic Crucible Boundaries (Non-Repainting Zones)
Rather than using fixed overbought/oversold levels, FPG calculates dynamic zones based on the recent range of the index:
Pine Script®
The [1] offset on highest/lowest ensures these zones never repaint. They widen during volatile periods and tighten during calm ones, adapting the overbought/oversold thresholds to current market conditions rather than using arbitrary fixed levels.
Volume Climax (Surge Detection)
The indicator percentile-ranks current volume against a configurable lookback (default 100 bars). When volume exceeds the 90th percentile, a surge is detected. The edge-triggered SURGE label fires only on the first bar of the spike, marking potential climax events where institutional-scale volume enters the market.
Exhaustion Index (Fatigue Meter)
When the Pressure Index dwells in an extreme zone (above upper or below lower boundary), a fatigue counter increments each bar. The fatigue percentage rises linearly toward 100% over a configurable horizon (default 20 bars). Fatigue is classified as NONE, MILD, BUILDING, or CRITICAL. Critical fatigue warns that momentum has been stretched for an extended period and reversal probability is elevated.
Fracture Detection (Divergence)
The indicator detects classic divergences between price and the Pressure Index:
Fracture signals are confirmed-bar only and placed outside the crucible boundaries to avoid overlapping with the main index plot.
Precursor Engine (Early Reversal Detection)
The precursor engine identifies conditions where the fast and slow flow lines cross while the main index is on the opposite side of zero:
These signals often lead the main index crossover by several bars, providing an early warning system.

Command Panel (Dashboard)
A 9-row monospace dashboard displays:
Input Parameters
Fusion Reactor:
Resonance Layer:
Volume Climax:
Exhaustion Index:
Fracture Detection:
Precursor Engine:
How to Use This Indicator
Limitations
Originality Statement
This indicator is original in its composite fusion approach. While MACD, RSI, and volume analysis are established concepts individually, FPG is justified because:
Disclaimer
This indicator is provided for educational and informational purposes only. It is not financial advice. Momentum oscillators describe the current state of price momentum but do not predict future price direction. Overbought conditions can persist in strong trends, and oversold conditions can deepen in bear markets. Always use proper risk management and conduct your own analysis before making trading decisions. The author is not responsible for any losses incurred from using this tool.
-Made with passion by officialjackofalltrades
Introduction
The Ferrum Pressure Gauge is an open-source composite momentum-volume oscillator that fuses three independent pressure measurements — volume-weighted momentum, price velocity with acceleration, and RSI-derived trend pressure — into a single index displayed in a separate pane. The index is paired with a signal (resonance) line, and the space between them is filled with an 8-layer gradient that visually communicates momentum intensity at a glance. Dynamic non-repainting zones adapt to recent range, divergence detection identifies price-vs-index fractures, and a precursor engine spots early reversal conditions before the main index confirms them.
Most momentum oscillators measure a single dimension — either price momentum or volume momentum, but rarely both in a unified way. FPG addresses this by weighting price changes by volume activity through a logarithmic volume impact function, then combining that with velocity, acceleration, and RSI into a composite reading. The result is an oscillator that responds to both the speed and the conviction behind price moves.
Core Engine: Fusion Reactor
The composite index is built from three sub-components:
1. Volume-Weighted Momentum (Net Flow)
Price changes are scaled by a logarithmic volume impact function that amplifies moves occurring on above-average volume while dampening moves on thin volume:
float vRatio = ta.sma(volume, 3) / ta.sma(volume, volPeriod)
float vwMom = pChange * math.log(1 + vRatio * volSens)
The logarithmic scaling prevents extreme volume spikes from producing absurdly large momentum readings while still giving meaningful weight to elevated volume. Fast and slow EMAs of this volume-weighted momentum produce a dual-speed flow, and their difference (smoothed) becomes the Net Flow component.
2. Price Velocity and Acceleration
Velocity measures the average price change per bar over the fast period. Acceleration is the change in velocity — it detects whether momentum is building or fading. These are combined with the volume ratio and scaled to produce the Flow Strength component.
3. RSI Trend Pressure
RSI is centered around zero (RSI - 50) and smoothed, providing a bounded measure of trend pressure that complements the unbounded volume-weighted components.
The three components are averaged and passed through a final WMA smoothing pass to produce the Pressure Index. A separate EMA of the index produces the Resonance (signal) line.
8-Layer Gradient Fill
The space between the Pressure Index and the Resonance Line is divided into 8 equal segments, each filled with progressively increasing transparency. This creates a smooth gradient that is dense and vivid when momentum is strong (large gap between index and signal) and thin and faded when momentum is weak. The gradient direction and color shift based on whether the index is positive or negative and whether it is in the upper or lower crucible zone.
Dynamic Crucible Boundaries (Non-Repainting Zones)
Rather than using fixed overbought/oversold levels, FPG calculates dynamic zones based on the recent range of the index:
float rHi = ta.highest(idx, zoneLen)[1]
float rLo = ta.lowest(idx, zoneLen)[1]
float volF = (rHi - rLo) / 2
float upperZ = math.min(60, 30 + volF * 0.3)
float lowerZ = math.max(-60, -30 - volF * 0.3)
The [1] offset on highest/lowest ensures these zones never repaint. They widen during volatile periods and tighten during calm ones, adapting the overbought/oversold thresholds to current market conditions rather than using arbitrary fixed levels.
Volume Climax (Surge Detection)
The indicator percentile-ranks current volume against a configurable lookback (default 100 bars). When volume exceeds the 90th percentile, a surge is detected. The edge-triggered SURGE label fires only on the first bar of the spike, marking potential climax events where institutional-scale volume enters the market.
Exhaustion Index (Fatigue Meter)
When the Pressure Index dwells in an extreme zone (above upper or below lower boundary), a fatigue counter increments each bar. The fatigue percentage rises linearly toward 100% over a configurable horizon (default 20 bars). Fatigue is classified as NONE, MILD, BUILDING, or CRITICAL. Critical fatigue warns that momentum has been stretched for an extended period and reversal probability is elevated.
Fracture Detection (Divergence)
The indicator detects classic divergences between price and the Pressure Index:
- Bullish Fracture: Price is falling (making lower lows) while the Pressure Index is rising — hidden buying pressure beneath falling prices.
- Bearish Fracture: Price is rising (making higher highs) while the Pressure Index is falling — hidden selling pressure beneath rising prices.
Fracture signals are confirmed-bar only and placed outside the crucible boundaries to avoid overlapping with the main index plot.
Precursor Engine (Early Reversal Detection)
The precursor engine identifies conditions where the fast and slow flow lines cross while the main index is on the opposite side of zero:
- IGNITION (Bullish Precursor): Fast flow crosses above slow flow while the Pressure Index is still negative — early bullish momentum building before the index turns positive.
- QUENCH (Bearish Precursor): Fast flow crosses below slow flow while the Pressure Index is still positive — early bearish momentum building before the index turns negative.
These signals often lead the main index crossover by several bars, providing an early warning system.
Command Panel (Dashboard)
A 9-row monospace dashboard displays:
- PRESSURE: Current Pressure Index value with color reflecting zone position
- RESONANCE: Current signal line value
- FLOW: Net flow delta (fast minus slow) — the raw momentum differential
- FLUX: Volume ratio (short/long SMA) — values above 1.2 indicate elevated activity
- CRUCIBLE: Current dynamic upper and lower zone boundaries
- SURGE: Whether volume is currently in a climax state (ACTIVE / QUIET)
- FATIGUE: Exhaustion classification with percentage (NONE / MILD / BUILDING / CRITICAL)
- DELTA: Histogram value (index minus signal) — positive = bullish momentum, negative = bearish
Input Parameters
Fusion Reactor:
- Ignition Cycle: Fast EMA period (default 8)
- Sustain Cycle: Slow EMA period (default 21)
- Flux Epoch: Volume SMA lookback (default 14)
- Flux Amplifier: Volume impact scaling (default 1.5)
- Forge Smoothing / Temper Pass: Composite and final smoothing
Resonance Layer:
- Resonance Period: Signal line EMA (default 12)
- Crucible Boundaries: Toggle dynamic zones
- Boundary Lookback: Zone calculation window (default 50)
Volume Climax:
- Enable Surge Detection / Surge Percentile / Surge Lookback
Exhaustion Index:
- Enable Fatigue Meter / Fatigue Horizon: Bars in extreme zone before max fatigue
Fracture Detection:
- Show Fractures / Fracture Lookback: Divergence detection parameters
Precursor Engine:
- Show Precursors: Toggle early reversal signals
How to Use This Indicator
- Use the Pressure Index crossing above/below the Resonance Line as a momentum confirmation signal — similar to MACD crossovers but volume-weighted.
- Watch for IGNITION/QUENCH precursor signals — they often lead the main crossover by several bars and can provide earlier entries.
- FRACTURE (divergence) signals are among the most reliable warnings of trend exhaustion. A bullish fracture during a downtrend suggests hidden accumulation.
- Monitor the Fatigue meter when the index is in an extreme zone. CRITICAL fatigue combined with a fracture signal is a high-probability reversal setup.
- SURGE markers highlight institutional-scale volume events. A surge occurring at a crucible boundary often marks a climax reversal point.
- The 8-layer gradient provides instant visual feedback — dense, vivid fills indicate strong momentum conviction; thin, faded fills indicate weakening momentum.
Limitations
- Like all momentum oscillators, FPG is lagging — it confirms momentum after it has begun, not before.
- Divergence (fracture) signals can persist for extended periods before price reverses. They indicate weakening momentum, not guaranteed reversals.
- Precursor signals are early by design and therefore have a higher false-positive rate than confirmed crossover signals.
- Volume-weighted calculations are less reliable on instruments with inconsistent or unreported volume data.
- The Fatigue meter is a heuristic based on time-in-zone, not a statistical probability. Extended trends can maintain extreme readings longer than expected.
- Dynamic zones adapt to recent range but may lag during sudden regime changes.
Originality Statement
This indicator is original in its composite fusion approach. While MACD, RSI, and volume analysis are established concepts individually, FPG is justified because:
- The logarithmic volume-weighted momentum calculation provides a unique fusion of price change and volume conviction that differs from standard MACD or OBV approaches.
- Three independent sub-components (volume-weighted flow, velocity/acceleration, RSI pressure) are composited into a single index, providing multi-dimensional momentum measurement.
- The 8-layer gradient fill between index and signal line creates a visual momentum density map not found in standard oscillators.
- Dynamic non-repainting crucible boundaries adapt overbought/oversold levels to current conditions rather than using fixed thresholds.
- The Exhaustion Index tracks time-in-extreme-zone as a fatigue metric, adding a temporal dimension to momentum analysis.
- The Precursor Engine identifies early flow crossovers while the main index is on the opposite side, providing leading signals ahead of the main crossover.
- Volume Climax detection via percentile ranking integrates institutional-scale volume event identification directly into the oscillator.
Disclaimer
This indicator is provided for educational and informational purposes only. It is not financial advice. Momentum oscillators describe the current state of price momentum but do not predict future price direction. Overbought conditions can persist in strong trends, and oversold conditions can deepen in bear markets. Always use proper risk management and conduct your own analysis before making trading decisions. The author is not responsible for any losses incurred from using this tool.
-Made with passion by officialjackofalltrades
开源脚本
秉承TradingView的精神,该脚本的作者将其开源,以便交易者可以查看和验证其功能。向作者致敬!您可以免费使用该脚本,但请记住,重新发布代码须遵守我们的网站规则。
The AI Trading Ecosystem, Built to win trades 📈
Get Full Access 👇
jackofalltrades.vip 🌐
t.me/jackofalltradesvip 🃏
Get Full Access 👇
jackofalltrades.vip 🌐
t.me/jackofalltradesvip 🃏
免责声明
这些信息和出版物并非旨在提供,也不构成TradingView提供或认可的任何形式的财务、投资、交易或其他类型的建议或推荐。请阅读使用条款了解更多信息。
开源脚本
秉承TradingView的精神,该脚本的作者将其开源,以便交易者可以查看和验证其功能。向作者致敬!您可以免费使用该脚本,但请记住,重新发布代码须遵守我们的网站规则。
The AI Trading Ecosystem, Built to win trades 📈
Get Full Access 👇
jackofalltrades.vip 🌐
t.me/jackofalltradesvip 🃏
Get Full Access 👇
jackofalltrades.vip 🌐
t.me/jackofalltradesvip 🃏
免责声明
这些信息和出版物并非旨在提供,也不构成TradingView提供或认可的任何形式的财务、投资、交易或其他类型的建议或推荐。请阅读使用条款了解更多信息。