Type/to search

Broken High/Low Strategy

Common strategy
Created: 2023-12-22 12:59:43
Last modified: 3 years ago
1
Follow
1802
Followers

img

Overview

The Broken High/Low strategy is a trend-following strategy that tracks price breakouts beyond the high or low of the previous candlestick. It uses moving averages to determine the trend direction and enters on breakout points, with stop loss or trailing stop loss to lock in profits.

Strategy Logic

The key conditions for entry and exit determined by this strategy are:

  1. Identify if the candlestick is green or red to determine if it is an up candle or down candle
  2. Check if the current candle breaks the high or low of the previous candle
  3. Use fast and slow moving averages to define the trend direction
  4. Go long when an up candle breaks above the high of a previous down candle, go short when a down candle breaks below the low of a previous up candle
  5. Exit conditions are triggered by stop loss or trailing stop; can also exit immediately if a reversal candle appears

The strategy also uses filters based on the second reversal candle to avoid false breakouts and ensure signal reliability.

Advantage Analysis

  • Clear strategy orientation, easy to grasp breakout operations
  • Ensures correct trend judgment by combining dual moving averages
  • Trailing stop helps lock in more profits
  • Reversal candle filters help avoid chasing highs and killing lows

Risk Analysis

  • Failed breakout can cause loss from ultra short-term operations
  • Larger risk of false breakout in range-bound markets
  • Dual moving averages may lag, leading to judgment errors

Risk Control Measures:

  1. Select indexes or major benchmarks to avoid high risk of individual stocks
  2. Optimize moving average parameters to improve judgment accuracy
  3. Reasonably expand stop loss range to control single trade loss

Optimization Directions

This strategy can be optimized in the following aspects:

  1. Test different combinations of moving average parameters
  2. Test incorporating other technical indicators for combo judgment
  3. Optimize parameters of entry and stop loss levels
  4. Add quantitative filtering rules to select high quality underlying
  5. Incorporate machine learning algorithms for adaptive parameter optimization

Summary

The Broken High/Low strategy is overall a mature trend-following strategy. With the help of moving averages for auxiliary judgment, it can capture certain degree of trends. The stop loss and trailing stop mechanisms also help lock in profits. Through continuous testing and optimization, the parameters and performance of this strategy can become more outstanding.

Source
Pine
/*backtest
start: 2022-12-15 00:00:00
end: 2023-12-21 00:00:00
period: 1d
basePeriod: 1h
exchanges: [{"eid":"Futures_Binance","currency":"BTC_USDT"}]
*/

//@version=5
strategy("Broken High/Low Strategy", overlay=true, initial_capital = 5000, default_qty_value = 25, pyramiding = 10, default_qty_type= strategy.percent_of_equity)

useEMAForStop = input.bool(false, 'Use trail stop EMA', group = 'Exit strategy')
Strategy parameters
Strategy parameters
Exit strategy
Use trail stop EMA
Trail stop EMA length
Using opposing bar as exit
Trend strength
Fast MA length
Fast EMA enabled (default is SMA)
Slow MA length
Slow EMA enabled (default is SMA)
Use fast MA for trend ignoring slow MA
Second bar that eliminates opposing bar for entry
Trade settings
Enable longs
Enable shorts
Time filters
FromMonth
FromDay
FromYear
ToMonth
ToDay
ToYear
Close trades end of day
Comment
All comments (0)
No data
No data
  • 1
Forums
PINE Language
Get the app
iPhone Download
© 2015 - ∞ INVENTOR PTE LTD (SG)