OPEN-SOURCE SCRIPT

BUY/SELL CROSS 1 WEEK SKIDD

739
What it does
SRSI prints candle-attached BUY/SELL labels when StochRSI %K crosses %D in either direction—no numeric thresholds. Labels are vertically ATR-adjustable so they’re visible without clutter. A continuous MACD direction line sits above price, turning green when MACD > Signal and red when MACD < Signal.

Why it helps

Keeps entries/exits simple: true crossovers only.

Uses higher-TF StochRSI (weekly by default) to cut noise.

Visual regime filter via the color-changing MACD line.

Labels stick to the candle and move with it—clean on any zoom.

How to use

For swing trading, leave StochRSI on Weekly and enable Only signal on confirmed bar.

Use the MACD line as a directional filter: prefer BUYs when the line is green, prefer SELLs when red.

Adjust Label Vertical Distance (ATR x) so labels clear long wicks and stay readable.

Inputs

StochRSI: RSI Length, Lookback, %K/%D smoothing, Calculation TF.

Confirmation: Only signal on confirmed bar.

Labels: Vertical Distance (ATR x), Size.

MACD: Fast/Slow/Signal, MACD TF, line positioning, vertical distance, width.

Alerts

BUY (StochRSI Cross Up) and SELL (StochRSI Cross Down) included.

Notes

If you switch Only signal on confirmed bar OFF, signals can appear intra-bar and may repaint before close—use with care.

This is not financial advice; test on multiple symbols/timeframes.

Optional “Change log” (for future updates)

v1.0 — Initial public release: candle-attached StochRSI BUY/SELL labels + MACD direction line; vertical ATR spacing; weekly StochRSI default.

Clause de non-responsabilité

Les informations et les publications ne sont pas destinées à être, et ne constituent pas, des conseils ou des recommandations en matière de finance, d'investissement, de trading ou d'autres types de conseils fournis ou approuvés par TradingView. Pour en savoir plus, consultez les Conditions d'utilisation.