OPEN-SOURCE SCRIPT
Updated MA and estimated MA

EMA and SMA system with an estimated coming 7-day EMA/SMA based on oldest closing price and estimated change percentage of future price. The long-cycle bars are marked by green color to avoid distraction from price fluctuation based on MACD default EMA setting. This work is a combination of ideas inspired by LoneCapital and @seedof.
Release Notes
1. Add an input option to show SMA lines.2. Extend the estimated SMA values to the coming 20 days.
3. Remove EMA and estimated EMA.
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.