Custom Moving Average Lines


This is a script for basic market trend analysis using moving average lines. It features eight lines with eight choices of moving averages and adjustable sources & time periods. The choice of moving averages are stated below:

1. Simple Moving Average ( sma )
2. Exponential Moving Average ( ema )
3. Weighted Moving Average ( wma )
4. Relative Moving Average (rma)
5. Hull Moving Average ( hma )
6. Sine-Weighted Moving Average ( swma )
7. Volume Weighted Moving Average ( vwma )
8. Volume Weighted Average Price ( vwap )

Planning on including other formula based indicators soon. Let me know if there can be some improvements made / errors so I can fix it.

Open-source script

In true TradingView spirit, the author of this script has published it open-source, so traders can understand and verify it. Cheers to the author! You may use it for free, but reuse of this code in a publication is governed by House Rules. You can favorite it to use it on a chart.


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.

Want to use this script on a chart?