OPEN-SOURCE SCRIPT

Stoch RSI Buy/Sell Signals with Alerts

55
My charts show HBM and CMCL graphs. The colors show you when to buy and when to sell.

The script is data-driven:

It calculates RSI and Stoch RSI based on each ticker’s own price movement.

The %K and %D lines are smoothed from that ticker’s momentum.

Signals only fire when that ticker’s %K crosses %D in the right zone.

So if CMCL is oversold and HBM is overbought, you’ll get:

✅ Green K line and green background on CMCL

❌ Red K line and red background on HBM

Even if they both show gray at the same time, it’s because neither is in a signal zone — not because the charts are duplicates.

Disclaimer

The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.