Level 3: Professional Complete trading strategies Lesson 4 of 6

Moving Average Strategy: Trend Following Guide

BullMarkets.Today Support BullMarkets.Today Support 29 Nov 2026 7 min read 14 0

The moving average strategy looks like the simplest thing in trading, which is exactly why it is so often misunderstood. It is not "two lines cross, so you buy." It is a complete trend following framework: an objective definition of the trend, entry and exit rules, position size tied to risk, and a test that proves it has a statistical edge. In the previous lesson we covered the bounce-from-support strategy. Now we move to the opposite approach: instead of betting on a reversal, we ride the move that is already underway. In the next lesson we will look at how to combine indicators without duplicating information.

What is the philosophy behind a moving average trend following strategy?

Trend following strategies do not try to predict, they react. They accept entering late and exiting late in exchange for capturing the bulk of the rare, large moves. That shapes their typical results:

  • Low to moderate win rate, often between 35% and 45%.
  • High reward-to-risk ratio: winners are large and losers are small.
  • Frequent losing streaks in sideways markets, which test your discipline more than they test the strategy.

If you cannot accept this profile psychologically before you start, you will not follow the rules when a losing streak arrives.

How do you build the strategy rules step by step?

1. Define the trend

We use the 20 and 50 simple moving averages. The trend is up when the faster average is above the slower one, both slope upward, and price closes above the slower average. The slope matters as much as the order: two tangled, nearly flat averages mean a market with no trend.

2. Entry rule

There are two main approaches:

  • Crossover entry: the 20 crosses above the 50. It is relatively early but produces many false signals.
  • Pullback entry within the trend: once the order is established, the trader waits for price to return toward the 20 or the zone between the two averages, then for a confirmation candle that closes in the trend direction. This is usually better because the stop is closer and the reward-to-risk is higher.

3. Filters

Filters are what turn a naive rule into a viable strategy:

  • Slope filter: do not enter if the 50-period average is nearly flat.
  • Distance filter: require the gap between the two averages to exceed a minimum tied to volatility, such as a fraction of the Average True Range (ATR), to avoid crossovers in noise.
  • Higher timeframe filter: do not buy on the daily chart unless the weekly is rising, applying what we learned in multi-timeframe analysis.
  • Volume filter: rising volume when the trend resumes adds credibility to the move.

4. Stop loss and exit

Common stop options: below the most recent swing low, or a fixed ATR multiple (for example 2x ATR) below the entry price. For exits: a close below the 50, a reverse crossover, or a trailing stop that follows the trend highs. Do not set a close, fixed profit target, because that removes the strategy's core advantage: letting profits run.

5. Position sizing

Calculate size from risk, not excitement: position size = amount risked ÷ distance to the stop. A purely hypothetical example: an account of 10,000 units, 1% risk (100 units), and a stop 2 units from entry gives a size of 50 shares. These numbers are for illustration only.

What does the strategy look like on the chart?

In the next image, the 20 and 50 averages are plotted over the candles. The faster 20 hugs price, while the slower 50 represents the medium-term trend line. First notice the order and slope of the two lines: spread apart and sloping in the same direction means a healthy trend, while overlapping and flat means a zone to avoid.

The 20 and 50 moving averages on the daily chart أمانات القابضة (AMANAT) — SMA 20 = 1.602, SMA 50 = 1.5627 — last close 1.61 on 2026-11-27

Look in the image for the points where the lines cross and compare them with what price did afterward: did the move continue, or did the cross quickly reverse? Also notice how price behaves when it approaches the 20 during the trend. These are the pullback entry zones.

The second image adds volume and a closer look at the candles to evaluate the confirmation candle.

Recent candles up close to evaluate how price reacts to the trend أمانات القابضة (AMANAT) — last close 1.61 on 2026-11-27

The candles here show what happens when price touches the average: a candle with a long lower wick that closes near its high signals rejection of the decline, while a large candle closing below the average warns of a weakening trend. The accompanying volume shows how serious the move is.

How do you apply it with BullMarkets tools?

  1. Open My Strategies and define the conditions: the order of the two averages, the slope filter, the pullback condition, and the ATR-multiple stop, then backtest it on a long historical dataset.
  2. In the backtest results, review: number of trades, win rate, average win-to-loss ratio, maximum drawdown, and longest losing streak. A trend following strategy with fewer than a few dozen trades is not enough to judge.
  3. Use the Technical Scanner to find stocks that meet the trend and pullback conditions right now, instead of watching manually.
  4. Follow the Signal Log to compare actual results with backtest results; a large gap between them points to an execution problem or flawed assumptions.

How do you test the strategy without fooling yourself?

  • Out of sample: develop the rules on one period and test them on a period you did not use.
  • Parameter stability: if only 20/50 works and 18/55 or 22/45 do not, that is overfitting, not a real edge.
  • Market diversity: try it on several instruments and on bull, bear, and sideways market regimes.
  • Costs: include commissions and slippage, which badly hurt strategies with many trades.
  • Maximum drawdown: ask whether you can tolerate it psychologically and financially, not just whether the final profit is positive.

What are the common mistakes in a moving average strategy?

  • Trading crossovers in a sideways market with no filter.
  • Changing the moving average periods after every loss in search of the perfect combination.
  • Exiting a winning trade early out of fear, then chasing the entry after the move.
  • Moving the stop further away to avoid taking the loss.
  • Ignoring correlation between stocks: several trades in correlated stocks are effectively one trade with multiplied risk.
  • Judging the strategy after five trades.

Frequently asked questions

What are the best moving average settings?

There are no magic numbers. 20 and 50 are common and practical for the daily timeframe. What matters most is that results stay stable around neighboring values.

Should I use a simple or exponential moving average?

The EMA reacts faster and is noisier, while the SMA is smoother and slower. Choose based on testing, and do not mix them without a reason.

Does the strategy work in sideways markets?

No, and this is its well-known weakness. Filters reduce the damage but do not eliminate it, and you must accept small, repeated losses as the price of the big moves.

How many trades do I need to evaluate it?

At least thirty trades in the backtest is preferable. The more trades, the greater the confidence, especially if they cover different market regimes.

Summary

  • A trend following strategy accepts a low win rate in exchange for large profits.
  • Define the trend by the order and slope of the averages, not by the crossover alone.
  • Pullback entries are usually better than crossover entries.
  • Filters, an ATR-based stop, and calculated position size are the core of the strategy.
  • Test out of sample with realistic costs, and confirm that parameters are stable.
  • Next lesson: how to combine indicators without repeating the same information.
This content is for educational purposes only and is not a recommendation to buy or sell. The numerical examples are hypothetical, and trading involves risk.
#moving_average_trading_strategy #moving_average_strategy #trend_following_strategy #20_50_moving_average_crossover #moving_average_crossover_strategy #how_to_trade_with_moving_averages #best_moving_average_settings #trend_following_entry_and_exit_rules #backtest_moving_average_strategy #ATR_stop_loss_trend_following
Learned the method? Let pro tools apply it for you
Instant buy and sell signals, trading opportunities with entry, targets and stop-loss, a technical scanner and auto-detected chart patterns on your market — in one place.
Start your free trial
Comments

No comments yet.