Bank Nifty RSI Dynamic v6This is a specialized mean-reversion strategy designed for Bank Nifty (NSE:NIFTYBANK) on the 5-minute timeframe. It focuses on capturing rapid reversals when the market reaches extreme overbought or oversold conditions based on the Relative Strength Index (RSI).
Unlike standard RSI strategies that wait for a cross back into the neutral zone, this script uses asymmetric dynamic exits to lock in profits early as momentum shifts.
How it Works
Timeframe: Optimized for 5m (Intraday).
Bullish Entry (Call): Triggers when the RSI closes below 30. This identifies a potential "exhaustion" in selling pressure.
Bearish Entry (Put): Triggers when the RSI closes above 68. This identifies a potential "overextension" in buying pressure.
Dynamic Exits:
Calls are closed when RSI recovers to 45.
Puts are closed when RSI cools down to 56.
Position Sizing: Fixed at 3 Lots (90 units), calibrated for the 2026 Bank Nifty lot size.
Key Features
Pine Script v6: Built using the latest TradingView standards for faster execution and better backtesting accuracy.
Capital Efficiency: Includes a zero-margin override to ensure the backtester reflects the full 3-lot position regardless of account leverage settings.
Visual Signals: Uses clear plotshape triangles (Green for Call, Red for Put) directly on the price chart for easy manual execution or alert monitoring.
Risk Disclaimer
Bank Nifty is highly volatile. This strategy does not include a fixed stop loss by default (exits are momentum-based), so users should be prepared for drawdowns during strong trending phases where RSI remains in extreme zones for extended periods. Always backtest on your preferred broker's data before going live.
Стратегия Pine Script®






















