OPEN-SOURCE SCRIPT
Updated Highlight Deduction

Highlighting deduction OHLC bar make traders easier to observe SMA direction. This indicator will highlight the deduction area(width can be set by yourself) and draw dotted line of deduction value. Since this indicator comes from SMA, it plot SMA(up to 2) too.
Release Notes
Revise descriptionRelease Notes
Add these new features: 1. Add 3rd SMA, 2. hard-code 3rd SMA length for your next interval according to fast MA length(that say if your fast MA length is 24, smaller interval is 5m, and larger one is 30m, then your 3rd SMA length should be 6 * fast length(24)= 144). If your use different intervals, just do some minor adjust line between 13 and 18.Release Notes
Add Comment, and update chartRelease Notes
Add commentOpen-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.