OPEN-SOURCE SCRIPT
Ultra Pulse KAMA

## Overview
TX Ultra Pulse KAMA is a trend-following system built upon the Kaufman Adaptive Moving Average (KAMA) architecture. Unlike standard Moving Averages that lag significantly during trend reversals, this system uses an Efficiency Ratio (ER) to automatically adjust its sensitivity based on market noise.
## How It Works (The Logic)
This script does not just plot a KAMA line; it builds a volatility-gated signal system around it:
1. The Adaptive Core (KAMA)
The engine calculates the "Efficiency Ratio" (ER) of price action.
High ER (Clean Trend): The Moving Average speeds up to capture the move.
Low ER (Choppy/Sideways): The Moving Average stops moving (flattens out) to prevent false signals.
2. Volatility Gating (The Trigger)
Instead of simple crossovers, this script analyzes the Rate of Change (Delta) of the KAMA line itself.
It calculates the Standard Deviation (stdev) of the KAMA's movement over a lookback period.
Signal Generation: A signal is only triggered if the KAMA's momentum exceeds a specific volatility threshold (Deviation). This filters out weak breakouts that lack genuine conviction.
3. Trend Filter (The Cloud)
A secondary filter layer uses two Exponential Moving Averages (Fast & Slow) to determine the macro regime.
Uptrend: Price > Slow EMA & Fast EMA > Slow EMA.
Downtrend: Price < Slow EMA & Fast EMA < Slow EMA.
If the "Trend Filter" option is ON, Counter-trend signals are strictly suppressed.
## Settings & Modes
To make the math accessible, the script includes 3 preset modes that adjust the sensitivity of the Volatility Gate:
Aggressive (Scalp): Tighter deviation settings. Reacts faster but captures more noise. Best for 1m-5m charts.
Normal (Balanced): The standard deviation setting optimized for 15m-1H charts.
Swing (Safe): Requires a significant volatility expansion to trigger. Best for 4H-Daily charts.
## Features
Non-Repainting Heikin Ashi: An option to calculate KAMA based on Heikin Ashi source data without repainting issues (using barmerge.lookahead_off).
Visual Confirmation: Signals can be set to appear only after the bar closes to ensure validity.
Regime Coloring: Candles are colored Aqua (Bullish Trend) or Yellow (Bearish Trend) to visualize the filter state.
## Disclaimer
This tool is for educational and analytical purposes only. Technical indicators are lagging by nature and should be used as part of a comprehensive risk management strategy. Past performance does not guarantee future results.
TX Ultra Pulse KAMA is a trend-following system built upon the Kaufman Adaptive Moving Average (KAMA) architecture. Unlike standard Moving Averages that lag significantly during trend reversals, this system uses an Efficiency Ratio (ER) to automatically adjust its sensitivity based on market noise.
## How It Works (The Logic)
This script does not just plot a KAMA line; it builds a volatility-gated signal system around it:
1. The Adaptive Core (KAMA)
The engine calculates the "Efficiency Ratio" (ER) of price action.
High ER (Clean Trend): The Moving Average speeds up to capture the move.
Low ER (Choppy/Sideways): The Moving Average stops moving (flattens out) to prevent false signals.
2. Volatility Gating (The Trigger)
Instead of simple crossovers, this script analyzes the Rate of Change (Delta) of the KAMA line itself.
It calculates the Standard Deviation (stdev) of the KAMA's movement over a lookback period.
Signal Generation: A signal is only triggered if the KAMA's momentum exceeds a specific volatility threshold (Deviation). This filters out weak breakouts that lack genuine conviction.
3. Trend Filter (The Cloud)
A secondary filter layer uses two Exponential Moving Averages (Fast & Slow) to determine the macro regime.
Uptrend: Price > Slow EMA & Fast EMA > Slow EMA.
Downtrend: Price < Slow EMA & Fast EMA < Slow EMA.
If the "Trend Filter" option is ON, Counter-trend signals are strictly suppressed.
## Settings & Modes
To make the math accessible, the script includes 3 preset modes that adjust the sensitivity of the Volatility Gate:
Aggressive (Scalp): Tighter deviation settings. Reacts faster but captures more noise. Best for 1m-5m charts.
Normal (Balanced): The standard deviation setting optimized for 15m-1H charts.
Swing (Safe): Requires a significant volatility expansion to trigger. Best for 4H-Daily charts.
## Features
Non-Repainting Heikin Ashi: An option to calculate KAMA based on Heikin Ashi source data without repainting issues (using barmerge.lookahead_off).
Visual Confirmation: Signals can be set to appear only after the bar closes to ensure validity.
Regime Coloring: Candles are colored Aqua (Bullish Trend) or Yellow (Bearish Trend) to visualize the filter state.
## Disclaimer
This tool is for educational and analytical purposes only. Technical indicators are lagging by nature and should be used as part of a comprehensive risk management strategy. Past performance does not guarantee future results.
오픈 소스 스크립트
트레이딩뷰의 진정한 정신에 따라, 이 스크립트의 작성자는 이를 오픈소스로 공개하여 트레이더들이 기능을 검토하고 검증할 수 있도록 했습니다. 작성자에게 찬사를 보냅니다! 이 코드는 무료로 사용할 수 있지만, 코드를 재게시하는 경우 하우스 룰이 적용된다는 점을 기억하세요.
면책사항
해당 정보와 게시물은 금융, 투자, 트레이딩 또는 기타 유형의 조언이나 권장 사항으로 간주되지 않으며, 트레이딩뷰에서 제공하거나 보증하는 것이 아닙니다. 자세한 내용은 이용 약관을 참조하세요.
오픈 소스 스크립트
트레이딩뷰의 진정한 정신에 따라, 이 스크립트의 작성자는 이를 오픈소스로 공개하여 트레이더들이 기능을 검토하고 검증할 수 있도록 했습니다. 작성자에게 찬사를 보냅니다! 이 코드는 무료로 사용할 수 있지만, 코드를 재게시하는 경우 하우스 룰이 적용된다는 점을 기억하세요.
면책사항
해당 정보와 게시물은 금융, 투자, 트레이딩 또는 기타 유형의 조언이나 권장 사항으로 간주되지 않으며, 트레이딩뷰에서 제공하거나 보증하는 것이 아닙니다. 자세한 내용은 이용 약관을 참조하세요.