Dynamic EMA x VWAP Alerts

Case example
Swing trading - pre-filtering:
Swing trading - post-filtering:
How it works
• Signals: BUY when fast EMA crosses above slow EMA; SELL on the opposite — evaluated once per bar close (non-repainting).
• Gates: choose BUY/SELL levels (VWAP, ±1σ/±2σ/±3σ) and the source (Daily, Weekly, or Rolling). Gate modes Single / AND (Both) / OR (Either) control how sources combine.
• Filters (optional): ATR (% or regime), Relative Volume, and Distance guards are OFF by default and can be turned on as needed.
• Time Windows: set an Active window plus up to 3 Blackouts relative to the VWAP window start; pick a timezone (ET / Exchange / UTC) so you don’t have to do mental offsets.
Quick start
1) Show Daily VWAP and pick Gate Mode + BUY/SELL levels.
2) Choose Double or Triple EMA and (optionally) display the lines.
3) (Optional) Enable ATR / R-Vol / Distance.
4) (Optional) Configure Time Windows and select the timezone.
5) Add alerts: use the two built-in BUY/SELL alertconditions and set them to Once-per-bar-close.
Notes
• Non-repainting by design: logic runs on bar close; no higher-TF lookahead.
• Built for multiple markets and timeframes; Rolling VWAP is O(1) per bar; the Time Windows gate applies to intraday bars by design.
Invite-only script
Only users approved by the author can access this script. You'll need to request and get permission to use it. This is typically granted after payment. For more details, follow the author's instructions below or contact Quantastico directly.
TradingView does NOT recommend paying for or using a script unless you fully trust its author and understand how it works. You may also find free, open-source alternatives in our community scripts.
Author's instructions
Warning: please read our guide for invite-only scripts before requesting access.
Disclaimer
Invite-only script
Only users approved by the author can access this script. You'll need to request and get permission to use it. This is typically granted after payment. For more details, follow the author's instructions below or contact Quantastico directly.
TradingView does NOT recommend paying for or using a script unless you fully trust its author and understand how it works. You may also find free, open-source alternatives in our community scripts.
Author's instructions
Warning: please read our guide for invite-only scripts before requesting access.