Type/to search

Reversal Closing Price Breakout Strategy with Oscillating Stop Loss

Cryptocurrency
Created: 2023-12-11 11:44:49
Last modified: 3 years ago
1
Follow
1778
Followers

img

Overview

This strategy utilizes the price breakout signals and oscillating stop loss mechanism for risk management. It goes long when price breaks out the resistance and goes short when price breaks the support. At the same time, oscillating stop loss and profit taking stops are applied for better risk control.

Strategy Logic

The strategy is based on the following key points:

  1. Using MA to determine the trend direction. Fast and slow MAs are plotted, fast MA crossing above slow MA signals bull trend, while crossing below signals bear trend.

  2. Resistance breakout long signal. When price surges and breaks recent swing high, it is considered breaking resistance level, going long.

  3. Support breakout short signal. When price drops and breaks recent swing low, it is considered breaking support level, going short.

  4. Oscillating stop loss. After entry, stop loss line is set and keeps adjusting based on price fluctuation, forming an oscillating stop loss mechanism.

  5. Stop loss and take profit exit. Stop loss exit controls risk, take profit lock in gains.

Specifically, it uses the average of high and low prices as the source, plots fast and slow EMAs to determine trends. When fast EMA goes above slow EMA and resistance breakout signal emerges, it goes long. When fast EMA drops below slow EMA and support breakout shows up, it goes short. After entry, the lowest price in certain periods is set as the stop loss line, keeps adjusting as price rises. Take profit line is plotted to lock in gains. The strategy effectively controls risk meanwhile profit from trends.

Advantage Analysis

The advantages of this strategy include:

  1. Steady profitability. Following trends can make stable gains from long-term trends.

  2. Excellent risk control. Oscillating stop and protective stop quickly cut losses.

  3. Accurate signals. Resistance breakout long and support breakout short provide reliable signals.

  4. Simple rules. Indicators and signals are straightforward, easy to follow.

  5. Market adaptive. Works well across different products and market conditions.

Risk Analysis

Some risks to note for this strategy:

  1. Breakout failure risk. Price may have throwback or pullback after initial breakout, triggering stop loss.

  2. Parameter optimization risk. Bad parameter tuning leads to too many or too few signals. Optimization needs prudence.

  3. Indicator failure risk. In extreme conditions, EMAs may stop working or lag behind price.

  4. Trend reversal risk. Holding position against trend brings accumulating losses when trend reverses.

Proper parameter tuning, wide stop loss, strictly following rules can largely mitigate above risks.

Optimization Directions

The strategy can be further improved from the following aspects:

  1. Timeframe optimization. Adjust calculation periods of MAs and price patterns, find best combinations.

  2. Adaptability optimization. Tune parameters for different products.

  3. Stop loss optimization. Test more advanced stop loss methods like trailing stop, Chandelier stop.

  4. Take profit optimization. Adopt adaptive or exponential profit taking exits for better reward.

  5. Add filters. Add volume, volatility filters to avoid false breakouts.

  6. Enhance entry signals. Combine more indicators or patterns to confirm entries.

Conclusion

This is an effective breakout strategy with good risk control, stable profit model and straightforward logic flow. Fine-tuning and modular enhancement can make it more robust and adaptive to complex markets. It has great application potentials across more products.

Source
Pine
/*backtest
start: 2023-12-03 00:00:00
end: 2023-12-10 00:00:00
period: 30m
basePeriod: 15m
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/
// © EduardoMattje

//@version=4
Strategy parameters
Strategy parameters
Price source
Order direction
EMA long period
EMA short period
Risk to reward ratio
Stoploss candle lookback
Close if EMA crosses in oposite direction
Allow price retracing
Comment
All comments (0)
No data
No data
  • 1
iPhone Download
Forums
PINE Language
© 2015 - ∞ INVENTOR PTE LTD (SG)