This strategy combines the Moving Average Convergence Divergence (MACD) indicator with the Volume Weighted Moving Average (VWMA) to capture market momentum. It utilizes the MACD histogram and short-term VWMA crossovers for entry signals, while exits are solely based on MACD crossovers. The strategy is primarily designed for leveraged derivative markets, with flexible leverage and precision settings to adapt to various trading environments.
The core logic of the strategy is based on the following key components:
The strategy enhances entry accuracy by combining trend-following (VWMA) and momentum (MACD) indicators, while using MACD crossovers as quick-response exit signals to control risk.
To mitigate these risks, it is recommended to: 1) Conduct comprehensive parameter optimization and backtesting; 2) Set reasonable stop-loss and profit targets; 3) Regularly evaluate and adjust leverage levels; 4) Consider introducing additional filtering conditions to reduce false signals.
These optimization directions aim to improve the strategy’s adaptability and stability while reducing false signals and controlling risks. Through continuous iteration and improvement, the strategy has the potential to maintain good performance across different market environments.
The “Multi-Indicator Adaptive Momentum Trading Strategy” demonstrates the potential of multi-indicator synergy and dynamic adjustment in quantitative trading. By cleverly combining MACD and VWMA, the strategy can capture market momentum while providing relatively reliable entry and exit signals. Its flexible leverage and precision settings make it particularly suitable for the high-volatility environment of derivative markets. However, users need to be cautious in balancing the high return potential and increased risk brought by leverage. Future optimization directions, especially in dynamic parameter adjustment and risk management, are expected to further enhance the strategy’s robustness and long-term performance. Overall, this is a promising strategy framework that, through continuous optimization and adaptation, has the potential to remain competitive across different market cycles.
/*backtest start: 2019-12-23 08:00:00 end: 2024-09-24 08:00:00 period: 1d basePeriod: 1d exchanges: [{"eid":"Futures_Binance","currency":"BTC_USDT"}] */ //@version=5 leverage = input.int(1, title='Leverage', minval=1, maxval=100, step=1) commission_value_input = input.int(3, title='Commission Value %', minval=1, maxval=100, step=1) precision = input.int(2,title='Precision') strategy("MACD & VWMA Equal Basis", overlay=true) commission_value = (commission_value_input / 100) / leverage leveragedContracts = math.max(math.round(strategy.equity * leverage / close, precision), 0) // MACD settings [macdLine, signalLine, histogram] = ta.macd(close, 12, 26, 9) // VWMA settings vwma20 = ta.vwma(close, 20) vwma50 = ta.vwma(close, 50) // Plot VWMA on chart plot(vwma20, color=color.green, title="VWMA 20") plot(vwma50, color=color.orange, title="VWMA 50") // MACD buy/sell signals macdLongEntrySignal = histogram > 0 macdLongExitSignal = histogram < 0 macdShortEntrySignal = histogram < 0 macdShortExitSignal = histogram > 0 // VWMA conditions for long and short positions vwmaLongEntrySignal = vwma20 > vwma50 vwmaShortEntrySignal = vwma20 < vwma50 // Combined long entry signal: MACD buy signal with VWMA conditions longEntry = macdLongEntrySignal and vwmaLongEntrySignal longExit = ta.crossunder(macdLine, signalLine) // Combined short entry signal: MACD sell signal with VWMA conditions shortEntry = macdShortEntrySignal and vwmaShortEntrySignal shortExit = ta.crossover(macdLine, signalLine) // Execute long and short orders based on the conditions if (longEntry) strategy.entry("Long", strategy.long, qty = leveragedContracts) if (longExit) strategy.close("Long") if (shortEntry) strategy.entry("Short", strategy.short, qty = leveragedContracts) if (shortExit) strategy.close("Short")