Type/to search

Trend Reversal Tracking Stop Loss Strategy

Cryptocurrency
Created: 2023-11-14 11:33:50
Last modified: 3 years ago
1
Follow
1778
Followers

img

Overview

This strategy uses trend reversal indicators combined with trend tracking stop loss mechanisms to track trends in trending markets and reduce losses in range-bound markets.

Strategy Logic

The strategy uses Hull Moving Average as the main trend indicator. It goes long when price crosses above Hull MA and goes short when price crosses below Hull MA. Meanwhile, McGinley MA is used to confirm the trend.

When price reverses after opening position, validated by Hull MA crossover, the trend change logic will close the current position.

The strategy also utilizes a tracking stop loss mechanism based on ATR calculation. The stop loss price level adjust dynamically following price moves to realize trailing stop of profits.

Advantages

  • Use Hull MA to detect trend reversal points sensitively
  • Add McGinley MA for trend confirmation, filtering false breakouts
  • Adopt dynamic trailing stop loss based on market volatility to control losses
  • Respond timely to trend reversals when Hull MA is validated
  • Easy to switch parameters for testing and optimization

Risks and Solutions

  • Stop loss may be triggered in ranging markets

    • Expand stop loss buffer wisely
  • Tracking stop loss may lag behind fast market moves

    • Use shorter smooth periods for stop loss to follow price faster
  • False breakouts may cause unnecessary losses

    • Add more confirmations to avoid false signals
  • Inappropriate parameters may lead to poor performance

    • Backtest on different market cycles to find optimal parameters

Optimization Directions

  • Add more confirmations like candlestick patterns, Bollinger Bands, RSI etc. to improve signal quality
  • Optimize parameters for different products and timeframes to find best parameter sets
  • Try machine learning for adaptive parameter optimization
  • Refine stop loss algorithms to reduce unnecessary stopping out
  • Optimize position sizing and risk management
  • Consider adding auto profit taking mechanisms

Conclusion

Overall this is a robust trend following strategy. Compared to fixed stop loss, the dynamic stop loss mechanism adjusts stop level based on market volatility, reducing the probability of being stopped out. The introduction of Hull MA and trend change logic also allows faster response to trend reversals. There are still risks like whipsaw and false breakout. Further optimizations on parameters, stop loss algorithms, position sizing etc. can improve strategy stability across different markets.

Source
Pine
/*backtest
start: 2023-10-14 00:00:00
end: 2023-11-13 00:00:00
period: 1h
basePeriod: 15m
exchanges: [{"eid":"Futures_Binance","currency":"BTC_USDT"}]
*/

// © Milleman
//@version=4
strategy("MilleMachine", overlay=true, default_qty_type = strategy.percent_of_equity, default_qty_value = 100, initial_capital=10000, commission_type=strategy.commission.percent, commission_value=0.06)
Strategy parameters
Strategy parameters
Mode
% Risk
ATR Multiplier
====== Activate Baseline - Switch L/S ======
Baseline Type
BL source
BL length
===== Activate Confirmation indicator =====
C1 Entry indicator
Source
Length
====== ENTRY indicator =======
EI Entry indicator
Source
Length
===== Activate Trailing Stop =====
TS Traling Stop Type
Smoothing Trail Long EMA
Smoothing Trail Short EMA
Comment
All comments (0)
No data
No data
  • 1
iPhone Download
Forums
PINE Language
© 2015 - ∞ INVENTOR PTE LTD (SG)