MA Cross (Moving Average Crossover)
The MA Cross indicator detects when a fast moving average crosses above or below a slow moving average — one of the most widely used trend-following signals in technical analysis.
How it works: Two moving averages of different lengths are calculated. When the fast MA crosses above the slow MA ("golden cross"), it signals bullish momentum. When the fast MA crosses below ("death cross"), it signals bearish momentum.
Resources: TradingView MA docs
Settings in block algo flex
| Setting | Description | Default |
|---|---|---|
| MA Cross? | Enable/disable the indicator | Off |
| Source | Price component for calculation | close |
| Fast Length | Periods for the fast moving average | 50 |
| Slow Length | Periods for the slow moving average | 100 |
| MA Method | Type of moving average (SMA, EMA, WMA) | EMA |
| Timeframe | Timeframe for calculation | Chart |
| Buy Condition | Crossover (fast crosses above slow) | Crossover |
| Sell Condition | Crossunder (fast crosses below slow) | Crossunder |
Common Configurations
- Fast scalping: Fast = 9, Slow = 21 (quick signals, more noise)
- Swing trading: Fast = 50, Slow = 100 (balanced responsiveness)
- Position trading: Fast = 50, Slow = 200 (fewer signals, higher conviction)
Pro Tip: EMA is generally preferred over SMA for the MA Cross because it responds faster to recent price changes. However, SMA crossovers produce fewer false signals in choppy markets.