OPEN-SOURCE SCRIPT
Triple-Stack Crossover

Four references on one chart (21 SMA, 200 EMA, 200 VWMA, and session VWAP with its bands) and the only thing it cares about is the 21 crossing all three at once. Clear the EMA, VWMA, and VWAP together going up and it's a long; break all three going down and it's a short. Making one fast average get past a price-based, a volume-weighted, and a session-anchored line at the same time throws out most of the single-MA head-fakes. Take a signal as a regime flip and ride it until the stack breaks back apart. Confirms on close, no repaint.
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.