OPEN-SOURCE SCRIPT
Marin Andrei - EMA 20-30 Price Alerts • Regime + Session Filter

A clean and reliable trend-following alert system based on the 20 EMA and 30 EMA crossover zone, enhanced with multiple smart filters to eliminate noise and false signals. - configurable.
Core features:
✅ Trend confirmation: Buy only when price is above both EMAs; sell only when below.
📈 Slope & momentum filters: Optional slope and ATR-based spread validation.
🕒 Regime filter: Trade only in the direction of the higher-timeframe EMA trend (e.g., 200 EMA).
⏰ Session control: Limit signals to your preferred trading hours.
🔔 Built-in alerts: Instant notifications for clean buy/sell conditions.
Perfect for traders who want EMA-based precision entries with smarter filters for volatility, session timing, and overall market regime.
Core features:
✅ Trend confirmation: Buy only when price is above both EMAs; sell only when below.
📈 Slope & momentum filters: Optional slope and ATR-based spread validation.
🕒 Regime filter: Trade only in the direction of the higher-timeframe EMA trend (e.g., 200 EMA).
⏰ Session control: Limit signals to your preferred trading hours.
🔔 Built-in alerts: Instant notifications for clean buy/sell conditions.
Perfect for traders who want EMA-based precision entries with smarter filters for volatility, session timing, and overall market regime.
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.