NursoftAI
schoolLearning Center
Sign InStart Trading Free

Learn

rocket_launchGetting StartedschoolTrading BasicspsychologyStrategieshistoryBacktestingsmart_toyPaper TradingshieldRisk Managementmenu_bookGlossary
Ready to Trade?

Put your knowledge into practice with $100K virtual capital.

Create Free Account
Learnchevron_rightStrategieschevron_rightSMA Crossover
show_chart

SMA Crossover

Buy when a fast moving average crosses above a slow one

Beginnerplay_arrowTry in Backtesting

What Is This Strategy?

The SMA (Simple Moving Average) Crossover is one of the oldest and most widely used trading strategies. It works by comparing two moving averages of different lengths to identify trend changes.

How It Works

  1. Calculate a short-term moving average (e.g., 10-day SMA)
  2. Calculate a long-term moving average (e.g., 50-day SMA)
  3. When the short SMA crosses ABOVE the long SMA = Buy Signal (Golden Cross)
  4. When the short SMA crosses BELOW the long SMA = Sell Signal (Death Cross)

SMA Crossover - Decision Flow

Visual representation of the strategy logic

Market Open
Condition

Calculate Fast SMA (10) & Slow SMA (50)

Fast SMA > Slow SMA?

NoYes

Previously below?

NoYes
Entry

BUY Signal

Golden Cross detected

Previously above?

NoYes
Exit

SELL Signal

Death Cross detected

Action

Wait for next bar

Press enter or space to select a node. You can then use the arrow keys to move the node around. Press delete to remove it and escape to cancel.
Press enter or space to select an edge. You can then press delete to remove it or escape to cancel.
Condition Check
Buy Signal
Sell Signal
Action

Key Parameters

Fast Period
The shorter moving average period
10
Slow Period
The longer moving average period
50

When to Use

check_circle

Best For

  • • Trending markets
  • • Medium to long-term trading
  • • Stocks with clear trends
cancel

Avoid When

  • • Choppy, sideways markets
  • • Very short timeframes
  • • High-frequency trading

Risks & Limitations

warning

Be Aware

  • • Lags behind price - signals come late
  • • Whipsaws in sideways markets cause false signals
  • • Works poorly in range-bound conditions

Example Trade

Scenario

AAPL has been in a downtrend. The 10-day SMA crosses above the 50-day SMA.

BUY
Reasoning

The crossover suggests the short-term momentum has shifted bullish and a new uptrend may be starting.

Ready to Test This Strategy?

Backtest this strategy on historical data to see how it would have performed.

play_arrowOpen Backtesting
arrow_backAll StrategiesLearn Backtestingarrow_forward

Ready to Apply What You've Learned?

Start paper trading with real market data and test your strategies risk-free.

Get Started FreeExplore Strategies