OPEN-SOURCE SCRIPT

Trailing Stop Loss

已更新
Trailing stop loss indicator to determine when to exit a position.

Multiple trailing stop loss calculation techniques are implemented:
  • ATR: Determines stop loss using a gap from recent highest value, that gap is defined by the ATR value and a multiplier
  • MA: Just a simple moving average used as a stop-loss
  • Percentage: Uses a percentage of the price


The script also implements alerting to be notified when the stop loss price is reached.
發行說明
Update to Pine Script v5
ATRAverage True Range (ATR)Simple Moving Average (SMA)stoplosstrailingstop

開源腳本

在真正的TradingView精神中,這個腳本的作者以開源的方式發佈,這樣交易員可以理解和驗證它。請向作者致敬!您可以免費使用它,但在出版物中再次使用這段程式碼將受到網站規則的約束。 您可以收藏它以在圖表上使用。

想在圖表上使用此腳本?

免責聲明