Type/to search

TradingVMA – Variable Moving Average Trading Strategy

Common strategy
Created: 2024-02-21 11:47:43
Last modified: 2 years ago
1
Follow
1796
Followers

img

Overview

The TradingVMA strategy is a quantitative trading strategy based on variable moving average lines. It utilizes changing moving averages to capture market trends and generate trading signals accordingly.

Strategy Logic

The core of the TradingVMA strategy is the calculation of variable length moving averages (Variable Moving Average, VMA). The moving average is a widely known technical indicator that computes the average price over a certain period. The VMA used in the TradingVMA strategy has varying period lengths.

Specifically, the strategy first computes a series of intermediate quantities, such as Price Directional Movement Indicator (PDM, MDIM), smoothed data (PDMs, MDMs). These data are eventually used to obtain the indicator strength (iS). This indicator reflects the intensity of price fluctuations.

Then, the TradingVMA strategy dynamically adjusts the moving average period based on the indicator strength. When market volatility increases, the moving average period becomes shorter, and vice versa. This allows faster response to market changes.

Finally, the strategy compares the current price with the VMA to generate trading signals. It goes long when price is above VMA and goes short when price is below VMA.

Advantage Analysis

The TradingVMA strategy has the following main advantages:

  1. Variable Period Filters Noise More Steady – The variable moving average period adapts to market changes for filtering out noise and more stable trend signals.

  2. Faster Response to Price Changes Improves Responsiveness – The variable moving average can respond swiftly to price changes and capture trend reversal points.

  3. Reduces Trading Frequency Less Overtrading - Compared to fixed-period indicators, TradingVMA can reduce unnecessary trades.

  4. Customizable Parameters Flexibility - The strategy allows users to select parameters based on their preferences to suit different market environments.

Risk Analysis

The TradingVMA strategy also has the following primary risks:

  1. Missing Rapid Reversals – When trends reverse rapidly, the continuously adjusting moving average may lag in responding.

  2. Lagging Bias – All moving average strategies have some degree of lagging bias, either long or short.

  3. Wrong Signals –TradingVMA may generate incorrect long/short signals in range-bound sideways markets.

  4. Difficult Parameter Optimization – Finding the optimal parameter combination can be challenging.

These risks can be controlled via methods like stop losses, adjusting parameter combinations, etc.

Optimization Directions

The TradingVMA strategy can also be enhanced in the following aspects:

  1. Combine Other Indicators – Using with other trend, counter-trend indicators can improve signal quality.

  2. Parameter Optimization – Discover optimum parameters via backtesting and optimization.

  3. Adaptive Trading Rules – Employ different entry rules, stop losses per market regime.

  4. Systemization – Algorithmize and systemize the strategy for easier optimization.

Conclusion

TradingVMA is an adaptive quantitative strategy. It captures market trends using a specially designed VMA indicator, with the edge of being responsive and filtering out noise. The strategy can be upgraded in multiple ways for better performance. But some inherent issues like lagging bias may persist. Overall, TradingVMA is a promising trend-following strategy.

Source
Pine
/*backtest
start: 2024-01-01 00:00:00
end: 2024-01-24 23:59:59
period: 1h
basePeriod: 15m
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/
// © laptevmaxim92

//@version=4
Strategy parameters
Strategy parameters
VMA Length
Show Trend Direction Colors
Use take profit?
Take profit pips
Use stop loss?
Stop loss pips
From Day
From Month
From Year
To Day
To Month
To Year
Comment
All comments (0)
No data
No data
  • 1
Forums
PINE Language
Get the app
iPhone Download
© 2015 - ∞ INVENTOR PTE LTD (SG)