OPEN-SOURCE SCRIPT
2-step Moving Average by HAH Financial

- longer SMAs tend to sit too far from daily action
- shorter SMAs are too jittery
- the idea here is to create a smooth line, that is sits much closer to the daily price ranges
- this is achieved by mixing 2 MAs, a longer one and a shorter one
- the long one gives smoothness
- while averaging it with a shorter one, brings it (much in some cases) closer to the daily range
- shorter SMAs are too jittery
- the idea here is to create a smooth line, that is sits much closer to the daily price ranges
- this is achieved by mixing 2 MAs, a longer one and a shorter one
- the long one gives smoothness
- while averaging it with a shorter one, brings it (much in some cases) closer to the daily range
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.