Type/to search

Dual Moving Average Strategy 360°

Common strategy
Created: 2024-02-02 14:29:59
Last modified: 3 years ago
1
Follow
1802
Followers

img

Overview

The Dual Moving Average Strategy 360° is a quantitative trading strategy that incorporates dual moving averages and trend strength determination. By calculating moving averages over different periods, it determines price trends; meanwhile, by accumulating tangent angles, it judges the strength of trends and achieves more accurate entries and exits.

Strategy Logic

The core logic of the Dual Moving Average Strategy 360° is:

  1. Calculate the 1-minute and Kalman-filtered moving averages;
  2. Calculate the tangent angle based on the price difference between the two moving averages;
  3. Accumulate tangent angles to determine trend strength signals;
  4. Issue trading signals based on whether the accumulated tangent angles exceed preset thresholds.

Specifically, the strategy defines the raw 1-minute moving average and the Kalman-filtered moving average. The Kalman filter eliminates some noise from the moving average to make it smoother. The tangent angle between the two moving averages reflects price trend changes. For example, when the tangent angle is positive, it indicates an upward trend; conversely, a negative angle represents a downward trend.

The strategy chooses 30 minutes as the calculation period to sum all positive and negative tangent angles within that period. When the sum exceeds 360 degrees, it signals an extremely strong trend and issues a long signal; conversely, when the sum is below -360 degrees, it indicates a trend reversal and issues a short signal.

Advantage Analysis

The main advantages of the Dual Moving Average Strategy 360° are:

  1. Moving averages filter out short-term market noise for more reliable trading decisions;
  2. Tangent angles quantify trend strength, avoiding the subjectivity of judging by moving average patterns alone;
  3. Summing multiple tangent angles has better noise reduction effects, resulting in more reliable trading signals;
  4. Compared to single moving average strategies, the dual moving averages combined with trend strength determinations make the strategy more comprehensive and robust.

Risk Analysis

The Dual Moving Average Strategy 360° also carries some risks:

  1. Moving averages lag price changes and may miss short-term trend turning points;
  2. Relying solely on the accumulated trend strength signal can be disrupted by market volatility;
  3. Improper parameter settings (such as calculation period lengths) may lead to missing trades or generating incorrect signals.

To mitigate the above risks, measures like shortening the moving average period, optimizing parameter combinations, adding stop-loss mechanisms can be adopted.

Optimization Directions

The Dual Moving Average Strategy 360° can be further optimized by:

  1. Incorporating adaptive moving averages that adjust parameters based on market volatility;
  2. Referencing multiple moving average periods to form optimized parameter combinations;
  3. Adding dynamic trend determination modules based on volatility, trading volumes, etc.;
  4. Assisting parameter tuning or trade decisions with machine learning models.

Summary

The Dual Moving Average Strategy 360° utilizes moving average filtering and quantitative tangent angle trend judgments to achieve a relatively robust quantitative trading strategy. Compared to single technical indicators, this strategy forms a more comprehensive consideration and has stronger practicality. But parameter tuning and risk control are still vital, and the strategy can be further optimized for even better results going forward.

Source
Pine
/*backtest
start: 2024-01-25 00:00:00
end: 2024-01-30 08:00:00
period: 5m
basePeriod: 1m
exchanges: [{"eid":"Futures_Binance","currency":"BTC_USDT"}]
*/

//@version=5
//@library=math
strategy("策略360°(测试)", overlay=true)
Comment
All comments (0)
No data
No data
  • 1
Forums
PINE Language
Get the app
iPhone Download
© 2015 - ∞ INVENTOR PTE LTD (SG)