Type/to search

Angular VWMA Trend Following Strategy with Dynamic Trailing Stop

VWMA
1
Follow
1802
Followers

img

Overview

This is a trend-following strategy based on Volume Weighted Moving Average (VWMA) and Exponential Moving Average (EMA), incorporating price angle analysis and dynamic trailing stop mechanism. The strategy primarily determines entry points through VWMA and fast moving average crossovers, combined with price movement angle conditions, while using percentage-based trailing stops for risk management.

Strategy Principles

The core logic is based on several key components:

  1. 25-period VWMA as the main trend indicator
  2. 8-period VWMA as the fast signal line
  3. 50-period EMA for longer-term trend identification
  4. 50-period EMA angle calculation (set at 45-degree threshold)
  5. Optional 200-period EMA as market bias filter
    Entry signals are triggered when the fast moving average crosses the main VWMA and price angle conditions are met. The strategy protects profits through a 1% dynamic trailing stop.

Strategy Advantages

  1. Multi-timeframe validation - Strategy performs well on H1 and above, as well as M1 timeframes
  2. Angle filtration - Reduces false breakouts through price movement angle conditions
  3. Robust risk management - Employs percentage-based trailing stops for dynamic profit protection
  4. High adaptability - Can be adjusted through parameters to suit different market conditions
  5. Comprehensive trend confirmation - Uses multiple moving average crossovers for trend confirmation

Strategy Risks

  1. Suboptimal performance in ranging markets - May generate frequent false signals in sideways markets
  2. Delayed entry - Multiple confirmations may cause missing early trend opportunities
  3. Poor performance on M15 timeframe - Should be avoided on this timeframe
  4. Parameter sensitivity - Angle threshold and moving average period selection significantly impact strategy performance
  5. Early exits from trailing stops - May result in premature stopouts in volatile markets

Strategy Optimization Directions

  1. Implement volatility adaptation - Dynamically adjust trailing stop percentage based on market volatility
  2. Add volume filters - Enhance signal quality through volume confirmation
  3. Optimize angle calculation - Consider using adaptive angle thresholds
  4. Incorporate market state recognition - Develop trend/range market identification mechanisms
  5. Improve exit mechanisms - Optimize exit timing through price patterns and momentum indicators

Summary

This is a well-structured trend-following strategy that achieves good performance in major trends through the combination of angle analysis and multiple moving averages. While it has certain limitations in terms of lag and parameter sensitivity, there is room for improvement through the suggested optimization directions. It is particularly suitable for trend trading in longer timeframes.

Source
Pine
/*backtest
start: 2024-02-18 00:00:00
end: 2024-10-16 00:00:00
period: 2h
basePeriod: 2h
exchanges: [{"eid":"Futures_Binance","currency":"BTC_USDT"}]
*/

//@version=6
strategy("PVSRA Trailing Strategy with Angle Condition (40-50 degrees)", overlay=true)

// === INPUTS ===
Strategy parameters
Strategy parameters
Price Data (Optional)
Moving Average Length (Optional)
Long/Short just above/below 200 EMA
Use Trailing Stop
Trailing Stop Percentage (Optional)
Period for Angle Calculation (Optional)
Comment
All comments (0)
No data
No data
  • 1
Forums
PINE Language
Get the app
iPhone Download
© 2015 - ∞ INVENTOR PTE LTD (SG)