Momentum Breakout Reversal Trading Strategy
Overview
This strategy uses simple moving average to determine the trend direction and go long in an uptrend and go short in a downtrend to implement reversal trading.
Strategy Logic
This strategy uses Weighted Moving Average (VWMA) to determine the market trend direction. It goes long when VWMA is rising and goes short when VWMA is falling.
Specifically, it first calculates VWMA of a certain period, and then judges if VWMA has risen for over 5 days. If so, it opens long position. If VWMA has fallen for over 5 days, it opens short position. The closing condition is when VWMA direction reverses for over 5 days.
To calculate monthly and yearly returns, the strategy records the profit/loss of each month and year. By comparing the returns of this strategy with market benchmark, we can visually see the relative performance.
Advantage Analysis
The advantages of this strategy include:
-
Using VWMA to determine trend can filter market noise effectively and capture major trends.
-
Opening position only after trend is confirmed can avoid risks associated with trend reversal.
-
Reversal trading can profit from both uptrend and downtrend.
-
Recording monthly and yearly returns facilitates evaluating strategy performance.
-
Adding market benchmark returns enables direct comparison between strategy and market.
Risk Analysis
Some risks of this strategy:
-
Using VWMA to determine trend may lag and miss opportunities at beginning of the trend.
-
Opening position only after confirmation may miss some movements.
-
Reversal trading needs to set stop loss, otherwise loss could enlarge.
-
Significant market fluctuation may trigger stop loss and unable to hold entire trend.
-
Trend reversal judgement may be inaccurate, enlarging losses.
Optimization Directions
Some aspects that could optimize the strategy:
-
Optimize VWMA period parameter to improve trend determination.
-
Adjust number of days to confirm trend, improving entry and exit timing.
-
Add stop loss strategy to control single trade loss.
-
Incorporate other indicators to determine reversals, improving certainty.
-
Optimize position sizing based on market condition.
-
Consider trading cost, set minimum profit target.
Summary
The overall logic of this strategy is simple and clear, using VWMA to determine trend direction and reversal trade after confirmation, which can effectively track market moves. But it also has some risks, requiring further testing and parameter tuning, adjusting entry/exit logic, and appropriate position sizing. This basic reversal trading strategy lays the foundation for quantitative trading and is worth further research and improvement.
/*backtest
start: 2023-01-01 00:00:00
end: 2023-10-26 00:00:00
period: 1d
basePeriod: 1h
exchanges: [{"eid":"Futures_Binance","currency":"BTC_USDT"}]
*/
//@version=4
strategy(title="Monthly Returns in Strategies with Market Benchmark", shorttitle="Monthly P&L With Market", initial_capital= 1000, overlay=true,default_qty_type = strategy.percent_of_equity, default_qty_value = 100, commission_type = strategy.commission.percent, commission_value = 0.1)
maLength= input(400)
- 1

