Type/to search

Momentum Breakout Optimization

Common strategy
Created: 2024-01-17 16:44:30
Last modified: 3 years ago
1
Follow
1802
Followers

img

Overview

The Momentum Breakout Optimization strategy is a trend following strategy that generates trading signals and sets stop loss/take profit based on momentum indicators. It judges the market trend direction by calculating the crossovers between price and moving average, and builds a dynamic stop loss mechanism using ATR and LinReg Channel. Meanwhile, the strategy also identifies overbought/oversold levels using the CMO indicator for better entry prices.

Strategy Logic

    1. Calculate the ZLEMA moving average of price as the technical indicator for trend direction
    1. Calculate long stop loss and short stop loss based on ATR
    1. Calculate the CMO indicator to identify overbought/oversold zones, combined with moving average as entry signals
    1. Generate 3 sets of trading signals based on ATR, moving average and price breakouts
    • Crossovers between moving average and stop loss levels
    • Crossovers between price and stop loss levels
    • Crossovers between price and moving average
    1. Enable/Disable different signal combinations through parameter settings
    1. Set risk percentage and position sizing for risk management

The overall strategy combines multiple indicators for steady trend following and automated stop loss, ensuring adequate trading opportunities while controlling trading risks.

Advantage Analysis

Combination of Multiple Indicators

The strategy utilizes a combination of indicators including moving average, ATR, CMO etc. The indicators complement each other and provide more reliable judgements on trend direction and overbought/oversold zones.

Dynamic Trailing Stop

The ATR-based dynamic stop loss can flexibly adjust stop loss levels based on market volatility, effectively controlling single trade loss.

Comprehensive Risk Management

The strategy provides position sizing and risk percentage settings, which defines the maximum percentage of capital at risk to prevent severe fund fluctuations.

Abundant Trading Signals

The strategy offers 3 sets of trading signals. By enabling different signal combinations, better backtest results can be obtained.

Risk Analysis

High Trading Frequency

There could be overly frequent trading when all signal combinations are enabled. This can be avoided by only using some of the signals.

Sensitive to Parameter Settings

The multiparameter model makes parameter optimization more complex and sensitive. The optimal parameter combination requires extensive testing.

Higher Drawdown for Breakout Signals

For the pure price/stop loss breakout signals, the stop loss range is wider, which may lead to larger single trade loss and drawdown. Combining with moving average signals is recommended.

Optimization Directions

Test Different Parameter Combinations

Optimize parameters like moving average type/length, ATR period, CMO period to find the optimal match.

Optimize Signal Usage Strategies

Test the performance of using only moving average signals, stop loss signals, or combination signals to find the best usage strategy.

Test Performance Across Different Products

Backtest the strategy across index, forex, commodity products to analyze adaptivity across different market types.

Conclusion

This strategy integrates multiple indicators for trend identification, stop loss construction, overbought/oversold detection. By tuning parameters and signal combinations, satisfactory risk metrics can be achieved. The overall system is comprehensive and reliable for further live testing and optimization.

Source
Pine
/*backtest
start: 2024-01-09 00:00:00
end: 2024-01-16 00:00:00
period: 5m
basePeriod: 1m
exchanges: [{"eid":"Futures_Binance","currency":"BTC_USDT"}]
*/

//@version=4
// This source code is subject to the terms of the Mozilla Public License 2.0 at https://mozilla.org/MPL/2.0/
// © KivancOzbilgic
//developer: @KivancOzbilgic
Strategy parameters
Strategy parameters
Source
ATR Length
ATR Multiplier
Moving Average Type
Moving Average Length
Change ATR Calculation Method ?
Show Moving Average?
Show Crossing Signals?
Show Price/Pmax Crossing Signals?
Highlighter On/Off ?
Use Position Sizing?
Risk %
Start Date
Start Month
Start Year
End Date
End Month
End Year
Comment
All comments (0)
No data
No data
  • 1
Forums
PINE Language
Get the app
iPhone Download
© 2015 - ∞ INVENTOR PTE LTD (SG)