← Back to Home
Trading Strategy
⚑

Momentum Trading Strategy

Buy the strongest assets, sell the weakest β€” let relative strength guide you.

Start Automating Free β†’

Want to automate this strategy? Try auto-Trading free β€” no credit card required.

Momentum Trading Strategy chart

Overview

What is Momentum Trading Strategy?

Momentum trading is based on the empirical observation that assets which have performed well recently tend to continue outperforming in the near term, and vice versa. This "momentum effect" is one of the most consistently documented anomalies in financial markets, identified across equities, currencies, commodities, and crypto.

The strategy comes in two forms. Cross-sectional momentum ranks a universe of assets by recent return (e.g., 12-month return minus the most recent month) and buys the top decile while selling or avoiding the bottom decile. Time-series (absolute) momentum, popularised by AQR Capital, simply buys an asset if its recent return is positive and sells or holds cash if it is negative.

Key momentum indicators include: Rate of Change (ROC), which measures percentage price change over N periods; Relative Strength (not RSI, but comparing asset return to a benchmark); and moving average momentum (price above a long-period moving average = positive momentum). MACD and the Awesome Oscillator also serve as momentum indicators.

Momentum strategies are subject to "momentum crashes" β€” sharp, fast reversals that occur when market regimes change suddenly. Proper risk management uses volatility targeting to reduce position size when volatility spikes, and mean-reversion filters to avoid entering at extreme overextension.

How It Works in auto-Trading

Automate It

auto-Trading's momentum module calculates 1-month, 3-month, 6-month, and 12-month returns for all instruments in your portfolio universe and ranks them dynamically. The bot rebalances the portfolio at a configured frequency, buying the top-ranked assets and reducing or exiting the bottom-ranked ones. Volatility-adjusted position sizing ensures each asset contributes equal risk.

Try Free β†’

Strategy Code

Pick a script below, copy it, and use it on your chart.

Pine Script (TradingView)

This is a TradingView Pine Script strategy example for this page concept. Paste it into the TradingView Pine Editor, add it to your chart, and run it in the Strategy Tester.

//@version=6
strategy("Momentum Trading Strategy", overlay=true)
fastLen = input.int(20, "Fast Length")
slowLen = input.int(50, "Slow Length")
fast = ta.ema(close, fastLen)

Get full strategy code access

Enter your email address and full name to unlock this strategy code.

ThinkScript (thinkorswim)

This is a thinkorswim ThinkScript strategy example for this page concept. Open thinkorswim, create a custom strategy, paste the script, and apply it to your chart.

input length = 10;
def mom = Momentum(length = length);
def trend = ExpAverage(close, 50);
def buySignal = mom > 0 and close > trend;
def sellSignal = mom < 0 or close < trend;

Get full strategy code access

Enter your email address and full name to unlock this strategy code.

Ready to automate Momentum Trading Strategy?

Join thousands of traders who use auto-Trading to execute this strategy automatically, 24/7.

Get Started Free β†’

All Strategies & Signals

Continue Learning

Trading Strategies

Trading Signals & Indicators