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. קרא עוד בתנאים וההגבלות.