OPEN-SOURCE SCRIPT
Mongoose Oscillator Lab — Pro v4 (weighted RSI/Stoch/MFI, div.

Description (short)
Weighted composite oscillator that blends RSI, Stoch%K, and MFI into a single –100…+100 line with zero-center area fill, signal line, momentum histogram, BB-inside-Keltner squeeze, optional bull/bear divergence, MTF confirmation and a compact value/weight dashboard.
How to use
Trade in the direction of the regime strip; use green/red dots to time entries.
Prefer divergences that agree with the regime and (optionally) a higher-TF gate.
In compression (yellow dots), wait for squeeze release.
Method
Each input (RSI/Stoch/MFI) is normalized (0–100), blended by weights, then mapped to –100…+100.
Signals use EMA smoothing + band thresholds (±60 default).
Divergence is pivot-based (L/R = 5/5 by default).
Squeeze = BB width < Keltner width on 20 bars.
Suggested defaults
Lengths: RSI 14, Stoch 14, MFI 14, Smooth 9, Signal 18, MomZ 20
Weights: 1 / 1 / 1 (set any to 0 to exclude)
Bands: ±60 (tight) or ±70/80 (stricter)
MTF Gate: blank (off) or W to require osc > 0 for longs, < 0 for shorts
Notes
Indicator only (no orders). Educational use; not financial advice.
Weighted composite oscillator that blends RSI, Stoch%K, and MFI into a single –100…+100 line with zero-center area fill, signal line, momentum histogram, BB-inside-Keltner squeeze, optional bull/bear divergence, MTF confirmation and a compact value/weight dashboard.
How to use
Trade in the direction of the regime strip; use green/red dots to time entries.
Prefer divergences that agree with the regime and (optionally) a higher-TF gate.
In compression (yellow dots), wait for squeeze release.
Method
Each input (RSI/Stoch/MFI) is normalized (0–100), blended by weights, then mapped to –100…+100.
Signals use EMA smoothing + band thresholds (±60 default).
Divergence is pivot-based (L/R = 5/5 by default).
Squeeze = BB width < Keltner width on 20 bars.
Suggested defaults
Lengths: RSI 14, Stoch 14, MFI 14, Smooth 9, Signal 18, MomZ 20
Weights: 1 / 1 / 1 (set any to 0 to exclude)
Bands: ±60 (tight) or ±70/80 (stricter)
MTF Gate: blank (off) or W to require osc > 0 for longs, < 0 for shorts
Notes
Indicator only (no orders). Educational use; not financial advice.
نص برمجي مفتوح المصدر
بروح TradingView الحقيقية، قام مبتكر هذا النص البرمجي بجعله مفتوح المصدر، بحيث يمكن للمتداولين مراجعة وظائفه والتحقق منها. شكرا للمؤلف! بينما يمكنك استخدامه مجانًا، تذكر أن إعادة نشر الكود يخضع لقواعد الموقع الخاصة بنا.
TheRealMongoose
إخلاء المسؤولية
لا يُقصد بالمعلومات والمنشورات أن تكون، أو تشكل، أي نصيحة مالية أو استثمارية أو تجارية أو أنواع أخرى من النصائح أو التوصيات المقدمة أو المعتمدة من TradingView. اقرأ المزيد في شروط الاستخدام.
نص برمجي مفتوح المصدر
بروح TradingView الحقيقية، قام مبتكر هذا النص البرمجي بجعله مفتوح المصدر، بحيث يمكن للمتداولين مراجعة وظائفه والتحقق منها. شكرا للمؤلف! بينما يمكنك استخدامه مجانًا، تذكر أن إعادة نشر الكود يخضع لقواعد الموقع الخاصة بنا.
TheRealMongoose
إخلاء المسؤولية
لا يُقصد بالمعلومات والمنشورات أن تكون، أو تشكل، أي نصيحة مالية أو استثمارية أو تجارية أو أنواع أخرى من النصائح أو التوصيات المقدمة أو المعتمدة من TradingView. اقرأ المزيد في شروط الاستخدام.