Erdica MA Cross with Flags
Four moving averages, confirmed crosses, anchored VWAP and bull / bear flag pattern detection.
What it shows
Erdica MA Cross with Flags plots up to four moving averages of the same type and marks the crosses between neighboring lines once the bar has closed. It adds an anchored VWAP and an optional detector of bull and bear flags based on a regression channel and a trend filter.

Example only, not advice
Charts by TradingView
How to read it
- Line order and slope describe the trend context; cross markers are timing references.
- A triangle marks MA1 / MA2, a circle MA2 / MA3 and a diamond MA3 / MA4.
- A dotted channel is a flag still forming; a solid channel with a label is a confirmed breakout.
- Labels, colors, zones, levels and alerts describe a technical condition observed at bar close. They are not orders, recommendations or forecasts.
Main settings
- Moving-average type (SMA, EMA, WMA, TEMA, HMA, ALMA, McGinley) and four lengths (9, 21, 50, 100 by default)
- VWAP anchor (trading day, 09:30 ET, week)
- Flag settings: pole height (× ATR), flag length, maximum retracement, trend filter
- Instrument Profile and Timeframe Profile
- Alert hours (New York time), 18 named alerts and one dynamic alert
Limits
- Moving averages lag price by construction; a cross confirms a move that has already started.
- Crosses are frequent in sideways markets.
- The VWAP is hidden on daily, weekly and monthly charts.
At a glance
- ID
- 0603
- Family
- Trend
- Access
- Free
- Status
- Available on TradingView
- Pine Script
- v6