OPEN-SOURCE SCRIPT
מעודכן Dual MA SD Oscillator

The Dual MA SD Oscillator is a momentum and trend-following oscillator designed to measure the spread between a fast and slow moving average, then dynamically filter signals using Standard Deviation bands.
Instead of relying on static thresholds, the oscillator adapts to changing market conditions by expanding and contracting its SD bands based on volatility. This helps reduce noise while still reacting quickly to strong directional moves.
🔹 How It Works:
🔹 Features:
🔹 Inputs:
🔹 Best Used For:
Instead of relying on static thresholds, the oscillator adapts to changing market conditions by expanding and contracting its SD bands based on volatility. This helps reduce noise while still reacting quickly to strong directional moves.
🔹 How It Works:
- Calculates the spread between a fast and slow EMA
- Smooths the spread to reduce market noise
- Builds dynamic Standard Deviation bands around the oscillator
- Generates a bullish signal when momentum expands above the upper SD band
- Generates a bearish signal when momentum drops below the lower SD band
🔹 Features:
- Dynamic volatility-adjusted oscillator
- Adaptive Standard Deviation bands
- BULL / BEAR trend signals
- Optional candle coloring based on trend direction
- Clean visual structure for trend confirmation and momentum analysis
🔹 Inputs:
- Fast Length: Lower values react faster to price movement
- Slow Length: Higher values create a smoother trend baseline
- Smooth Length: Additional smoothing to reduce oscillator noise
- SD Lengths: Control the sensitivity of bullish and bearish volatility bands
🔹 Best Used For:
- Momentum confirmation
- Trend-following systems
- Identifying volatility expansions
- Filtering weak market conditions
הערות שחרור
Added histogram columns for improved trend visualization.סקריפט קוד פתוח
ברוח האמיתית של TradingView, יוצר הסקריפט הזה הפך אותו לקוד פתוח, כך שסוחרים יוכלו לעיין בו ולאמת את פעולתו. כל הכבוד למחבר! אמנם ניתן להשתמש בו בחינם, אך זכור כי פרסום חוזר של הקוד כפוף ל־כללי הבית שלנו.
כתב ויתור
המידע והפרסומים אינם מיועדים להיות, ואינם מהווים, ייעוץ או המלצה פיננסית, השקעתית, מסחרית או מכל סוג אחר המסופקת או מאושרת על ידי TradingView. קרא עוד ב־תנאי השימוש.
סקריפט קוד פתוח
ברוח האמיתית של TradingView, יוצר הסקריפט הזה הפך אותו לקוד פתוח, כך שסוחרים יוכלו לעיין בו ולאמת את פעולתו. כל הכבוד למחבר! אמנם ניתן להשתמש בו בחינם, אך זכור כי פרסום חוזר של הקוד כפוף ל־כללי הבית שלנו.
כתב ויתור
המידע והפרסומים אינם מיועדים להיות, ואינם מהווים, ייעוץ או המלצה פיננסית, השקעתית, מסחרית או מכל סוג אחר המסופקת או מאושרת על ידי TradingView. קרא עוד ב־תנאי השימוש.