OPEN-SOURCE SCRIPT
Outlier Catching Moving Average

Outlier Catching Moving Average (OCMA) | MisinkoMaster
Outlier Catching Moving Average (OCMA) is a volatility-adaptive trend indicator designed to react quickly to abnormal price movements while maintaining smooth behavior during normal market conditions. The indicator aims to capture sudden price expansions without sacrificing overall trend clarity.
This makes OCMA suitable for traders who want faster adaptation to unusual market activity while still preserving stable trend structure across varying volatility regimes.
Key Features
Volatility-adaptive moving average designed to react to price outliers
Multiple moving average bases supported for flexible smoothing behavior
Optional ATR-based adaptive bands for volatility envelopes
Configurable trend logic for earlier signals or stronger confirmations
Dynamic candle coloring for intuitive trend visualization
Automatic Long and Short markers on confirmed trend transitions
Designed to balance responsiveness and smoothness across market conditions
How It Works
OCMA builds on traditional moving average concepts but incorporates adaptive smoothing that adjusts according to changing market volatility.
Rather than behaving uniformly across all conditions, the average becomes more responsive when price behavior deviates strongly from recent structure and smoother when markets return to normal activity.
Optional ATR bands expand and contract with volatility, helping identify when price moves significantly away from its adaptive equilibrium.
The result is a moving average that remains stable in calm markets yet quickly adapts when price action becomes irregular or impulsive.
Inputs Overview
Source — Selects the price data used in calculations
Moving Average Length — Controls the main smoothing period
ATR Length — Sets the volatility measurement period used for band calculations
Base Moving Average — Selects which moving average type is used as the foundation
Trend Logic — Chooses whether trends are detected via band crossover, average direction change, or both
Use ATR Bands — Enables or disables adaptive volatility bands
Factor — Controls ATR band width sensitivity
ALMA Offset & Sigma — Parameters used only when ALMA smoothing is selected
Usage Notes
Designed to detect abnormal price expansions while preserving overall trend structure
Suitable for breakout traders and volatility-aware trend strategies
Band crossovers can signal potential trend transitions
Average direction changes may confirm continuation or reversal
Works well when combined with market structure or confirmation tools
Adjust parameters according to asset volatility and timeframe
Summary
Outlier Catching Moving Average provides a volatility-aware alternative to standard moving averages, helping traders capture unusual price behavior while maintaining smooth and readable trend signals. It is well suited for traders seeking adaptive trend tools capable of responding when markets move outside normal conditions.
Outlier Catching Moving Average (OCMA) is a volatility-adaptive trend indicator designed to react quickly to abnormal price movements while maintaining smooth behavior during normal market conditions. The indicator aims to capture sudden price expansions without sacrificing overall trend clarity.
This makes OCMA suitable for traders who want faster adaptation to unusual market activity while still preserving stable trend structure across varying volatility regimes.
Key Features
Volatility-adaptive moving average designed to react to price outliers
Multiple moving average bases supported for flexible smoothing behavior
Optional ATR-based adaptive bands for volatility envelopes
Configurable trend logic for earlier signals or stronger confirmations
Dynamic candle coloring for intuitive trend visualization
Automatic Long and Short markers on confirmed trend transitions
Designed to balance responsiveness and smoothness across market conditions
How It Works
OCMA builds on traditional moving average concepts but incorporates adaptive smoothing that adjusts according to changing market volatility.
Rather than behaving uniformly across all conditions, the average becomes more responsive when price behavior deviates strongly from recent structure and smoother when markets return to normal activity.
Optional ATR bands expand and contract with volatility, helping identify when price moves significantly away from its adaptive equilibrium.
The result is a moving average that remains stable in calm markets yet quickly adapts when price action becomes irregular or impulsive.
Inputs Overview
Source — Selects the price data used in calculations
Moving Average Length — Controls the main smoothing period
ATR Length — Sets the volatility measurement period used for band calculations
Base Moving Average — Selects which moving average type is used as the foundation
Trend Logic — Chooses whether trends are detected via band crossover, average direction change, or both
Use ATR Bands — Enables or disables adaptive volatility bands
Factor — Controls ATR band width sensitivity
ALMA Offset & Sigma — Parameters used only when ALMA smoothing is selected
Usage Notes
Designed to detect abnormal price expansions while preserving overall trend structure
Suitable for breakout traders and volatility-aware trend strategies
Band crossovers can signal potential trend transitions
Average direction changes may confirm continuation or reversal
Works well when combined with market structure or confirmation tools
Adjust parameters according to asset volatility and timeframe
Summary
Outlier Catching Moving Average provides a volatility-aware alternative to standard moving averages, helping traders capture unusual price behavior while maintaining smooth and readable trend signals. It is well suited for traders seeking adaptive trend tools capable of responding when markets move outside normal conditions.
סקריפט קוד פתוח
ברוח האמיתית של TradingView, יוצר הסקריפט הזה הפך אותו לקוד פתוח, כך שסוחרים יוכלו לעיין בו ולאמת את פעולתו. כל הכבוד למחבר! אמנם ניתן להשתמש בו בחינם, אך זכור כי פרסום חוזר של הקוד כפוף ל־כללי הבית שלנו.
"Better to take a step back, than to stand stuck forever."
כתב ויתור
המידע והפרסומים אינם מיועדים להיות, ואינם מהווים, ייעוץ או המלצה פיננסית, השקעתית, מסחרית או מכל סוג אחר המסופקת או מאושרת על ידי TradingView. קרא עוד ב־תנאי השימוש.
סקריפט קוד פתוח
ברוח האמיתית של TradingView, יוצר הסקריפט הזה הפך אותו לקוד פתוח, כך שסוחרים יוכלו לעיין בו ולאמת את פעולתו. כל הכבוד למחבר! אמנם ניתן להשתמש בו בחינם, אך זכור כי פרסום חוזר של הקוד כפוף ל־כללי הבית שלנו.
"Better to take a step back, than to stand stuck forever."
כתב ויתור
המידע והפרסומים אינם מיועדים להיות, ואינם מהווים, ייעוץ או המלצה פיננסית, השקעתית, מסחרית או מכל סוג אחר המסופקת או מאושרת על ידי TradingView. קרא עוד ב־תנאי השימוש.