OPEN-SOURCE SCRIPT

Current Candle Vertical Line

103
Description

The Current Candle Vertical Line indicator draws a fully customizable vertical line on the most recent candle (live bar). This provides a clear visual anchor for active traders, especially during fast-moving markets or multi-chart setups.

The line extends from the top of the chart to the bottom, ensuring maximum visibility—regardless of zoom level or price scale.

Features
✔ Fully customizable line color
✔ Adjustable opacity (0–100%)
✔ Custom line thickness
✔ Three selectable line styles: Solid, Dashed, or Dotted
✔ Automatically deletes old line and redraws on the newest bar
✔ Works on any timeframe, chart type, and asset

Use Cases
  • Highlight the current candle during live trading
  • Keep visual focus when scalping or trading futures
  • Align entries with indicators on lower or higher timeframes
  • Improve visibility during high volatility
  • Support multi-monitor or multi-chart layouts


Notes
  • The indicator draws the line only on the last active bar.
  • Since overlay=true, the line appears in the main chart panel.
  • This script does not generate alerts (visual marker only).

Exención de responsabilidad

La información y las publicaciones no constituyen, ni deben considerarse como asesoramiento o recomendaciones financieras, de inversión, de trading o de otro tipo proporcionadas o respaldadas por TradingView. Más información en Condiciones de uso.