OPEN-SOURCE SCRIPT
4 WMA's

4 WMA's plots four Weighted Moving Averages on the chart at once, giving a quick multi-timeframe view of trend direction and momentum.
By default the lengths are 21, 55, 100 and 200, so you get a short-term, medium-term and two longer-term averages in a single overlay indicator. Each length is fully configurable in the settings.
Unlike a simple moving average, a Weighted Moving Average (WMA) assigns more weight to recent prices, so it reacts faster to price changes while still smoothing out noise. This makes the WMA useful for spotting trend shifts a bit earlier than an SMA.
How to use it:
- When price is above all four WMAs and they are stacked in order (fastest on top), the trend is strongly bullish.
- When price is below all four and they are stacked in reverse, the trend is strongly bearish.
- Crossovers between the faster and slower WMAs can be used as trend-change signals.
All lengths, colors and line widths can be adjusted in the indicator settings. Works on any symbol and timeframe.
By default the lengths are 21, 55, 100 and 200, so you get a short-term, medium-term and two longer-term averages in a single overlay indicator. Each length is fully configurable in the settings.
Unlike a simple moving average, a Weighted Moving Average (WMA) assigns more weight to recent prices, so it reacts faster to price changes while still smoothing out noise. This makes the WMA useful for spotting trend shifts a bit earlier than an SMA.
How to use it:
- When price is above all four WMAs and they are stacked in order (fastest on top), the trend is strongly bullish.
- When price is below all four and they are stacked in reverse, the trend is strongly bearish.
- Crossovers between the faster and slower WMAs can be used as trend-change signals.
All lengths, colors and line widths can be adjusted in the indicator settings. Works on any symbol and timeframe.
Mã nguồn mở
Theo đúng tinh thần TradingView, tác giả của tập lệnh này đã công bố nó dưới dạng mã nguồn mở, để các nhà giao dịch có thể xem xét và xác minh chức năng. Chúc mừng tác giả! Mặc dù bạn có thể sử dụng miễn phí, hãy nhớ rằng việc công bố lại mã phải tuân theo Nội quy.
Thông báo miễn trừ trách nhiệm
Thông tin và các ấn phẩm này không nhằm mục đích, và không cấu thành, lời khuyên hoặc khuyến nghị về tài chính, đầu tư, giao dịch hay các loại khác do TradingView cung cấp hoặc xác nhận. Đọc thêm tại Điều khoản Sử dụng.
Mã nguồn mở
Theo đúng tinh thần TradingView, tác giả của tập lệnh này đã công bố nó dưới dạng mã nguồn mở, để các nhà giao dịch có thể xem xét và xác minh chức năng. Chúc mừng tác giả! Mặc dù bạn có thể sử dụng miễn phí, hãy nhớ rằng việc công bố lại mã phải tuân theo Nội quy.
Thông báo miễn trừ trách nhiệm
Thông tin và các ấn phẩm này không nhằm mục đích, và không cấu thành, lời khuyên hoặc khuyến nghị về tài chính, đầu tư, giao dịch hay các loại khác do TradingView cung cấp hoặc xác nhận. Đọc thêm tại Điều khoản Sử dụng.