OPEN-SOURCE SCRIPT
Triple EMA/SMA + crossover

This script combines three moving averages into one clean indicator.
You can choose the type of MA (EMA or SMA), the source (close, open, HL2, etc.), and the length of each line. All three MAs also change color depending on whether they’re rising, falling, or flat.
MA1 and MA2 crossovers are highlighted directly on the candles (white for bullish, purple for bearish), which makes it easy to spot momentum shifts without adding extra indicators.
Each MA has its own color settings for rising/falling/flat, so you can adjust the look to match your chart style.
Nothing fancy or over-engineered — just a simple and flexible way to monitor 3 MAs at once, read trend direction at a glance, and see crossovers immediately.
You can choose the type of MA (EMA or SMA), the source (close, open, HL2, etc.), and the length of each line. All three MAs also change color depending on whether they’re rising, falling, or flat.
MA1 and MA2 crossovers are highlighted directly on the candles (white for bullish, purple for bearish), which makes it easy to spot momentum shifts without adding extra indicators.
Each MA has its own color settings for rising/falling/flat, so you can adjust the look to match your chart style.
Nothing fancy or over-engineered — just a simple and flexible way to monitor 3 MAs at once, read trend direction at a glance, and see crossovers immediately.
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.