INVITE-ONLY SCRIPT

Dynamic EMA x VWAP Alerts

37
snapshotDynamic EMA × VWAP Alerts finds EMA crossover entries only when price sits in a meaningful VWAP context. It supports Daily, Weekly, and Rolling VWAP anchors with ±1/2/3σ bands, so signals are filtered by where price is relative to VWAP/bands instead of firing everywhere. Optional ATR, Relative-Volume, and Distance guards further trim noise. Time Windows let you keep the tool active only during the parts of the day you actually trade (with a timezone selector to match the market).

Case example
Swing trading - pre-filtering:
snapshot

Swing trading - post-filtering:
snapshot

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.


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.