OPEN-SOURCE SCRIPT
업데이트됨 Previous Candle High/Low (Clean)

✅ Creates one horizontal line for the previous candle’s high (green).
✅ Creates one horizontal line for the previous candle’s low (red).
✅ The lines update on each new candle, always following the most recent previous high/low.
✅ The lines are extended to the right — they don’t stack or clutter the chart.
✅ Works on all timeframes.
✅ Creates one horizontal line for the previous candle’s low (red).
✅ The lines update on each new candle, always following the most recent previous high/low.
✅ The lines are extended to the right — they don’t stack or clutter the chart.
✅ Works on all timeframes.
릴리즈 노트
This indicator draws two horizontal black lines on your chart representing the high and low of the previous candle. These lines help you quickly identify key recent price levels for use in your trading decisions.How It Works:
Previous Candle Levels:
The script takes the high and low values of the candle immediately before the current one (i.e., high[1] and low[1]).
Line Drawing:
It draws one horizontal line at the previous candle's high.
It draws another horizontal line at the previous candle's low.
Line Length Control:
The length of these lines on the chart is controlled by an input parameter called Line Length (Bars).
This input lets you specify how many bars forward the lines should extend on the chart.
For example, if you set it to 5, the lines will stretch from the current bar to 5 bars ahead.
This gives you flexibility to keep the lines visible for as long as you want without cluttering the chart.
Dynamic Update:
As new candles form, the lines update to always represent the most recent previous candle’s high and low.
This means the lines "move forward" with the price action, maintaining relevance.
Visual Style:
Both lines are drawn in black with a width of 2 for clear visibility.
The lines do not extend infinitely — they only cover the number of bars you specify.
Use Case:
This indicator is useful for traders who want to:
Quickly see key levels from the previous candle to help with breakout or reversal decisions.
Monitor support and resistance levels based on recent price action.
Keep their chart clean by controlling how long these levels remain visible.
릴리즈 노트
What this script does:📌 Draws two horizontal lines on your chart:
One at the high of the “before previous” candle (2 bars back).
One at the low of the “before previous” candle.
🕒 The lines start exactly on the candle where that high/low happened
(they begin at the open time of the “before previous” candle).
➡️ The lines extend to the right for a user-defined number of bars
(you control this using the “Line Length After Candle (Bars)” setting).
🎨 You can choose the color of each line in the settings.
🔄 The lines update automatically on each new bar, always tracking the correct candle.
Use Case:
🔹 Helps you mark key price levels from the before previous candle,
which can be useful for identifying breakout or reaction zones.
🔹 Keeps your chart clean — lines don’t extend indefinitely.
🔹 Works on all timeframes.
오픈 소스 스크립트
진정한 트레이딩뷰 정신에 따라 이 스크립트 작성자는 트레이더가 기능을 검토하고 검증할 수 있도록 오픈소스로 공개했습니다. 작성자에게 찬사를 보냅니다! 무료로 사용할 수 있지만 코드를 다시 게시할 경우 하우스 룰이 적용된다는 점을 기억하세요.
면책사항
이 정보와 게시물은 TradingView에서 제공하거나 보증하는 금융, 투자, 거래 또는 기타 유형의 조언이나 권고 사항을 의미하거나 구성하지 않습니다. 자세한 내용은 이용 약관을 참고하세요.
오픈 소스 스크립트
진정한 트레이딩뷰 정신에 따라 이 스크립트 작성자는 트레이더가 기능을 검토하고 검증할 수 있도록 오픈소스로 공개했습니다. 작성자에게 찬사를 보냅니다! 무료로 사용할 수 있지만 코드를 다시 게시할 경우 하우스 룰이 적용된다는 점을 기억하세요.
면책사항
이 정보와 게시물은 TradingView에서 제공하거나 보증하는 금융, 투자, 거래 또는 기타 유형의 조언이나 권고 사항을 의미하거나 구성하지 않습니다. 자세한 내용은 이용 약관을 참고하세요.