mickes

Trailing stop

mickes 업데이트됨   
Hi all!

This script helps to alert you when a trailing stop is hit. More specifically it alerts you when the low of the candle crosses below your trailing stop. A trailing stop follows a price positive movements. It raises your stop when price goes up, but keeps it at the same level if price goes down, so it "locks" in your profit. You define your long entry bar and choose one of the following methods for the stop:

ATR
The Average True Range (ATR) is popular to trail stops. The trailing stop is raised by the low minus the ATR (times a factor that can be set under the settings for ATR).

EMA
The Exponential Moving Average (EMA) can be used to trail your stop. When the low goes below the EMA an alert is sent about the stop. Its length can be set in the settings.

SMA
The Simple Moving Average (SMA) can be used to trail your stop. When the low goes below the SMA an alert is sent about the stop. Its length can be set in the settings.

Source
An external source can be useful as a stop signal. You can use this option that will stop you out when the signal returns anything else than "na". E.g. if you want a stop when KivancOzbilgic script "SuperTrend" (www.tradingview.com/script/r6dAP7yi/) turns red, you set the source to "Supertrend: Down Trend". This option will not draw pretty things on the chart, but it will alert you!

Please note that this is for long entries only.

Best of trading luck!
릴리즈 노트:
  • Only alert once per bar
  • Some refactoring
  • Error if source is the method and the input is close only on the first bar
릴리즈 노트:
Hi!

• Force the user to set the entry for the trailing stop loss
• The trailing stop line is drawn until it's broken
• Code refactoring
• Only set if the stop is hit, not the bar index'

Good luck trading!
릴리즈 노트:
Hi all!

Here's a small but important update.

∙ Add option to force the bar to be closed
∙ Add option to select price (open, high, low or close)

Good luck trading!
오픈 소스 스크립트

이 스크립트의 오써는 참된 트레이딩뷰의 스피릿으로 이 스크립트를 오픈소스로 퍼블리쉬하여 트레이더들로 하여금 이해 및 검증할 수 있도록 하였습니다. 오써를 응원합니다! 스크립트를 무료로 쓸 수 있지만, 다른 퍼블리케이션에서 이 코드를 재사용하는 것은 하우스룰을 따릅니다. 님은 즐겨찾기로 이 스크립트를 차트에서 쓸 수 있습니다.

면책사항

이 정보와 게시물은 TradingView에서 제공하거나 보증하는 금융, 투자, 거래 또는 기타 유형의 조언이나 권고 사항을 의미하거나 구성하지 않습니다. 자세한 내용은 이용 약관을 참고하세요.

차트에 이 스크립트를 사용하시겠습니까?