VALYNOX
VALYNOXSTRATEGY RESEARCH TECHNOLOGY
AlphaPrimeAlphaPrime
ACADEMY / Indicators and signals

Momentum indicator trading: how to test ROC, RSI and MACD on futures

A momentum indicator measures how fast price is changing, not where the trend points. Trade it by writing one fixed trigger and one fixed exit, adding commission and slippage, and running the same rule unchanged on several unrelated futures markets. MACD is trend in its line and momentum in its histogram.

By · Published · updated · Editorial policy

Contents
  1. How do you trade with a momentum indicator?
  2. What do momentum indicators actually measure?
  3. ROC, momentum and RSI: what is the difference?
  4. Is MACD a trend or momentum indicator?
  5. Which entry and exit rules should you test for momentum?
  6. What does a momentum rule look like in a futures backtest?
  7. How do you backtest momentum across markets?
  8. Frequently asked questions
  9. References

How do you trade with a momentum indicator?

Momentum indicator trading means buying when the speed of price change turns up and selling when it turns down. Which trigger to use (a zero cross, a 30/70 level, a signal-line cross) cannot be decided from the chart. Write it as a fixed rule, add commission and slippage, and backtest it on more than one futures market.

A momentum indicator is a line calculated from recent closes that shows how quickly price has moved over a set number of bars. Some traders will disagree with this: the entry trigger you pick matters less than the exit you pair with it and the cost you pay per trade. A momentum entry on its own decides very little. The way to find out what it decides on your market is a backtest with costs, which is the same route the guide to technical analysis tools and indicators you can test recommends for any indicator.

The working order is always the same:

  1. Choose the indicator and its lookback. The lookback is the number of bars the indicator reads, for example 10 bars for momentum or 14 bars for RSI.
  2. Write the entry trigger as a yes-or-no condition. "RSI crosses above 50" is testable. "RSI looks strong" is not.
  3. Write the exit before you look at any result. An opposite signal, a fixed stop, a time stop or a trailing stop; one of these, written down.
  4. Set commission and slippage for the contract you trade.
  5. Run the rule unchanged on several markets and compare the average trade after costs with the cost of one round trip.

What do momentum indicators actually measure?

A momentum indicator measures how fast price is changing over a lookback window, not which way the longer trend points. Think of a car: the trend is the direction on the compass, momentum is the speedometer. A car can still be driving north while the speedometer falls, and it slows down before it stops and turns. That is why a momentum line usually peaks before price peaks and flattens while price is still rising.

This has two practical consequences. First, a momentum turn is an early warning, not a reversal signal: the car has slowed, but it has not turned. Second, a strong trend can keep the indicator pinned near its top or bottom for weeks, because price keeps moving at a steady fast speed. An indicator that stays overbought for a month is reporting a fast, steady rise, not a mistake; the article on what it means when KD or RSI stays stuck overbought shows how to test that situation instead of fading it.

Momentum turns before price: over the same bars, a momentum line peaks while price is still climbing and crosses zero near the later price top, so speed changes before direction does Momentum turns before price Same bars, illustration only Speed top Price top Price Momentum Speed turns before direction does. So: read a turn as a warning.
Momentum peaks while price is still climbing and crosses zero near the price top. Speed changes before direction does.

There is research behind the idea that past speed carries some information. Moskowitz, Ooi and Pedersen (2012) studied a broad set of futures markets and found that the sign of the past twelve-month return was related to the sign of the following month's return in many of them. That is a statement about averages over many markets and decades, measured with specific rules and costs. It tells you the idea is worth testing; it does not tell you what a 10-bar momentum cross does on your contract this year. When recent price moves are close to random, any momentum reading is mostly noise, and the article on measuring market randomness with an entropy indicator explains one way to check for that before you trust a trigger.

ROC, momentum and RSI: what is the difference?

Momentum is the price difference over N bars, ROC is that difference as a percentage, and RSI rescales average gains against average losses onto a fixed 0-to-100 scale, so each one needs a different kind of trigger line. The momentum indicator is the simplest: today's close minus the close N bars ago, in points. The rate of change (ROC) divides that difference by the older close and multiplies by 100, so the reading is a percent. The RSI compares the average size of up closes with the average size of down closes over the lookback and squeezes the result between 0 and 100, with 50 as the neutral point; Wilder (1978) introduced it with a 14-bar lookback, which is still the common default.

The one formula worth keeping in your head is ROC:

ROC = (close now − close N bars ago) ÷ close N bars ago × 100

Here close now is the latest closing price, close N bars ago is the closing price N bars earlier, and the result is a percentage. Dividing by the older close is the whole point: it makes a 1 percent move on a contract trading at 20,000 points equal to a 1 percent move on a contract trading at 5,000 points.

PropertyMomentumROCRSI
What it computesPrice minus price N bars agoThat difference as percent of the older priceAverage gain against average gain plus average loss, scaled 0 to 100
ScalePoints, no upper or lower limitPercent, no upper or lower limit0 to 100
Neutral line0050
Typical triggerZero crossZero cross or a percent threshold30 and 70 levels, or the 50 line
Comparable across marketsNoYesYes
Momentum, ROC and RSI are the same idea on three scales: momentum is in points with a zero-cross trigger and fits one market only, ROC is in percent with a zero-cross trigger, RSI runs 0 to 100 with 30 and 70 levels, and both ROC and RSI work on any market Same idea, three scales Scale sets trigger and portability Momentum ROC RSI Points Percent 0 to 100 Zero cross Zero cross 30 and 70 One market Any market Any market Points don't travel between markets. So: write one rule in % or 0–100.
The same idea on three scales. The scale decides which trigger line makes sense and whether one setting can travel to another market.

Hypothetical example

Suppose one index future trades at 20,000 points and another at 5,000 points, and both rose 200 points over the last 10 bars. Momentum reads 200 on both, which looks like the same event. ROC reads 1 percent on the first and 4 percent on the second, which is a very different event. A rule written as "momentum above 150" would fire on both; a rule written as "ROC above 2 percent" would fire only on the second. If you plan to run one rule on several markets, the percent scale or the RSI scale is the one to write it in.

The scale also changes how a threshold behaves over time. A fixed momentum threshold in points becomes easier to reach as a contract's price level rises, so a rule tuned on data from a lower price level fires more often later for no reason connected to the market. Percent and 0-to-100 scales do not drift in that way.

Is MACD a trend or momentum indicator?

MACD is both, and which one you get depends on the part of it your rule reads. The MACD line is the gap between a fast exponential moving average and a slow one (12 and 26 bars by default). A gap between two averages moves slowly and stays positive for the whole length of an up-move, so the MACD line behaves like a trend-following tool. The histogram is the MACD line minus its signal line (a 9-bar average of the MACD line), which means it shows whether the gap is widening or narrowing. The change in a gap is a speed reading, so the histogram behaves like a momentum indicator.

MACD is trend and momentum: the MACD line stays above zero through the whole rise and reads trend, while the histogram bars, which show the change in that line, turn down much earlier and read momentum MACD is trend and momentum Bars turn while the line stays up Line = trend Bars turn Bars = momentum A histogram rule is a momentum rule. So: name the part your rule reads.
The MACD line is the shaded gap between two averages (trend). The histogram is the change in that gap (momentum), and it turns down while the line is still above zero.
Part of MACDWhat it readsBehaves likeTypical rule
MACD line vs zeroFast average above or below slow averageTrend filterOnly trade long while above zero
MACD line vs signal lineGap turning relative to its own recent averageSlow momentumEnter on the cross
Histogram (MACD minus signal)Whether the gap is widening or narrowingFast momentumEnter when the histogram turns, exit when it turns back

This matters when you write a rule, because a histogram turn can fire many bars before a MACD-line zero cross, and the two fire in different parts of the same move. The slowness of the two exponential averages is the price you pay for a smooth line; the article on the DEMA indicator and how it cuts exponential moving average lag shows what changes when a faster average replaces the standard ones, and why a faster line is not automatically a better one.

Which entry and exit rules should you test for momentum?

Four rule families cover almost all momentum trading, and each one must be paired with an exit written in advance, because the entry alone decides little about the result. The families are zero-line crosses, threshold crosses, signal-line crosses and divergence. They are not four ways of saying the same thing: on one move they fire at different bars and therefore trade different parts of that move.

  1. Threshold cross. The indicator comes back from an extreme, for example RSI crossing up through 30. Fires earliest, often while price is still falling. Usually paired with a fixed stop below the recent low and a target at the neutral line, because a trade entered against the move needs a hard limit.
  2. Zero-line or neutral-line cross. Momentum or ROC crosses zero, or RSI crosses 50. Fires after the turn is under way. Usually paired with the opposite cross as the exit, which makes it a stop-and-reverse rule.
  3. Signal-line cross. The indicator crosses its own moving average, as in the MACD line crossing the signal line. Fires a few bars after the neutral-line cross. Usually paired with the opposite signal-line cross or a trailing stop.
  4. Divergence. Price makes a higher high while the indicator makes a lower high (bearish), or the mirror image (bullish). Divergence is a disagreement between price direction and price speed. Fires latest in the move and needs the most careful definition: how many bars apart the two highs may be, and how much lower the second indicator high must be. Usually paired with a stop above the price high and a time stop.
Four RSI triggers on one hypothetical 50-bar move enter at different bars: the cross up through 30 at bar 12, the cross up through 50 at bar 20, the signal-line cross at bar 24 and the bearish divergence at bar 40, so each trades a different part of the move Same move, four entries Bars into the move, illustration Cross 30 Cross 50 Signal cross Divergence 12 20 24 40 Each trigger trades a different part. So: pair every trigger with its exit.
Four momentum triggers on one move. Each fires at a different bar, so each trades a different part of the move and needs a different exit.

The exit is where most of the result is decided. A zero-cross entry with a stop-and-reverse exit holds through every pullback; the same entry with a tight fixed stop gets taken out by the first pullback and re-enters later at a worse price. Write the exit as part of the rule, not as a setting you add when the first backtest looks weak. Each entry family and each exit type can be written once as a rule family with a range of lookbacks and thresholds, and in AlphaPrime (Valynox) that is what strategy generation takes as its input, so that every candidate the search evaluates already carries an exit and a cost assumption rather than an entry alone.

What does a momentum rule look like in a futures backtest?

Our own run on NQ daily bars shows what a momentum-style oscillator rule produces after commission and slippage, and why one kept candidate must be read as a flattered example. The run used an OSMA rule as a stand-in for the subject of this article: OSMA is the MACD histogram under another name, the MACD line minus its signal line, so it is a momentum reading in the sense of the previous sections, but it is not ROC, plain momentum or RSI. The run tested NQ (E-mini Nasdaq-100 futures) on daily bars from 2019-01-02 to 2025-06-30, long and short, one contract, with the OSMA rule as the only entry and exit, no stop, no target and no filters, charging $20 commission and $10 slippage per trade.

Source: AlphaPrime product engine (CPU), run 2026-10-31. NQ daily bars, 2019-01-02 to 2025-06-30, long and short, 1 contract, $20 commission and $10 slippage per trade.

NumberResult
Net profit (closed trades)$133,935
Max drawdown$46,600
Trades213
Win rate54.93%
Profit factor1.418
Average trade$628.8
Time in market22.69%

The important sentence about this table is how the candidate was chosen. The search tried 1,024 candidates (the count recorded in the run) and kept this one for its return against its drawdown. Picking the best of many after the fact flatters the kept one: part of its result is the rule and part is the luck of which setting happened to fit these six and a half years. Nothing here says that OSMA, or any momentum rule, earned this money, and nothing here says a reader can expect it. The article on why the best backtest in a search is usually inflated explains how large that selection bonus tends to be.

Look at where the drawdowns sit relative to the climb, and whether the slope changes at the marked out-of-sample stretch.
Look at where the drawdowns sit relative to the climb, and whether the slope changes at the marked out-of-sample stretch. NQ · daily · 2019-01-02 to 2025-06-30 · CPU engine backtest
Illustration of average trade after costs by lookback: on the left, lookbacks 8 to 16 all give similar positive results, a plateau to keep; on the right, only lookback 14 is high while its neighbours are near zero, a spike to reject A plateau beats a spike Illustration: average trade by lookback Plateau: keep Spike: reject 8 12 16 20 24 10 14 18 A range of good settings is evidence. So: keep plateaus, drop spikes.
The headline numbers of the stand-in run in the product's own report; compare the trade count and period with the table above. NQ · daily · 2019-01-02 to 2025-06-30 · CPU engine backtest

What the table can teach, read as an example, is the shape of a momentum-style rule on daily bars. Time in market of 22.69% means the rule was flat about three quarters of the time, which is typical when a histogram turn is both the entry and the exit: it holds the fast part of a move and steps aside in between. The 213 trades over the period give an average trade of $628.8 after the $30 per-trade cost, so the cost was a small share of each trade here; a rule on 5-minute bars with the same cost would have a far thinner margin. The win rate of 54.93% with a profit factor of 1.418 says the result came from winners being somewhat larger than losers, not from a high hit rate. The max drawdown of $46,600 against one contract is the number to set your account size by, not the net profit.

How do you backtest momentum across markets?

Run the same rule with the same settings on several unrelated futures markets, compare the average trade after costs with the round-trip cost on each, and keep only a rule whose neighbouring settings behave alike on most of them. The round-trip cost is commission plus slippage for one entry and one exit together. A rule that only works on one market with one setting is more likely a description of that market's history than a repeatable effect, and Park and Irwin (2007), reviewing decades of studies of technical rules, found that reported results vary a great deal with market and period and that many studies did not account for how many rules had been tried before the reported one.

The cross-market test in order: write the rule and exit, fix lookback and trigger, set costs per market, run unchanged on four unrelated markets, ask whether it beats costs on most of them, then drop the rule if not or check neighbouring settings if so Set the pass rule first Same rule, four unrelated markets Write rule and exit Fix lookback and trigger Set costs per market Run on 4 unrelated markets Beats costs on most? No: drop rule Yes: check neighbours
The cross-market test in order. The decision rule at the diamond is written before any result is seen.
  1. Write the rule and the exit in the percent or 0-to-100 scale, so one setting means the same thing on every market.
  2. Fix the lookback and the trigger and write them down. They do not change between markets.
  3. Set commission and slippage per market. Each contract has its own tick value, so the same one-tick slippage is a different dollar amount on each.
  4. Run unchanged on four unrelated markets, for example an equity index, a bond, an energy and a metal. Unrelated matters: two equity indices move together, so passing on both is close to passing on one.
  5. Compare average trade after costs with round-trip cost on each market. Decide in advance how many of the four must be positive.
  6. Look at the neighbouring settings too. Run the lookback a few bars shorter and longer and the threshold a few units higher and lower. A rule that passes at 14 and fails at 12 and 16 passed by luck; the article on telling a parameter plateau from a lucky spike covers how to read that surface.

Hypothetical example

Suppose an RSI-50 cross rule with a 14-bar lookback, run unchanged on four markets with a $30 round-trip cost on each, gives an average trade after costs of $180 on the index, $40 on the bond, −$25 on the energy and $95 on the metal. Three of four are positive, and the bond's $40 is barely above the $30 cost, so a small rise in slippage would turn it negative. Under a rule written in advance that requires three positive markets, the rule moves to the neighbouring-settings check; under a rule that also requires each positive market to clear twice its round-trip cost, the bond fails and only two markets pass, and the rule is dropped. The decision depends on the standard you wrote before looking, which is why it must be written first.

The next thing to do is pick one trigger from the four families, pair it with one exit, and run it with your real commission and slippage on four unrelated futures markets you have daily data for. Write down, before the run, how many markets must show an average trade after costs above twice the round-trip cost. Then compare that number with what comes back.

Frequently asked questions

What is the difference between a momentum indicator and a trend indicator?

A trend indicator, such as a moving average, tells you which way price has been going. A momentum indicator tells you how fast it has been going over a lookback window. Speed changes before direction does, so a momentum line usually turns before a moving average does, and it can stay near its extreme for a long time while a steady trend continues.

Which momentum indicator is best for futures?

No single one tests best across markets, because ROC, plain momentum and RSI measure the same idea on different scales. For a rule you want to run on several contracts, ROC or RSI is more practical than plain momentum, since a percent or 0-to-100 reading means the same thing at any price level. The choice of exit and the cost per trade usually change the result more than the choice between these three.

What is a good setting for a momentum indicator?

Common defaults are 10 or 12 bars for momentum and ROC and 14 bars for RSI, and they are reasonable starting points because they are widely used, not because they are optimal. Test the setting a few bars shorter and longer. If the result changes sharply between neighbouring settings, the setting that looked good was a lucky spike rather than a plateau.

Can you trade with a momentum indicator alone?

You can write a complete rule from one momentum indicator, for example entering on an RSI cross of 50 and exiting on the opposite cross. Whether it holds up after commission and slippage is a question for a backtest on more than one market, not for the chart. Most momentum rules that pass such a test do so with a clearly defined exit and a cost per trade that is small compared with the average trade.

References

  • Wilder, J. W. (1978). New Concepts in Technical Trading Systems. Trend Research.
  • Moskowitz, T. J., Ooi, Y. H., & Pedersen, L. H. (2012). Time Series Momentum. Journal of Financial Economics, 104(2), 228–250.
  • Park, C.-H., & Irwin, S. H. (2007). What Do We Know About the Profitability of Technical Analysis? Journal of Economic Surveys, 21(4), 786–826.