Momentum Rotation Stock Trading Strategy
Overview
This strategy adopts momentum rotation to determine market trends based on the Stoch RSI indicator, and implement stock rotation trading. It goes short when the indicator shows overbought and goes long when it shows oversold. At the same time, the position size is increased in the trend direction using pyramid trading.
Strategy Logic
- Calculate the RSI with length of 14 periods
- Calculate the Stoch RSI based on RSI, with Stochastic Length 14, Smooth K 3, and Smooth D 1
- Go long when Stoch RSI rises from oversold into overbought
- Go short when Stoch RSI falls from overbought into oversold
- Use pyramid trading to add position up to 5 times
- Set stop loss and trailing stop after each add
- Reduce position when stop loss is triggered
- Manage positions based on stop loss and trailing stop
Advantage Analysis
The advantages of this strategy are:
- Based on momentum indicator, it can capture trend reversal timely and adjust position direction accordingly.
- Pyramid trading allows taking early position with small size and adding to it as trend confirms, fully capturing trend profits.
- Stop loss controls risk. Initial stop filters noise and trailing stop locks profits.
- RSI optimization space is big, parameters can be adjusted for different markets.
- Flexible add times, size and stops adapts well to different market conditions.
Risk Analysis
Some risks to note:
- Relying solely on Stoch RSI leaves it vulnerable to sudden events. Confirm with other indicators.
- Only applies to strongly trending products. Avoid choppy sideways markets.
- Excessive adds may lead to amplified losses. Control add depth.
- Improper stop loss setting may cause overstop. Adjust stops based on market.
- Monitor transaction costs. High frequency trading generates heavy commissions.
Optimization Directions
Some ways to optimize the strategy:
- Optimize RSI Length parameter for best fit.
- Optimize Stoch K and D periods for smoother signals.
- Add other indicators to filter signals and avoid false trades.
- Dynamically adjust add times based on market conditions.
- Optimize stop loss logic to lower stop rate.
- Add position sizing module based on money management.
- Include commission control to limit high-frequency trading.
Conclusion
The strategy adopts a mature momentum rotation concept, with Stoch RSI as core trading indicator, complemented by pyramid trading and stop management for risk control. It is a reliable trend following strategy. Further optimizations on parameters and modules can enhance its stability and adaptability. But overall, it already has strong real-trading capabilities.
/*backtest
start: 2023-09-11 00:00:00
end: 2023-09-13 13:00:00
period: 5m
basePeriod: 1m
exchanges: [{"eid":"Futures_Binance","currency":"BTC_USDT"}]
*/
// This script was created for educational purposes only.
// © mcristianrios
// FEEL FREE TO DROP A COMMENT AND A LIKE IF YOU USE IT OR IT SERVES YOU WELL- 1
