September 23, 2026

S&P 500 Momentum Strategy

Stock Index Momentum Trading Strategy to take advantage of intra-day bullish momentum

S&P500 Trading - Momentum Strategy

Stock Index Strategies

This season, we'll show you how to apply automated trading strategies to the stock index market. We know that index futures trading has become incredibly popular, and just like any market, there are plenty of opportunities to automate successful trading strategies using Profectus AI. 

In this first episode of the new season, we are going to build a very active day-trading strategy for the S&P 500 index. It’s a momentum strategy that works for both longs and shorts. In this particular example, we are going to focus on the long-side only to keep it simple. 

Disclaimer: Templates are for educational purposes only!

👉 Get the S&P 500 Momentum Strategy Template → Template Link

This template is designed to run on the 5-minute timeframe.

You might also want to watch the full YouTube video on this strategy here to get the full explanation of the strategy.

What Is a Momentum Strategy?

The idea of momentum trading is to try to hop into a strong move while there is some evidence that the move is strong. We have talked a lot about breakout strategies before, which focus on getting in early before the move is confirmed. Momentum is what follows when the initial breakout is confirmed, and the move already has some strength to it. 

For this particular strategy we will be building together in a bit, we look at 2 things to determine whether momentum is there:

1. A rising EMA
2. A minimum price increase over x period

These are 2 very simple indications, when confirmed, that the market has found its direction and is moving strongly. 
Now, let’s get into building this momentum strategy.

The S&P 500 Momentum Strategy

SP500 Index Momentum Strategy
S&P 500 Index Momentum Strategy Trade Example

The S&P 500 Momentum Strategy is built to trade strong bullish momentum during the US session. Instead of buying randomly into every move higher, the strategy first checks if price is above the 50 EMA, if the 50 EMA is rising, and if the recent price increase is strong enough.

After that, the system waits for a small bearish pullback candle before entering a buy trade. This makes the setup a momentum-continuation strategy, but with a cleaner entry than simply buying every breakout candle.

Let’s go through the exact strategy rules step-by-step:

  1. Only trade during 16:45-20:59 (EU time, 15 minutes after NY Open)
  2. We check if the previous candle closes above the 50-period EMA.
  3. We check if the 50-period EMA is rising by comparing the current EMA value with the EMA value from 4 candles ago.
  4. Check if price has increased over the past hour (12 candles on the 5-minute)
  5. Wait for a bearish candle.
  6. We check that there are no open trades.
  7. We check that there is no high-impact news nearby.
  8. We open a buy trade with a fixed stop loss of 30 points and a target of 50 points.
  9. All open trades are closed at the end of the trading day
  10. If high-impact news is coming, we close all open trades just before the news hits.

Very easy to build and very clear rules to follow. 

Building the S&P 500 Momentum Strategy in Profectus AI

Building the S&P 500 Momentum Strategy in Profectus AI
  1. Initiate the Variables. There are 2 main variables needed for this system. Create the following variables with default values of 0:

    Price_Increase
    Trade_Count

  2. Start with a Run Per Candle block and attach it to a Run In Session block. Set the time in the Session block to:

    16:45-20:59

  3. Check if price is above the 50 EMA. Connect a Trade Rule block and check:

    Candle Close Candle ID 1 > Moving Average Period 50 Exponential

  4. Check if the 50 EMA is rising. Connect another Trade Rule block and check:

    Moving Average Period 50 Exponential Candle ID 1 > Moving Average Period 50 Exponential Candle ID 4

  5. Calculate the recent price increase. Connect a Formula block and calculate:

    Price_Increase = Candle Close Candle ID 1 - Candle Close Candle ID 13

  6. Check if the price increase is large enough. Connect a Trade Rule block and check:

    Price_Increase > Candle Close Candle ID 1 * 0.03

  7. Check if we are within the max trades per day. Connect a Trade Rule block and check:

    Trade_Count < 3

  8. Check if Candle ID 1 is bearish. Connect another Trade Rule block and check:

    Candle Close Candle ID 1 < Candle Open Candle ID 1

  9. Check for no open trades. Connect a Count Trades block and set:

    Open trades = 0

  10. Check if there is news coming soon. Connect the News Filter block and set the desired window where you don’t want to open new trades around high-impact news. By default, this strategy avoids opening trades 10 minutes before high-impact news.

  11. Buy Now. Connect the Buy Now block and use the following settings:

            Stop Loss = 300 fixed pips (30 full points)
            Take Profit = 500 fixed pips (50 full points)
            Auto-Close Trade = End of day
            Money Management = 0.1 fixed volume by default

  1. Increase the trade counter. After the Buy Now block, connect a Modify Variable or Formula block and put:

            Trade_Count = Trade_Count + 1

  1. Reset the variables end of day. Take a Run at Time block and set it to 20:59. Connect a Modify Variable block and reset:

            Trade_Count = 0
            Price_Increase = 0

  1. Add the news close module. In a new tree, start with a Select Trades block and select the open buy trades.

  2. Check for upcoming news. Connect the News Filter block and set it to check if high-impact news is coming within 10 minutes.

  3. Close open trades. Connect a Close Trades block and close 100% of the selected trades before the news event.

Get Access to the S&P 500 Momentum Strategy

Want to see how the S&P 500 Momentum Strategy works when fully automated?

Access the automation template used to turn this trading concept into a deployable MQ5 trading bot inside Profectus AI. The template includes the entry logic and the trade close module. It’s ready for testing!
You can test it on different symbols such as NASDAQ, adjust the timeframe, change the session window, and change the floating parameters for entering and exiting the trade. 

Disclaimer: Templates are for educational purposes only!

👉 Get the S&P 500 Momentum Strategy Template → Template Link

This template is designed to run on the 5-minute timeframe