OPEN-SOURCE SCRIPT
BUY/SELL/R/B

Buy/Sell/R/B by SeanKidd
Purpose: A clean, anchored signal system combining StochRSI crossovers, CVI top/bottom detection, and a MACD direction line that moves with price.
⚙️ How It Works
BUY / SELL – Generated from a higher-timeframe StochRSI crossover.
BUY (Green) → %K crosses above %D
SELL (Red) → %K crosses below %D
R (Reverse) – Yellow “R” appears above the candle when the CVI model detects a local top or exhaustion point.
B (Bottom) – Blue “B” appears below the candle when CVI detects a local bottom.
MACD Direction Line –
Green = MACD above Signal → bullish momentum
Red = MACD below Signal → bearish momentum
The line rides just above the candles, offset by ATR so it always tracks price.
🧭 How to Use It
Add the indicator:
Search for Buy/Sell/R/B by SeanKidd under Community Scripts.
Click ★ to favorite it.
Apply it to your chart.
Open ⚙️ Settings → Inputs
Calculation Timeframe (StochRSI) → pick how fast or slow you want signals (default Weekly).
MACD Line Offset (ATR ×) → raise or lower the MACD line if it overlaps candles.
Adjust Top/Bottom thresholds to control how often R/B appear.
Toggle Highlight bars or Color candles for visual clarity.
Go to Settings → Scales and ensure it’s set to
✅ “Scale with Price Chart” or
✅ same scale side as the candles.
This keeps everything perfectly attached to the chart.
Optional: Add alerts
Create → Alert → Condition → Buy/Sell/R/B by SeanKidd
Choose: SRSI BUY, SRSI SELL, Top (R), or Bottom (B).
📈 Reading the Chart
Marker Meaning Color Position
BUY StochRSI %K cross above %D Lime Below bar
SELL StochRSI %K cross below %D Red Above bar
R CVI-detected top / reversal Yellow Above bar
B CVI-detected bottom Blue Below bar
Line MACD momentum direction Green/Red Above highs
💡 Tips
Works on any symbol or timeframe.
Slower charts (Daily–Weekly) give cleaner swing signals.
Faster charts (15m–1h) show short-term reversals.
Combine the MACD line direction with BUY/SELL for stronger confirmation.
Purpose: A clean, anchored signal system combining StochRSI crossovers, CVI top/bottom detection, and a MACD direction line that moves with price.
⚙️ How It Works
BUY / SELL – Generated from a higher-timeframe StochRSI crossover.
BUY (Green) → %K crosses above %D
SELL (Red) → %K crosses below %D
R (Reverse) – Yellow “R” appears above the candle when the CVI model detects a local top or exhaustion point.
B (Bottom) – Blue “B” appears below the candle when CVI detects a local bottom.
MACD Direction Line –
Green = MACD above Signal → bullish momentum
Red = MACD below Signal → bearish momentum
The line rides just above the candles, offset by ATR so it always tracks price.
🧭 How to Use It
Add the indicator:
Search for Buy/Sell/R/B by SeanKidd under Community Scripts.
Click ★ to favorite it.
Apply it to your chart.
Open ⚙️ Settings → Inputs
Calculation Timeframe (StochRSI) → pick how fast or slow you want signals (default Weekly).
MACD Line Offset (ATR ×) → raise or lower the MACD line if it overlaps candles.
Adjust Top/Bottom thresholds to control how often R/B appear.
Toggle Highlight bars or Color candles for visual clarity.
Go to Settings → Scales and ensure it’s set to
✅ “Scale with Price Chart” or
✅ same scale side as the candles.
This keeps everything perfectly attached to the chart.
Optional: Add alerts
Create → Alert → Condition → Buy/Sell/R/B by SeanKidd
Choose: SRSI BUY, SRSI SELL, Top (R), or Bottom (B).
📈 Reading the Chart
Marker Meaning Color Position
BUY StochRSI %K cross above %D Lime Below bar
SELL StochRSI %K cross below %D Red Above bar
R CVI-detected top / reversal Yellow Above bar
B CVI-detected bottom Blue Below bar
Line MACD momentum direction Green/Red Above highs
💡 Tips
Works on any symbol or timeframe.
Slower charts (Daily–Weekly) give cleaner swing signals.
Faster charts (15m–1h) show short-term reversals.
Combine the MACD line direction with BUY/SELL for stronger confirmation.
開源腳本
本著TradingView的真正精神,此腳本的創建者將其開源,以便交易者可以查看和驗證其功能。向作者致敬!雖然您可以免費使用它,但請記住,重新發佈程式碼必須遵守我們的網站規則。
免責聲明
這些資訊和出版物並不意味著也不構成TradingView提供或認可的金融、投資、交易或其他類型的意見或建議。請在使用條款閱讀更多資訊。
開源腳本
本著TradingView的真正精神,此腳本的創建者將其開源,以便交易者可以查看和驗證其功能。向作者致敬!雖然您可以免費使用它,但請記住,重新發佈程式碼必須遵守我們的網站規則。
免責聲明
這些資訊和出版物並不意味著也不構成TradingView提供或認可的金融、投資、交易或其他類型的意見或建議。請在使用條款閱讀更多資訊。