OPEN-SOURCE SCRIPT

Stop Loss with Exits

25 037
Standard Percentage-based Stop Loss for long and short, with configurable extra exit conditions.

Just copy/paste into your script.

Uses "low" and "high" values for crossing the stop loss threshold, but can be changed to "close" if you prefer (change "low" and "high" on lines 31 and 32 to "close")

Disclaimer

The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.