CapitalFlowsResearch: PEMA

CapitalFlowsResearch: PEMA is a visual regime indicator that measures how far price is trading from its dynamic equilibrium and translates that behaviour into a clean, colour-coded background. Instead of simply showing whether price is above or below a moving average MA, the tool evaluates how unusual that distance is relative to recent behaviour, creating a normalized “extension score” that adapts across assets and timeframes.
The indicator then highlights periods where price enters meaningful positive or negative extension zones, using customizable thresholds and optional smoothing to control signal sensitivity. The result is a subtle but powerful overlay that helps reveal when markets are operating in balanced conditions, when they’re stretched, and when early signs of exhaustion or continuation may be emerging—without cluttering the chart or exposing the underlying mechanics.
Invite-only script
Only users approved by the author can access this script. You'll need to request and get permission to use it. This is typically granted after payment. For more details, follow the author's instructions below or contact Capital_Flows_Dev directly.
TradingView does NOT recommend paying for or using a script unless you fully trust its author and understand how it works. You may also find free, open-source alternatives in our community scripts.
Author's instructions
Disclaimer
Invite-only script
Only users approved by the author can access this script. You'll need to request and get permission to use it. This is typically granted after payment. For more details, follow the author's instructions below or contact Capital_Flows_Dev directly.
TradingView does NOT recommend paying for or using a script unless you fully trust its author and understand how it works. You may also find free, open-source alternatives in our community scripts.