Scalping Trading Strategy Based on Double Moving Average
Overview
This is an oscillation trading strategy based on double moving averages. It uses the crossover of fast and slow moving averages as buy and sell signals. When the fast MA crosses above the slow MA, a buy signal is generated. When the fast MA crosses below the slow MA, a sell signal is generated. This strategy is suitable for range-bound markets and capturing short-term price fluctuations.
Strategy Logic
The strategy uses a 6-period RMA as the fast MA and a 4-period HMA as the slow MA. It judges price trends and generates trading signals based on the crossover between the fast and slow lines.
When the fast line crosses above the slow line, it indicates a short-term trend change from decline to rise, which is a timing of chip transfer. Hence a buy signal is generated. Conversely, when the fast line crosses below the slow line, a sell signal is generated.
In addition, long-term trend judgments are made to avoid trading against the trend. Actual buy/sell signals are only generated when the long-term trend aligns with the signal.
Advantages
The advantages of this strategy include:
-
The double MA crossover effectively identifies short-term reversal points.
-
The fast and slow MA lengths are reasonably combined to produce accurate signals.
-
Long/short-term trend filtering removes most false signals.
-
Take profit and stop loss logic actively manages risks.
-
It is easy to understand and implement, suitable for beginners.
Risks and Solutions
There are also some risks:
-
Prone to multiple small profits but one huge loss. Fine tune TP/SL levels.
-
Frequent trading under range-bound markets. Relax trading conditions.
-
Overfitting parameters. Robustness test needed.
-
Underperforms under trending markets. Add trend module or combine with trend strategies.
Optimization Directions
Some directions to optimize the strategy:
-
Upgrade MAs with adaptive Kalman filters etc.
-
Add ML model to improve signal accuracy.
-
Add capital management module to automate risk control.
-
Combine with high-frequency factors for stronger signals.
-
Cross-market arbitrage across products.
Conclusion
In conclusion, this double MA strategy is a typical and practical quant strategy. It has good adaptivity for beginners to learn from, meanwhile has great potential to optimize further with more quant techniques for better results.
/*backtest
start: 2023-12-31 00:00:00
end: 2024-01-07 00:00:00
period: 3m
basePeriod: 1m
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/
// © dc_analytics
// https://datacryptoanalytics.com/
- 1

