OPEN-SOURCE SCRIPT
Updated 5-8 EMA Cross with added 20 EMA

This is a simple EMA cross script to get into trades early using a 5/8 EMA cross but also allows you to filter out risky trades using the 20 EMA. For long trades the cross is not a valid signal if it occurs below the 20 EMA and vice versa.
Release Notes
Corrected error in crossover for the script. Now shows 5-8 crossover properlyOpen-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.