The relative momentum strategy
Overview
The relative momentum strategy compares the momentum of individual stocks and indexes to judge the relative strength of stocks to the broader market. It buys when the stock momentum is higher than that of the index, and sells when the stock momentum is lower than that of the index, in order to capture the growth peak of individual stocks.
Principles
The core logic of this strategy is to judge the relative strength of individual stocks versus the market, specifically:
- Calculate the return over a period of time as the momentum of the stock
- Calculate index return over the same period as the index momentum
- Use moving average to smooth the stock and index momentum
- When the moving average of stock momentum crosses above that of the index, the stock momentum is considered stronger than the market overall - that is the buy signal
- When the stock momentum moving average crosses below the index momentum moving average, the stock momentum is considered weaker, triggering the sell signal
Through this logic, we can buy into stocks when their growth is thriving and sell out as the growth momentum fades, locking in excess returns during the growth peak period of stocks.
Advantage Analysis
The main advantages of the relative momentum strategy:
- Can dynamically capture the growth peak of stocks without concerning specific market conditions - just buy when the stock growth outpaces the overall market
- Smoothing with moving averages filters out short-term fluctuations and enhances signal reliability
- Simple direct buy and sell conditions, easy to understand and operate
- Flexibility to configure the time period for calculating relative momentum and optimize
Risk Analysis
There are also some risks with the relative momentum strategy:
- Stocks may pullback after growth peak ends, posing insufficient profit-taking risk
- Relative momentum signals can be false, identifying a fake instead of real peak
- Need to set stop loss to control maximum loss
These risks can be managed by reasonable profit-taking, stop losses, parameter tuning etc.
Optimization Directions
The relative momentum strategy can be optimized mainly from the following aspects:
- Test different time periods for computing momentum to find optimum
- Try out different types and lengths of moving averages for best parameters
- Add volume filter to avoid false breakouts due to lack of momentum
- Incorporate other indicators to confirm optimal entry timing
Conclusion
The relative momentum strategy captures the excess growth phases of individual stocks versus the overall market to generate alpha. With its simple, clear buy/sell logic and ease of operation, and when coupled with parameter optimization and risk control, this strategy can perform very well.
/*backtest
start: 2024-01-21 00:00:00
end: 2024-01-28 00:00:00
period: 15m
basePeriod: 5m
exchanges: [{"eid":"Futures_Binance","currency":"BTC_USDT"}]
*/
// This source code is subject to the terms of the Mozilla Public License 2.0 at https://mozilla.org/MPL/2.0/
// © HeWhoMustNotBeNamed
//@version=4- 1

