OPEN-SOURCE SCRIPT
Stochastic Chande Momentum Oscillator (Stoch CMO)

The Stochastic CMO combines the Chande Momentum Oscillator (CMO) with Stochastic normalization to measure momentum on a bounded 0–100 scale.
Why CMO instead of RSI?
RSI uses Wilder smoothing internally, which adds lag before any Stochastic formula is even applied. CMO skips that — it uses raw sums of up and down moves, so there's no hidden lag tax. The result is that StochCMO carries 2 layers of lag (Stochastic + K/D smoothing) vs StochRSI's 3 (Wilder MA + Stochastic + K/D smoothing), making it faster to react to price changes with comparable settings.
How it works:
- CMO measures the ratio of up-moves vs down-moves over a set period
- That CMO value is then run through a Stochastic formula to normalize it between 0 and 100
- %K (blue) is the smoothed Stochastic CMO line
- %D (orange) is a moving average of %K, acting as a signal line
Key levels:
- 80 → Overbought
- 50 → Midline (trend bias)
- 20 → Oversold
Includes 6 built-in alerts for crossovers and crossunders at all three levels.
Settings:
- CMO Length (default 9)
- Stochastic Length (default 14)
- Smooth K (default 3)
- Smooth D (default 3)
Why CMO instead of RSI?
RSI uses Wilder smoothing internally, which adds lag before any Stochastic formula is even applied. CMO skips that — it uses raw sums of up and down moves, so there's no hidden lag tax. The result is that StochCMO carries 2 layers of lag (Stochastic + K/D smoothing) vs StochRSI's 3 (Wilder MA + Stochastic + K/D smoothing), making it faster to react to price changes with comparable settings.
How it works:
- CMO measures the ratio of up-moves vs down-moves over a set period
- That CMO value is then run through a Stochastic formula to normalize it between 0 and 100
- %K (blue) is the smoothed Stochastic CMO line
- %D (orange) is a moving average of %K, acting as a signal line
Key levels:
- 80 → Overbought
- 50 → Midline (trend bias)
- 20 → Oversold
Includes 6 built-in alerts for crossovers and crossunders at all three levels.
Settings:
- CMO Length (default 9)
- Stochastic Length (default 14)
- Smooth K (default 3)
- Smooth D (default 3)
סקריפט קוד פתוח
ברוח האמיתית של TradingView, יוצר הסקריפט הזה הפך אותו לקוד פתוח, כך שסוחרים יוכלו לעיין בו ולאמת את פעולתו. כל הכבוד למחבר! אמנם ניתן להשתמש בו בחינם, אך זכור כי פרסום חוזר של הקוד כפוף ל־כללי הבית שלנו.
כתב ויתור
המידע והפרסומים אינם מיועדים להיות, ואינם מהווים, ייעוץ או המלצה פיננסית, השקעתית, מסחרית או מכל סוג אחר המסופקת או מאושרת על ידי TradingView. קרא עוד ב־תנאי השימוש.
סקריפט קוד פתוח
ברוח האמיתית של TradingView, יוצר הסקריפט הזה הפך אותו לקוד פתוח, כך שסוחרים יוכלו לעיין בו ולאמת את פעולתו. כל הכבוד למחבר! אמנם ניתן להשתמש בו בחינם, אך זכור כי פרסום חוזר של הקוד כפוף ל־כללי הבית שלנו.
כתב ויתור
המידע והפרסומים אינם מיועדים להיות, ואינם מהווים, ייעוץ או המלצה פיננסית, השקעתית, מסחרית או מכל סוג אחר המסופקת או מאושרת על ידי TradingView. קרא עוד ב־תנאי השימוש.