Type/to search

Shift Exit Strategy v2.0

Cryptocurrency
Created: 2023-09-21 15:21:40
Last modified: 3 years ago
1
Follow
1781
Followers

Overview

This strategy enters and exits trades at shifted prices to follow trends.

How it Works

  1. Calculate shifted prices based on previous close's percentage.

  2. Downward shifted price is buy line, upward shifted price is sell line.

  3. Enter long when price hits buy line.

  4. Exit when price hits sell line.

Advantages

  • Auto trailing stop loss/profit take without manual intervention
  • Customizable shift percentage for parameter optimization
  • Long only reduces trade frequency
  • Can limit trading time range

Risks

  • Unable to effectively determine trend end
  • Time lag, may miss quick reversals

Optimization Directions

  • Test different shift percentage parameters
  • Optimize incremental setting of parameters
  • Incorporate dynamic shifts based on trend
  • Consider pyramiding on new highs

Conclusion

The strategy achieves auto trailing profit takes via shifted entry/exit levels. Further improvements through parameter optimization and logic enhancements can improve performance. But whipsaw risks need to be managed. Overall a simple and practical approach for trend following trading.

Source
Pine
/*backtest
start: 2022-09-14 00:00:00
end: 2023-09-20 00:00:00
period: 4d
basePeriod: 1d
exchanges: [{"eid":"Futures_Binance","currency":"BTC_USDT"}]
*/

//Noro
//2019

//@version=3
Strategy parameters
Strategy parameters
Buy, src-%
Sell, src+%
Source for buy
Source for sell
offset
From Year
To Year
From Month
To Month
From day
To day
Comment
All comments (0)
No data
No data
  • 1
iPhone Download
Forums
PINE Language
© 2015 - ∞ INVENTOR PTE LTD (SG)