OPEN-SOURCE SCRIPT

Anurag BN / Nifty Swing Master [FINAL - Clean Compile]

1 000
This script is a complete Swing Trading System designed for Bank Nifty and Nifty 50 options. It operates directly on the Spot/Index chart but mathematically calculates the correct Option Strike (ATM/ITM) and estimates P&L in Rupees.

It uses a Non-Repainting Daily Trend Filter combined with an Intraday Entry Trigger to find high-probability setups.

What we are checking before giving a signal:

For a CALL Option (Buy Signal):

Daily Trend Alignment: The previous day's Daily EMA must be below the current price (indicating a Bullish macro trend).

Intraday Crossover: The price must cross above the Intraday 20 EMA (the entry trigger).

Volume Confirmation: (Optional) Volume must be higher than the 20-period Volume Moving Average to ensure momentum.

Session Filter: The trade must occur within the specified trading hours (09:15 - 15:00) to avoid opening/closing volatility.

For a PUT Option (Sell Signal):

Daily Trend Alignment: The previous day's Daily EMA must be above the current price (indicating a Bearish macro trend).

Intraday Crossunder: The price must cross below the Intraday 20 EMA (the entry trigger).

Volume Confirmation: (Optional) Volume must be higher than the 20-period Volume Moving Average.

Session Filter: The trade must occur within the specified trading hours.

Key Features:

Strike Selection: Automatically displays the correct ATM/ITM Strike (e.g., "BUY 48200 CE").

Live Dashboard: Shows Real-time P&L (in Points and ₹), Entry Price, Strike, and Trade Status.

Risk Management: Plots fixed Stop Loss (1.5x ATR) and Target (2x Risk) lines on the chart that do not move during the trade.

Auto-Breakeven: Optionally moves Stop Loss to entry price after the trade moves 1R in profit.

Отказ от ответственности

Информация и публикации не предназначены для предоставления и не являются финансовыми, инвестиционными, торговыми или другими видами советов или рекомендаций, предоставленных или одобренных TradingView. Подробнее читайте в Условиях использования.