Trend Tracking Strategy Based on Dynamic Pivot Bands
Overview
This strategy calculates the recent highest and lowest prices over a certain period, combined with the current price, to form a dynamic middle line. Red downside channel and green upside channel are then generated based on recent volatility. The three channel lines form a tradable range. When the price approaches the channel boundaries, reverse operations are carried out targeting profits back to the middle line. Meanwhile, there is a trend calculation inside the strategy to filter trades against the trend and avoid being destroyed by the major trend.
Strategy Logic
- Calculate dynamic middle line with recent highest price, lowest price and current close price
- Generate dynamic bands based on ATR and multiplier, width changes with market volatility
- Go long when price bounces off the bottom band, go short when bounces off the top band
- Have take profit and stop loss logic targeting middle line
- Meanwhile calculate trend index to filter trades against trend
Advantage Analysis
- Dynamic bands adapt to real-time market volatility
- High probability of trading along trend
- Stop loss controls single loss
Risk Analysis
- Improper parameter optimization may lead to overtrading
- Unable to completely eliminate counter-trend trades under major trends
- One-sided breakout may continue running
Optimization Direction
- Adjust parameters of bands to fit different products
- Fine tune trend index parameters to improve trend-trading probability
- Introduce machine learning elements for dynamic parameter optimization
Summary
This strategy mainly relies on the oscillation of the market to make profits. By capturing price reversal points dynamically with the bands, combined with trend filtering, it can effectively profit from mean-reversion while controlling risks. The key lies in parameter tuning to make the bands responsive yet not oversensitive. The trend index also needs proper periods to play its role. With theoretical favorable trend and stops, this strategy can achieve decent returns through optimization.
/*backtest
start: 2023-11-25 00:00:00
end: 2023-12-25 00:00:00
period: 1h
basePeriod: 15m
exchanges: [{"eid":"Futures_Binance","currency":"BTC_USDT"}]
*/
//@version=4
strategy(title="Strategy - Bobo PAPATR", overlay=true, default_qty_type = strategy.fixed, default_qty_value = 1, initial_capital = 10000)
// === STRATEGY RELATED INPUTS AND LOGIC ===- 1

