OPEN-SOURCE SCRIPT
已更新

Previous Candle High/Low (Clean)

96
✅ 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.
發行說明
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.

免責聲明

這些資訊和出版物並不意味著也不構成TradingView提供或認可的金融、投資、交易或其他類型的意見或建議。請在使用條款閱讀更多資訊。