DMI and Moving Average Combination Strategy
Overview
This strategy combines the 123 reversal strategy, DMI strategy and moving average strategy to form an effective combination strategy. It can make reverse operations at trend reversal points and follow the trend when the trend continues. Meanwhile, it uses moving average to filter and identify market trend directions to improve strategy win rate.
Strategy Logic
-
123 reversal strategy: go long when close price is higher than previous close for 2 consecutive days and 9-day slow K line is below 50; go short when close price is lower than previous close for 2 consecutive days and 9-day fast K line is above 50.
-
DMI strategy: go long when +DI crosses above -DI; go short when -DI crosses below +DI.
-
Moving average strategy: go long when close price crosses above MA; go short when close price crosses below MA.
-
Open positions when three strategies give consistent signals, otherwise close positions.
The strategy combines trend strategies and reversal strategies, which can capture reversal opportunities and trend-following opportunities. The moving average filter can reduce false signals. Multiple strategies verify each other and improve signal reliability.
Advantage Analysis
-
Combining multiple strategies improves win rate. 123 reversal for catching turning points, DMI for catching trends and MA filter for filtering signals.
-
Combining reversal and trend strategies enables catching reversals and trends flexibly.
-
MA filter reduces false signals from short-term fluctuations.
-
Combining multiple strategies verifies signals and avoids failure of single strategy.
-
Multiple parameters allow optimization for best parameter combination and higher stability.
Risk Analysis
-
Reversal strategies are prone to being trapped in range-bound trends. Combining with trend strategies helps avoid.
-
DMI may miss early trend opportunities. Can shorten DMI parameters to improve sensitivity.
-
MA has lagging effect and may delay signal generation. Can shorten MA period to speed up reaction.
-
Although combining strategies improves win rate, it also increases complexity. Careful testing of parameters is needed.
-
The strategy is sensitive to transaction costs. Should relax stop loss to avoid over-trading.
Optimization Directions
-
Optimize parameters of each strategy to find best combination.
-
Add other indicators like MACD, RSI to filter signals and improve stability.
-
Add stop loss strategies like trailing stop loss to control risks.
-
Optimize position sizing like fixed/dynamic sizing to improve return.
-
Fine tune parameters for specific products to improve adaptiveness.
-
Add machine learning models to assist decisions and improve performance.
Conclusion
This strategy forms a flexible combination system by effectively combining reversal, trend and MA filter strategies. It can capture both reversal and trend-following opportunities, and improves signal reliability through multiple strategies. There is still room for further improvements in parameters, stop loss, position sizing and so on. With skilled application, this practical and expandable strategy can generate considerable profits in live trading.
/*backtest
start: 2023-09-11 00:00:00
end: 2023-09-18 00:00:00
period: 10m
basePeriod: 1m
exchanges: [{"eid":"Futures_Binance","currency":"BTC_USDT"}]
*/
//@version=4
////////////////////////////////////////////////////////////
// Copyright by HPotter v1.0 15/10/2019
// This is combo strategies for get a cumulative signal. - 1
