Qullamaggie Breakout V2 Strategy
Overview
This strategy combines the advantages of breakout and trend-following trailing stop strategies to capture support/resistance breakout signals on longer timeframes while using moving averages for stop loss trailing in order to profit in the direction of the longer term trend while controlling risk.
Strategy Logic
-
The strategy first calculates multiple moving averages with different parameters for trend determination, support/resistance and trailing stop loss.
-
It then identifies the highest high and lowest low points within a specified period as the support/resistance breakout zones. Buy and sell signals are generated when price breaks these levels.
-
The strategy buys when price breaks above the highest high and sells when price breaks below the lowest low.
-
After entry, the lowest low is used as the initial stop loss for the position.
-
Once the position becomes profitable, the stop loss switches to trailing the moving average. When price breaks below the moving average, the stop is set to the low of that candlestick.
-
This allows the position to lock in profits while giving it enough room to follow the trend.
-
The strategy also incorporates average true range for filtering to ensure only proper range breakouts are taken to avoid extended breakouts.
Advantage Analysis
-
Combines the advantages of breakout and trailing stop strategies.
-
Can buy breakouts according to longer term trends for higher probability.
-
Trailing stop strategy protects position while allowing enough space to run.
-
ATR filtering avoids unfavorable extended breakouts.
-
Automated trading suitable for part time following.
-
Customizable moving average parameters.
-
Flexible trailing stop mechanisms.
Risk Analysis
-
Breakout strategies prone to false breakout risks. Wider breakout confirmation may help.
-
Sufficent volatility needed to generate signals, may fail in choppy markets.
-
Some breakouts may be too short-lived to capture. Lower timeframes may uncover more opportunities.
-
Trailing stops can be stopped out too frequently in ranging markets. Wider stops may help.
-
ATR filtering may miss some potential trades. Lower filter settings can help.
Optimization Directions
-
Test different moving average combinations for optimal parameters.
-
Explore different breakout confirmations like channels, candlestick patterns etc.
-
Try different trailing stop mechanisms to find best stop loss.
-
Optimize money management strategies like position score.
-
Add technical indicator filters to improve quality of signals.
-
Test effectiveness across different products.
-
Incorporate machine learning algorithms to boost strategy performance.
Conclusion
This strategy combines the philosophies of breakout and trend-following trailing stop strategies. With proper trend determination, it optimizes profit potential while maintaining controlled risk. The keys are finding the optimal parameter sets and incorporating prudent money management. Further enhancements may turn this into a robust trend following methodology.
/*backtest
start: 2022-10-17 00:00:00
end: 2023-10-23 00:00:00
period: 1d
basePeriod: 1h
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/
// © millerrh
// The intent of this strategy is to buy breakouts with a tight stop on smaller timeframes in the direction of the longer term trend.- 1

