Home  ›  block algo flex  ›  Documentation  ›  MA Cross

MA Cross

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

SettingDescriptionDefault
MA Cross?Enable/disable the indicatorOff
SourcePrice component for calculationclose
Fast LengthPeriods for the fast moving average50
Slow LengthPeriods for the slow moving average100
MA MethodType of moving average (SMA, EMA, WMA)EMA
TimeframeTimeframe for calculationChart
Buy ConditionCrossover (fast crosses above slow)Crossover
Sell ConditionCrossunder (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.

This is a static view of a single section. For full search and interactivity visit the docs app. Open interactive docs →