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. اقرأ المزيد في شروط الاستخدام.