OPEN-SOURCE SCRIPT
Final - Swings

Market-specific guidance
Crypto 3–5m (BTC/ETH)
Use % mode ON, % = 0.45–0.55.
Keep Retest ON, retestBars = 2–3, retestTolTicks = 15–25.
In strong trends, you can skip Retest for faster entries.
NIFTY / BankNifty 3–5m (for options scalps)
Drive entries off the index chart; trade liquid weekly ATM/near-ATM options (delta ~0.35–0.5).
Stops/targets are assessed on the index, then executed on the option (premium moves ≈ delta × index move).
Time filter: avoid last 15–30 min unless momentum is very strong (theta).
Crypto 3–5m (BTC/ETH)
Use % mode ON, % = 0.45–0.55.
Keep Retest ON, retestBars = 2–3, retestTolTicks = 15–25.
In strong trends, you can skip Retest for faster entries.
NIFTY / BankNifty 3–5m (for options scalps)
Drive entries off the index chart; trade liquid weekly ATM/near-ATM options (delta ~0.35–0.5).
Stops/targets are assessed on the index, then executed on the option (premium moves ≈ delta × index move).
Time filter: avoid last 15–30 min unless momentum is very strong (theta).
Open-source script
In true TradingView spirit, the creator of this script has made it open-source, so that traders can review and verify its functionality. Kudos to the author! While you can use it for free, remember that republishing the code is subject to our House Rules.
Disclaimer
The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.
Open-source script
In true TradingView spirit, the creator of this script has made it open-source, so that traders can review and verify its functionality. Kudos to the author! While you can use it for free, remember that republishing the code is subject to our House Rules.
Disclaimer
The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.