OPEN-SOURCE SCRIPT
SPY 0DTE Confluence Scalper

• Plots VWAP, 9/20 EMA, opening range, prior day high/low, and premarket high/low
• Signals a long when: EMA9>EMA20, RSI(2) snaps up from oversold, price is above VWAP, volume spike confirms, and price is near a key level (VWAP/OR/PDH/PDL) — short is the mirror image
• Exit hints trigger on RSI crossing back through 50 or an opposing EMA cross
• Fires alertcondition()s for entries/exits so you can set up TradingView alerts (webhook-ready for future automation)
• Includes a rough on-chart win-rate table (checks price direction N bars after each signal) so you can gauge accuracy before trusting it
• Signals a long when: EMA9>EMA20, RSI(2) snaps up from oversold, price is above VWAP, volume spike confirms, and price is near a key level (VWAP/OR/PDH/PDL) — short is the mirror image
• Exit hints trigger on RSI crossing back through 50 or an opposing EMA cross
• Fires alertcondition()s for entries/exits so you can set up TradingView alerts (webhook-ready for future automation)
• Includes a rough on-chart win-rate table (checks price direction N bars after each signal) so you can gauge accuracy before trusting it
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.