Type/to search

Stochastic Momentum Strategy

Common strategy
Created: 2024-01-22 10:13:23
Last modified: 3 years ago
1
Follow
1802
Followers

img

Overview

The Stochastic Momentum Strategy is a quantitative trading strategy that combines the Stochastic Momentum Index (SMI) and the Relative Strength Index (RSI). It uses the SMI to identify overbought and oversold areas in the market, with the fast RSI acting as a signal filter. It also implements a body filter for more reliable signal selection.

Strategy Principles

Stochastic Momentum Index

The Stochastic Momentum Index (SMI) is a common technical indicator used in quantitative trading that combines the strengths of momentum and oscillation indicators.

Specifically, the SMI is calculated as:

SMI = (Close - (HH + LL)/2)/(0.5*(HH - LL)) * 100

where HH is the highest price over the past N days, and LL is the lowest price.

So the SMI incorporates both the trend-following judgment of momentum and the reversal judgment of oscillation. Values above 80 are considered overbought, while values below 20 are oversold. The strategy generates trading signals when SMI reaches these overbought or oversold levels.

Fast RSI

The Relative Strength Index (RSI) is a standard overbought/oversold indicator. This strategy uses a fast RSI with a period of 7 to judge short-term overbought/oversold conditions.

Readings below 20 are considered oversold, while those above 80 are deemed overbought per the fast RSI. Signals are generated when these thresholds are breached.

Body Filter

The strategy also implements a body filter by checking the candlestick body size to filter certain signals. Only bodies exceeding a set threshold will trigger trades.

This filters out some false signals and increases reliability.

Advantages

Multi-Indicator Combo

This approach combines the SMI, fast RSI, and body filter into a robust 3-part system. Using multiple integrated signals improves accuracy and enhances stability.

Overbought/Oversold Detection

Both SMI and fast RSI are excellent for detecting exhausted trends. By trading mean-reversions from these overextended areas, the strategy adheres to buying low and selling high.

Two-Way Trading

The ability to both buy dips and short rallies maximizes opportunities across market conditions.

Risk Control

The body filter avoids whipsaws by rejecting low-conviction signals in choppy conditions.

Risks

Whipsaws

Frequent long/short switching brings whipsaw risk. Optimizing logic could minimize this.

Crowded Trades

Signals may cluster market participants and spur quick reversals upon entry. Fine-tuning parameters could reduce herding risk.

Black Swans

Extreme events can upend all models. Intelligent stop losses are necessary to control systematic risks.

Enhancements

Parameter Optimization

Testing different SMI/RSI periods and body filter thresholds could uncover optimal values for higher returns.

Dynamic Stops

Incorporating volatility-based or ATR stops would better contain position and portfolio risk.

Machine Learning

Models predicting future indicator levels could identify turning points earlier. This would enhance predictive power.

Conclusion

In summary, by integrating the SMI, fast RSI, and body filter, this strategy has created a fairly comprehensive overbought/oversold system. The multi-signal approach improves accuracy, while two-way trade capability and risk controls contribute to balance. With continual parameter and model optimization, it shows promise for capturing gains over the long run.

Source
Pine
/*backtest
start: 2023-12-22 00:00:00
end: 2024-01-21 00:00:00
period: 1h
basePeriod: 15m
exchanges: [{"eid":"Futures_Binance","currency":"BTC_USDT"}]
*/

//Noro
//2018

//@version=2
Strategy parameters
Strategy parameters
Long
Short
Use Martingale
Capital, %
Use SMI Strategy
Use RSI Strategy
Use Body-Filter
SMI Percent K Length
SMI Percent D Length
SMI Limit
From Year
To Year
From Month
To Month
From day
To day
Comment
All comments (0)
No data
No data
  • 1
Forums
PINE Language
Get the app
iPhone Download
© 2015 - ∞ INVENTOR PTE LTD (SG)