Type/to search

Scalping Trading Strategy Based on Double Moving Average

Common strategy
Created: 2024-01-08 16:29:21
Last modified: 3 years ago
1
Follow
1802
Followers

img

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:

  1. The double MA crossover effectively identifies short-term reversal points.

  2. The fast and slow MA lengths are reasonably combined to produce accurate signals.

  3. Long/short-term trend filtering removes most false signals.

  4. Take profit and stop loss logic actively manages risks.

  5. It is easy to understand and implement, suitable for beginners.

Risks and Solutions

There are also some risks:

  1. Prone to multiple small profits but one huge loss. Fine tune TP/SL levels.

  2. Frequent trading under range-bound markets. Relax trading conditions.

  3. Overfitting parameters. Robustness test needed.

  4. Underperforms under trending markets. Add trend module or combine with trend strategies.

Optimization Directions

Some directions to optimize the strategy:

  1. Upgrade MAs with adaptive Kalman filters etc.

  2. Add ML model to improve signal accuracy.

  3. Add capital management module to automate risk control.

  4. Combine with high-frequency factors for stronger signals.

  5. 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.

Source
Pine
/*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/
Strategy parameters
Strategy parameters
⚙ Settings
Bar Color
Show Alerts
🕗 Timeframe
Show Take Profit/Stop Loss
⚙ D-Panel Settings️
⚙ D-Panel Location
⚙ D-Painel Size
⚙ Risk Management
Take Profit:
Stop Loss:
⚙️ Scanner Market Makers Settings
Period Volume
Proportion to the mean: (1.25 = 125% of the mean)
Comment
All comments (0)
No data
No data
  • 1
Forums
PINE Language
Get the app
iPhone Download
© 2015 - ∞ INVENTOR PTE LTD (SG)