OPEN-SOURCE SCRIPT
Improved Options Confluence RSI Filter Backtest Strategy

Best Settings
EMA -9
Chandlier Exit -10
Multiplier -3
Bos look back 1
For call entries RSI must be above -47
For put entries RSI must be below - 35
RSI Mid zone low 35
RSI Mid Zone High 47
Options Confluence + RSI Filter — Backtest Strategy
A multi-factor confluence strategy designed for intraday options trading (CALL/PUT), combining trend, momentum, and volatility-exhaustion filters to reduce false signals during sideways/choppy price action.
Core Logic
The strategy only enters a trade when all of the following align:
EMA (13) — price must be trading above/below the EMA in the direction of the trade
VWAP — price must also be above/below VWAP, confirming intraday value-area bias
Chandelier Exit — an ATR-based trend/volatility filter must confirm the same directional bias
Break of Structure (BOS) — price must break the recent swing high/low over a configurable lookback, confirming momentum
RSI Filter (added to reduce sideways whipsaws)
Three additional RSI-based conditions are layered on top of the core confluence:
Mid-zone block — entries are disabled entirely when RSI sits between 45-55, since this range is typically a sign of indecisive, range-bound price action with no real momentum.
Directional confirmation — CALL entries require RSI above 55; PUT entries require RSI below 45, ensuring momentum genuinely supports the trade direction.
Overbought/Oversold block — CALL entries are disabled when RSI is above 70 (overbought), and PUT entries are disabled when RSI is below 30 (oversold), avoiding entries into an already-extended move that's prone to mean-reversion.
Effectively, this narrows valid entries to two RSI bands: CALLs only between RSI 55-70, and PUTs only between RSI 30-45.
Exit Logic
Positions are closed when price crosses back below/above the EMA, or when the Chandelier Exit flips direction — whichever comes first.
Visual Aids
EMA and VWAP plotted on the price chart
Background highlighting for RSI mid-zone (sideways), overbought, and oversold conditions, so you can visually see why a trade was or wasn't taken
CALL/PUT/EXIT labels marked directly on the chart
Inputs (fully adjustable)
EMA length, Chandelier ATR period & multiplier, BOS lookback, RSI length, RSI bull/bear confirmation levels, RSI mid-zone bounds, RSI overbought/oversold levels — every filter can be toggled or tuned to fit different instruments and timeframes.
Intended Use
Built and tested on 5-minute index charts (e.g. Bank Nifty) for options directional trading. Best used as a decision-support tool alongside price action and option-chain context, not as a fully automated signal generator. As with any strategy, backtest thoroughly on your instrument and timeframe before live use, and note that past performance does not guarantee future results.
EMA -9
Chandlier Exit -10
Multiplier -3
Bos look back 1
For call entries RSI must be above -47
For put entries RSI must be below - 35
RSI Mid zone low 35
RSI Mid Zone High 47
Options Confluence + RSI Filter — Backtest Strategy
A multi-factor confluence strategy designed for intraday options trading (CALL/PUT), combining trend, momentum, and volatility-exhaustion filters to reduce false signals during sideways/choppy price action.
Core Logic
The strategy only enters a trade when all of the following align:
EMA (13) — price must be trading above/below the EMA in the direction of the trade
VWAP — price must also be above/below VWAP, confirming intraday value-area bias
Chandelier Exit — an ATR-based trend/volatility filter must confirm the same directional bias
Break of Structure (BOS) — price must break the recent swing high/low over a configurable lookback, confirming momentum
RSI Filter (added to reduce sideways whipsaws)
Three additional RSI-based conditions are layered on top of the core confluence:
Mid-zone block — entries are disabled entirely when RSI sits between 45-55, since this range is typically a sign of indecisive, range-bound price action with no real momentum.
Directional confirmation — CALL entries require RSI above 55; PUT entries require RSI below 45, ensuring momentum genuinely supports the trade direction.
Overbought/Oversold block — CALL entries are disabled when RSI is above 70 (overbought), and PUT entries are disabled when RSI is below 30 (oversold), avoiding entries into an already-extended move that's prone to mean-reversion.
Effectively, this narrows valid entries to two RSI bands: CALLs only between RSI 55-70, and PUTs only between RSI 30-45.
Exit Logic
Positions are closed when price crosses back below/above the EMA, or when the Chandelier Exit flips direction — whichever comes first.
Visual Aids
EMA and VWAP plotted on the price chart
Background highlighting for RSI mid-zone (sideways), overbought, and oversold conditions, so you can visually see why a trade was or wasn't taken
CALL/PUT/EXIT labels marked directly on the chart
Inputs (fully adjustable)
EMA length, Chandelier ATR period & multiplier, BOS lookback, RSI length, RSI bull/bear confirmation levels, RSI mid-zone bounds, RSI overbought/oversold levels — every filter can be toggled or tuned to fit different instruments and timeframes.
Intended Use
Built and tested on 5-minute index charts (e.g. Bank Nifty) for options directional trading. Best used as a decision-support tool alongside price action and option-chain context, not as a fully automated signal generator. As with any strategy, backtest thoroughly on your instrument and timeframe before live use, and note that past performance does not guarantee future results.
开源脚本
秉承TradingView的精神,该脚本的作者将其开源,以便交易者可以查看和验证其功能。向作者致敬!您可以免费使用该脚本,但请记住,重新发布代码须遵守我们的网站规则。
免责声明
这些信息和出版物并非旨在提供,也不构成TradingView提供或认可的任何形式的财务、投资、交易或其他类型的建议或推荐。请阅读使用条款了解更多信息。
开源脚本
秉承TradingView的精神,该脚本的作者将其开源,以便交易者可以查看和验证其功能。向作者致敬!您可以免费使用该脚本,但请记住,重新发布代码须遵守我们的网站规则。
免责声明
这些信息和出版物并非旨在提供,也不构成TradingView提供或认可的任何形式的财务、投资、交易或其他类型的建议或推荐。请阅读使用条款了解更多信息。