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.

Want to use this script on a chart?


Home Stock Screener Forex Screener Crypto Screener Economic Calendar About Chart Features Pricing Refer a friend House Rules Help Center Website & Broker Solutions Widgets Charting Solutions Lightweight Charting Library Blog & News Twitter