OPEN-SOURCE SCRIPT
업데이트됨 Swing Low Stop Loss Levels

Swing Low Stop Loss Levels plots volatility-adjusted stop loss levels below the most recent confirmed swing lows, so you can see at a glance where a structure-based stop for a long position would sit.
HOW IT WORKS
A swing low is a candle whose low is lower than the lows of the N candles on each side of it. Once a swing low is confirmed, the indicator draws a line below it at:
Stop level = Swing low − (ATR × multiplier)
The ATR value is taken from the swing low candle itself, so each level is fixed at the moment it forms and does not drift as volatility changes afterward. Each line starts at its swing low, runs to the current candle, and is labeled with its price.
The indicator keeps only the most recent swing lows (3 by default). When a new swing low is confirmed, the oldest level is removed.
SETTINGS
Swing detection
- N (candles on each side): how many candles on both sides must have higher lows. Higher values find more significant swings; lower values find more frequent, minor swings.
- Number of swing lows to show: how many recent stop levels are displayed.
ATR buffer
- ATR length: the ATR calculation period (default 14).
- ATR multiplier: how far below the swing low the stop is placed, in ATR units (default 0.25).
Style
- Line color, line style (Solid, Dashed, Dotted), and line width.
- Show price labels: displays the stop price next to each line.
- Remove a level once price closes below it: optionally clears levels that have already been broken, since a violated swing low is usually no longer a valid stop reference.
HOW TO USE IT
When planning a long entry, the nearest level below price gives a stop that sits beneath recent market structure with a small volatility buffer, which helps avoid being stopped out by normal noise right at the swing low. Deeper levels show alternative stops if you prefer more room. The distance between entry and stop can also be used for position sizing.
NOTES
- A swing low can only be confirmed after N candles have closed to its right, so each level appears N candles after the actual low. This is inherent to swing detection and means the indicator does not repaint.
- The indicator is designed for long positions (stops below swing lows).
- It works on any symbol and timeframe.
This tool is for chart analysis only and does not provide trading signals or guarantee results. Always apply your own risk management.
HOW IT WORKS
A swing low is a candle whose low is lower than the lows of the N candles on each side of it. Once a swing low is confirmed, the indicator draws a line below it at:
Stop level = Swing low − (ATR × multiplier)
The ATR value is taken from the swing low candle itself, so each level is fixed at the moment it forms and does not drift as volatility changes afterward. Each line starts at its swing low, runs to the current candle, and is labeled with its price.
The indicator keeps only the most recent swing lows (3 by default). When a new swing low is confirmed, the oldest level is removed.
SETTINGS
Swing detection
- N (candles on each side): how many candles on both sides must have higher lows. Higher values find more significant swings; lower values find more frequent, minor swings.
- Number of swing lows to show: how many recent stop levels are displayed.
ATR buffer
- ATR length: the ATR calculation period (default 14).
- ATR multiplier: how far below the swing low the stop is placed, in ATR units (default 0.25).
Style
- Line color, line style (Solid, Dashed, Dotted), and line width.
- Show price labels: displays the stop price next to each line.
- Remove a level once price closes below it: optionally clears levels that have already been broken, since a violated swing low is usually no longer a valid stop reference.
HOW TO USE IT
When planning a long entry, the nearest level below price gives a stop that sits beneath recent market structure with a small volatility buffer, which helps avoid being stopped out by normal noise right at the swing low. Deeper levels show alternative stops if you prefer more room. The distance between entry and stop can also be used for position sizing.
NOTES
- A swing low can only be confirmed after N candles have closed to its right, so each level appears N candles after the actual low. This is inherent to swing detection and means the indicator does not repaint.
- The indicator is designed for long positions (stops below swing lows).
- It works on any symbol and timeframe.
This tool is for chart analysis only and does not provide trading signals or guarantee results. Always apply your own risk management.
릴리즈 노트
Update: swing lows now confirm only on candle close (no repainting)릴리즈 노트
Change the default number of stop losses to 1오픈 소스 스크립트
트레이딩뷰의 진정한 정신에 따라, 이 스크립트의 작성자는 이를 오픈소스로 공개하여 트레이더들이 기능을 검토하고 검증할 수 있도록 했습니다. 작성자에게 찬사를 보냅니다! 이 코드는 무료로 사용할 수 있지만, 코드를 재게시하는 경우 하우스 룰이 적용된다는 점을 기억하세요.
면책사항
해당 정보와 게시물은 금융, 투자, 트레이딩 또는 기타 유형의 조언이나 권장 사항으로 간주되지 않으며, 트레이딩뷰에서 제공하거나 보증하는 것이 아닙니다. 자세한 내용은 이용 약관을 참조하세요.
오픈 소스 스크립트
트레이딩뷰의 진정한 정신에 따라, 이 스크립트의 작성자는 이를 오픈소스로 공개하여 트레이더들이 기능을 검토하고 검증할 수 있도록 했습니다. 작성자에게 찬사를 보냅니다! 이 코드는 무료로 사용할 수 있지만, 코드를 재게시하는 경우 하우스 룰이 적용된다는 점을 기억하세요.
면책사항
해당 정보와 게시물은 금융, 투자, 트레이딩 또는 기타 유형의 조언이나 권장 사항으로 간주되지 않으며, 트레이딩뷰에서 제공하거나 보증하는 것이 아닙니다. 자세한 내용은 이용 약관을 참조하세요.