I use supertrend for for trailing stops. One of the problem of trailing stops in long term trend trading is we get stopped too early and then trend continues. To avoid this problem, we can limit or delay our trailing.
In this modified version of supertrend, we can delay trailing by two methods:
Bars : Trail after certain bars. Input DelayBars says after how many bars it should trail.
Steps : Trail after reaching equivalent stop on the other side.
ConsiderWicks option reverse direction upon high reaching trailing Sell stop or low reaching trailing buy stop (instead of close) ConsiderWicksForDelayByStep does the same thing for calculating if the steps have reached.
릴리즈 노트
Added separate multiplier for stop and target.
Lesser value of target multiplier leads to more often trailing. Higher value of target multiplier lead to less often trailing.
릴리즈 노트
Added alertcondition on demand :)
릴리즈 노트
Added new type of delay based on breakouts. Breakouts are based on breakout candles logic present here:
진정한 TradingView 정신에 따라, 이 스크립트의 저자는 트레이더들이 이해하고 검증할 수 있도록 오픈 소스로 공개했습니다. 저자에게 박수를 보냅니다! 이 코드는 무료로 사용할 수 있지만, 출판물에서 이 코드를 재사용하는 것은 하우스 룰에 의해 관리됩니다. 님은 즐겨찾기로 이 스크립트를 차트에서 쓸 수 있습니다.