OPEN-SOURCE SCRIPT
SMA 20 & 5 Magic

Moving Average based envelops and bands are quite popular tools in the equity trading universe. One such popular band is 20 SMA High-Low band. In 20 SMA High-Low band generally a BUY is signaled when price breaks above the High of the band, and a SELL when price falls below the Low of the band. However, at times the time-price points to look for trading/ investing opportunities and taking position are not very clear in this generic mode.
This script combines the 20 SMA High-Low band and a 5 SMA line plotted over it, to tackle this limitation. It helps to find more precise trading/ investing opportunities, Entry and Exit time-price points above & below the band, traversing along the 5 SMA line. The price within the band is usually considered as 'no trades' zone.
This set up can be applied on any TF, but generally holds good for swings on daily/ hourly TFs. By tweaking SMA 20 and 5 to SMA 200 and 50 respectively in the settings, it may also help in identifying medium/Long term trends and investment opportunities using daily/ weekly TFs .
Take it as a tool for learning and analysis. Happy trading/ investing.
This script combines the 20 SMA High-Low band and a 5 SMA line plotted over it, to tackle this limitation. It helps to find more precise trading/ investing opportunities, Entry and Exit time-price points above & below the band, traversing along the 5 SMA line. The price within the band is usually considered as 'no trades' zone.
This set up can be applied on any TF, but generally holds good for swings on daily/ hourly TFs. By tweaking SMA 20 and 5 to SMA 200 and 50 respectively in the settings, it may also help in identifying medium/Long term trends and investment opportunities using daily/ weekly TFs .
Take it as a tool for learning and analysis. Happy trading/ investing.
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.