OPEN-SOURCE SCRIPT

PumpC PAC & MAs

67
PumpC – PAC & MAs (Open Source)

A complete Price Action Candles (PAC) toolkit combining classical price action patterns (Fair Value Gaps, Inside Bars, Hammers, Inverted Hammers, and Volume Imbalances) with a flexible Moving Averages (MAs) module and an advanced bar-coloring system.

This script highlights supply/demand inefficiencies and micro-patterns with forward-extending boxes, recolors zones when mitigated, qualifies patterns with a global High-Volume filter, and ships with ready-to-use alerts. It works across intraday through swing trading on any market (e.g., QQQ, $CME:ES1!, EURUSD, BTCUSD).

This is an open-source script. The description is detailed so users understand what the script does, how it works, and how to use it. It makes no performance claims and does not provide trade advice.

Acknowledgment & Credits
This script originates from the structural and box-handling logic found in the Super OrderBlock / FVG / BoS Tools by makuchaku & eFe. Their pioneering framework provided the base methods for managing arrays of boxes, extending zones forward, and recoloring once mitigated.

Building on that foundation, I have substantially expanded and adapted the code to create a unified Price Action Candles toolkit. This includes Al Brooks–inspired PAC logic, additional patterns like Inside Bars, Hammers, Inverted Hammers, and the new Volume Imbalance module, along with strong-bar coloring, close-threshold detection, a flexible global High-Volume filter, and a multi-timeframe Moving Averages system.

What it does
  • Fair Value Gaps (FVG): Detects 3-bar displacement gaps, plots forward-extending boxes, and optionally recolors them once mitigated.
  • Inside Bars (IB): Highlights bars fully contained within the prior candle’s range, with optional high-volume filter.
  • Hammers (H) & Inverted Hammers (IH): Identifies rejection candles using configurable body/upper/lower wick thresholds. High-volume qualification optional.
  • Volume Imbalances (VI): Detects inter-body gaps where one candle’s body does not overlap the prior candle’s body. Boxes extend forward until wick-based mitigation occurs (only after the two-bar formation completes). Alerts available for creation and mitigation.
  • Mitigation Recolor: Each pattern can flip to a mitigated color once price trades back through its vertical zone.
  • Moving Averages (MAs): Four configurable EMAs/SMAs, with per-MA timeframe, length, color, and clutter-free plotting rules.
  • Strong Bar Coloring: Highlights bullish/bearish engulfing reversals with different colors for high-volume vs low-volume cases.
  • Close Threshold Bars: Marks candles that close in the top or bottom portion of their range, even if the body is small. Helps spot continuation pressure before a full trend bar forms.
  • Alerts: Notifications available for FVG+, FVG−, IB, H, IH, VI creation, and VI mitigation.


Connection to Al Brooks’ PAC teachings
This script reflects Al Brooks’ Price Action Candle methodology. PAC patterns like Inside Bars, Hammers, and Inverted Hammers are not trade signals on their own—they gain meaning in context of trend, failed breakouts, and effort vs. result.
By layering in volume imbalances, strong-bar reversals, and volume filters, this script focuses attention on the PACs that show true participation and conviction, aligning with Brooks’ emphasis on reading crowd psychology through price action.
Why the High-Volume filter matters
Volume is a key proxy for conviction. A PAC or VI formed on light volume can be misleading noise; one formed on above-average volume carries more weight.
  • Elevates Inside Bars that show absorption/compression with heavy activity.
  • Distinguishes Hammers that reject price aggressively vs. weak drifts.
  • Filters Inverted Hammers to emphasize true supply pressure.
  • Highlights VI zones where institutional order flow left inefficiencies.
  • Differentiates strong engulfing reversals from weaker, low-participation moves.


Inputs & Customization
Inputs are grouped logically for fast configuration:
  • High-Volume Filter: Global lookback & multiple, per-pattern toggles.
  • FVG: Visibility, mitigated recolor, box style/transparency, label controls.
  • IB: Visibility, require high volume, mitigated recolor, colors, label settings.
  • Hammer / IH: Visibility, require high volume, mitigated recolor, wick/body thresholds.
  • VI: Visibility, require high volume, mitigated recolor, box style, labels, mitigation alerts.
  • Strong Bars: Enable/disable, separate colors for high-volume and low-volume outcomes.
  • Close Threshold Bars: Customizable close thresholds, labels, optional count markers.
  • MAs: EMA/SMA type, per-MA toggle, length, timeframe, color.

Alerts
  • New Bullish FVG (+)
  • New Bearish FVG (−)
  • New Inside Bar (IB)
  • New Hammer (H)
  • New Inverted Hammer (IH)
  • New Volume Imbalance (VI)
  • VI Mitigated
  • Strong Bullish Engulfing / Bearish Engulfing (high- and low-volume variants)


Suggested workflow
  • Choose your market & timeframe (script works across equities, futures, FX, crypto).
  • Toggle only the PACs you actually trade. Assign distinct colors for clarity.
  • Use MAs for directional bias and higher timeframe structure.
  • Enable High-Volume filters when you want to emphasize conviction.
  • Watch mitigation recolors to see which levels/zones have been interacted with.
  • Use alerts selectively for setups aligned with your plan.


Originality
  • Builds upon Super OrderBlock / FVG / BoS Tools (makuchaku & eFe) for FVG/box framework.
  • Expanded into a unified PAC toolkit including IB, H, IH, and VI patterns.
  • Brooks-inspired design: Patterns contextualized with volume and trend, not isolated.
  • Flexible high-volume gating with per-pattern toggles.
  • New VI integration with wick-based mitigation.
  • Strong Bar Coloring differentiates conviction vs weak reversals.
  • MTF-aware MAs prevent clutter while providing structure.
  • Open-source: Transparent for learning, editing, and extension.


Disclaimer
For educational and informational purposes only. This script is not financial advice. Trading carries risk—always test thoroughly before live use.

Declinazione di responsabilità

Le informazioni ed i contenuti pubblicati non costituiscono in alcun modo una sollecitazione ad investire o ad operare nei mercati finanziari. Non sono inoltre fornite o supportate da TradingView. Maggiori dettagli nelle Condizioni d'uso.