V/S RSI Signals on ChartWhat does the indicator do?
This indicator does not display a separate RSI pane. Instead, it draws signals directly on the candles:
🟢 Green upward triangle below the candle → LONG signal (RSI crosses above its moving average while RSI value is inside your defined long range).
🔴 Red downward triangle above the candle → SHORT signal (RSI crosses below its moving average while RSI value is inside your defined short range).
All signals can be toggled on/off independently. You can also adjust the RSI range for longs and shorts, as well as all RSI and MA parameters.
⚙️ Input parameters
1. RSI Settings
RSI Length – RSI period (default 14).
RSI Source – price source for RSI calculation (usually close).
Calculate Divergence – enable/disable divergence detection.
2. Smoothing (MA Settings)
MA Type – type of moving average applied to RSI:
None (no MA – cross signals disabled), SMA, SMA + Bollinger Bands, EMA, SMMA (RMA), WMA, VWMA.
MA Length – MA period (default 14).
BB StdDev – standard deviation multiplier for Bollinger Bands (only when SMA + Bollinger Bands is selected).
3. Signal Ranges
Long Signal Min/Max RSI – RSI zone where long signals are allowed (green arrows and Bull labels).
Example: 0–30 – only from oversold area.
Short Signal Min/Max RSI – RSI zone where short signals are allowed (red arrows and Bear labels).
Example: 70–100 – only from overbought area.
4. Cross Signals
Show RSI-MA Crosses – show/hide cross arrows.
Cross Direction – allowed cross direction:
Both, Cross Above (only RSI crossing above MA), Cross Below (only crossing below MA).
🧠 How to use
Example: Longs only in oversold zone
Long Range: Min = 0, Max = 30
Short Range: any (e.g., 0–100 if you don't want shorts)
MA Type: SMA, Length 14
Green arrows will appear only when RSI is below 30 and crosses above its MA. Helps catch reversals after a strong drop.
Example: Shorts only in overbought zone
Short Range: Min = 70, Max = 100
Long Range: 0–100 (effectively disabled)
Cross Direction: Cross Below
📌 Important notes
The indicator does not plot RSI or MA lines – only signals on price.
The calculation timeframe matches the chart's timeframe (timeframe="" in code). If you need a fixed timeframe, change it in the source code (e.g., timeframe="60" for 1H).
Cross signals require MA Type not to be None.
⚠️ Disclaimer
This indicator is an educational and analytical tool only. It does not guarantee profit. All signals require additional confirmation and analysis before making trading decisions. Use at your own risk.
Happy trading! 📊
Индикатор Pine Script®






















