OPEN-SOURCE SCRIPT
RSI/Stochastic with overlays a moving average + Bollinger Bands

Compact oscillator panel that lets you switch the base between RSI and Stochastic %K, then overlays a moving average + Bollinger Bands on the oscillator values (not on price) to read momentum strength and squeeze/expansion.
What’s added
Selectable base: RSI ↔ Stochastic %K (plots %D when Stoch is chosen).
MA + BB on oscillator to gauge momentum trend (MA) and volatility (bands).
Adjustable bands 70/50/30 with optional fill, plus optional regular divergence and alerts.
How to read
Bull bias: %K above osc-MA and pushing/closing near Upper BB; confirm with %K > %D.
Bear bias: %K below osc-MA and near Lower BB; confirm with %K < %D.
Squeeze: BB on oscillator tightens → expect momentum breakout.
Overextension: repeated touches of Upper/Lower BB in 70/30 zones → strong trend; watch for %K–%D recross.
Quick settings (start here)
Stoch: 14 / 3 / 3; Bands: 70/50/30.
Osc-MA: EMA 14.
BB on oscillator: StdDev 2.0 (tune 1.5–2.5).
Note
Analysis tool, not financial advice. Backtest across timeframes and use risk management.
What’s added
Selectable base: RSI ↔ Stochastic %K (plots %D when Stoch is chosen).
MA + BB on oscillator to gauge momentum trend (MA) and volatility (bands).
Adjustable bands 70/50/30 with optional fill, plus optional regular divergence and alerts.
How to read
Bull bias: %K above osc-MA and pushing/closing near Upper BB; confirm with %K > %D.
Bear bias: %K below osc-MA and near Lower BB; confirm with %K < %D.
Squeeze: BB on oscillator tightens → expect momentum breakout.
Overextension: repeated touches of Upper/Lower BB in 70/30 zones → strong trend; watch for %K–%D recross.
Quick settings (start here)
Stoch: 14 / 3 / 3; Bands: 70/50/30.
Osc-MA: EMA 14.
BB on oscillator: StdDev 2.0 (tune 1.5–2.5).
Note
Analysis tool, not financial advice. Backtest across timeframes and use risk management.
סקריפט קוד פתוח
ברוח TradingView אמיתית, היוצר של הסקריפט הזה הפך אותו לקוד פתוח, כך שסוחרים יכולים לבדוק ולאמת את הפונקציונליות שלו. כל הכבוד למחבר! למרות שאתה יכול להשתמש בו בחינם, זכור שפרסום מחדש של הקוד כפוף לכללי הבית שלנו.
כתב ויתור
המידע והפרסומים אינם אמורים להיות, ואינם מהווים, עצות פיננסיות, השקעות, מסחר או סוגים אחרים של עצות או המלצות שסופקו או מאושרים על ידי TradingView. קרא עוד בתנאים וההגבלות.
סקריפט קוד פתוח
ברוח TradingView אמיתית, היוצר של הסקריפט הזה הפך אותו לקוד פתוח, כך שסוחרים יכולים לבדוק ולאמת את הפונקציונליות שלו. כל הכבוד למחבר! למרות שאתה יכול להשתמש בו בחינם, זכור שפרסום מחדש של הקוד כפוף לכללי הבית שלנו.
כתב ויתור
המידע והפרסומים אינם אמורים להיות, ואינם מהווים, עצות פיננסיות, השקעות, מסחר או סוגים אחרים של עצות או המלצות שסופקו או מאושרים על ידי TradingView. קרא עוד בתנאים וההגבלות.