OPEN-SOURCE SCRIPT
Pymander's EZ Trend Alignment

**Pymander’s EZ Trend Alignment** is a clean and easy-to-read trend-following indicator designed to help traders quickly identify bullish and bearish market direction.
The tool combines the Commodity Channel Index with an ATR-based trailing trend line. In simple terms, the CCI measures whether momentum favors buyers or sellers, while the ATR calculation adjusts the trend line to current market volatility.
When bullish momentum is present, the line trails beneath price and displays green. When bearish momentum takes control, the line moves above price and displays red. The trailing logic helps traders follow established trends while recognizing possible shifts in direction.
The indicator includes two coloring styles:
* **Original Coloring:** Changes color based directly on bullish or bearish CCI momentum.
* **Trend Coloring:** Changes color based on whether the trailing line is rising or falling.
Pymander’s EZ Trend Alignment may be used to confirm market direction, filter long and short setups, identify possible trend changes, follow directional moves, and avoid trading against established momentum.
Its strength is simplicity. Rather than cluttering the chart with unnecessary signals, it provides a clear visual guide to help traders determine whether price, momentum, and volatility are aligned.
As with any indicator, use it alongside proper risk management, market structure, and a tested trading plan. No indicator can guarantee profitable results.
Best of luck in the markets, traders. Stay patient, remain disciplined, and protect your capital.
— **Pymander**
The tool combines the Commodity Channel Index with an ATR-based trailing trend line. In simple terms, the CCI measures whether momentum favors buyers or sellers, while the ATR calculation adjusts the trend line to current market volatility.
When bullish momentum is present, the line trails beneath price and displays green. When bearish momentum takes control, the line moves above price and displays red. The trailing logic helps traders follow established trends while recognizing possible shifts in direction.
The indicator includes two coloring styles:
* **Original Coloring:** Changes color based directly on bullish or bearish CCI momentum.
* **Trend Coloring:** Changes color based on whether the trailing line is rising or falling.
Pymander’s EZ Trend Alignment may be used to confirm market direction, filter long and short setups, identify possible trend changes, follow directional moves, and avoid trading against established momentum.
Its strength is simplicity. Rather than cluttering the chart with unnecessary signals, it provides a clear visual guide to help traders determine whether price, momentum, and volatility are aligned.
As with any indicator, use it alongside proper risk management, market structure, and a tested trading plan. No indicator can guarantee profitable results.
Best of luck in the markets, traders. Stay patient, remain disciplined, and protect your capital.
— **Pymander**
Open-source script
In true TradingView 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 TradingView. Read more in the Terms of Use.
Open-source script
In true TradingView 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 TradingView. Read more in the Terms of Use.