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.
סקריפט קוד פתוח
ברוח האמיתית של TradingView, יוצר הסקריפט הזה הפך אותו לקוד פתוח, כך שסוחרים יוכלו לעיין בו ולאמת את פעולתו. כל הכבוד למחבר! אמנם ניתן להשתמש בו בחינם, אך זכור כי פרסום חוזר של הקוד כפוף ל־כללי הבית שלנו.
כתב ויתור
המידע והפרסומים אינם מיועדים להיות, ואינם מהווים, ייעוץ או המלצה פיננסית, השקעתית, מסחרית או מכל סוג אחר המסופקת או מאושרת על ידי TradingView. קרא עוד ב־תנאי השימוש.
סקריפט קוד פתוח
ברוח האמיתית של TradingView, יוצר הסקריפט הזה הפך אותו לקוד פתוח, כך שסוחרים יוכלו לעיין בו ולאמת את פעולתו. כל הכבוד למחבר! אמנם ניתן להשתמש בו בחינם, אך זכור כי פרסום חוזר של הקוד כפוף ל־כללי הבית שלנו.
כתב ויתור
המידע והפרסומים אינם מיועדים להיות, ואינם מהווים, ייעוץ או המלצה פיננסית, השקעתית, מסחרית או מכל סוג אחר המסופקת או מאושרת על ידי TradingView. קרא עוד ב־תנאי השימוש.