Type/to search

Weighted Quantitative Moving Average Crossover Trading Strategy

Cryptocurrency
Created: 2023-12-06 12:05:01
Last modified: 3 years ago
1
Follow
1779
Followers

img

Overview

This strategy is named Weighted Quantitative Moving Average Crossover Strategy. The basic idea is to design fast and slow lines based on price, trading volume and other indicators, and generate buy and sell signals when golden cross and dead cross occur between them.

Strategy Logic

The core indicator of this strategy is Quantitative Moving Average (QMA). QMA measures the trend direction by calculating the weighted average price over a period of time. Different from regular moving average, the weights (weight = price * trading volume) of prices in QMA will decay over time. Thus, the latest prices have bigger weights which can respond to the market change more rapidly.

Specifically, this strategy builds fast QMA line with 25 days and slow QMA line with 29 days. It will generate buy signal when fast line crosses above slow line, and sell signal when fast line crosses below slow line.

Advantage Analysis

Compared with regular moving average, this strategy has the following advantages:

  1. Respond to the market more promptly, which enables it to capture short-term opportunities.
  2. Combine multiple dimensions including price and trading volume, which makes it more stable.
  3. Flexible parameter settings to adapt to different market environments.

Risk Analysis

This strategy also has some risks:

  1. High trading frequency of short-term operations, which may lead to increased transaction costs and slippages.
  2. Overfitting due to excessive parameter optimization.
  3. Indicator effect may be compromised when the trading volume is insufficient.

The above risks could be mitigated by appropriately adjusting the frequency, strictly walk forward analysis, and incorporating other indicators.

Improvement Directions

There is still room for further optimization of this strategy:

  1. Dynamically adjust the parameters of QMA to make it self-adaptive to market volatility.
  2. Filter trading opportunities with indicators like volatility and trading volume.
  3. Add stop loss strategies to control single loss.

Conclusion

In general, this is a stable short-term trading strategy. Compared with single price average, its indicator can better reflect the supply-demand relationship in the market. With proper parameter tuning and risk management, this strategy can operate steadily for the long run and gain sound profit.

Source
Pine
/*backtest
start: 2022-11-29 00:00:00
end: 2023-12-05 00:00:00
period: 1d
basePeriod: 1h
exchanges: [{"eid":"Futures_Binance","currency":"BTC_USDT"}]
*/

//@version=3
strategy("Brad VWMACD Strategy 2233", overlay=false, max_bars_back=500,default_qty_type=strategy.percent_of_equity,commission_type=strategy.commission.percent, commission_value=0.18, default_qty_value=100)

// === INPUT BACKTEST RANGE === 
Strategy parameters
Strategy parameters
From Month
From Day
From Year
To Month
To Day
To Year
FastMA
SlowMA
Smoothing_period
Comment
All comments (0)
No data
No data
  • 1
iPhone Download
Forums
PINE Language
© 2015 - ∞ INVENTOR PTE LTD (SG)