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が提供または保証する金融、投資、取引、またはその他の種類のアドバイスや推奨を意図したものではなく、またそのようなものでもありません。詳しくは利用規約をご覧ください。