OPEN-SOURCE SCRIPT
Pullback Moving Average

This is a Moving Average adaptation of my previously published Pullback SAR indicator. It translates the core pullback and continuation methodology into a flexible moving average framework, allowing you to choose between EMA and SMA.
How it works:
Trend Definition: Determines market direction based on price position relative to the selected Moving Average (Bullish when price > MA, Bearish when price < MA).
Pullback Detection: Spots temporary retracements against the primary trend direction.
Re-entry Signals: Generates a signal when price resumes its movement in the direction of the main trend after a pullback.
Features:
MA Type Selector: Easily switch between Exponential (EMA) and Simple (SMA) Moving Averages with customizable lengths.
Clear visual signals (Green triangles for Long, Red triangles for Short).
Built-in alerts for automated workflows.
Lightweight and optimized for Pine Script v6.
How it works:
Trend Definition: Determines market direction based on price position relative to the selected Moving Average (Bullish when price > MA, Bearish when price < MA).
Pullback Detection: Spots temporary retracements against the primary trend direction.
Re-entry Signals: Generates a signal when price resumes its movement in the direction of the main trend after a pullback.
Features:
MA Type Selector: Easily switch between Exponential (EMA) and Simple (SMA) Moving Averages with customizable lengths.
Clear visual signals (Green triangles for Long, Red triangles for Short).
Built-in alerts for automated workflows.
Lightweight and optimized for Pine Script v6.
Open-source script
In true PulseWire spirit, the creator of this script has made it open-source, so that traders can review and verify its functionality. Kudos to the author! While you can use it for free, remember that republishing the code is subject to our House Rules.
Disclaimer
The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by PulseWire. Read more in the Terms of Use.
Open-source script
In true PulseWire spirit, the creator of this script has made it open-source, so that traders can review and verify its functionality. Kudos to the author! While you can use it for free, remember that republishing the code is subject to our House Rules.
Disclaimer
The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by PulseWire. Read more in the Terms of Use.
