OPEN-SOURCE SCRIPT
Candle Breakdown with Solid Tops/Bottoms

preference use 4hr chart for pivots/support resistance/targets to place trades on 1min
This Pine Script v5 indicator for TradingView, named "Candle Breakdown with Solid Tops/Bottoms," visually dissects each candlestick into four sections: whole candle (low to high), top wick (body top to high), body (open to close), and bottom wick (low to body bottom). For each section, it plots:Solid horizontal lines (width=2) at the top and bottom (e.g., high/low for whole candle, body top/bottom for body).
Dashed horizontal midlines (width=1) at the midpoint of each section (e.g., (high + low)/2 for whole candle).
Key features include:
Toggles: Enable/disable each section (whole, top wick, body, bottom wick) via checkboxes.
Custom Colors: Separate color inputs for top/bottom lines and midlines (defaults: gray, red, blue, green for sections; orange, purple, yellow, teal for midlines).
Lookback: User-defined input (default 10 candles) limits lines to the last N candles for clarity.
Labels: Optional price labels on the last bar for debugging.
The script uses line.new() for dynamic, per-candle lines, ensuring no errors (e.g., no invalid linestyle or linewidth<1). It’s efficient (up to 12 lines/candle, stays under max_lines_count=500) and works on any symbol/timeframe, enhancing swing trading analysis (e.g., for GC1! or NQ1!).
This Pine Script v5 indicator for TradingView, named "Candle Breakdown with Solid Tops/Bottoms," visually dissects each candlestick into four sections: whole candle (low to high), top wick (body top to high), body (open to close), and bottom wick (low to body bottom). For each section, it plots:Solid horizontal lines (width=2) at the top and bottom (e.g., high/low for whole candle, body top/bottom for body).
Dashed horizontal midlines (width=1) at the midpoint of each section (e.g., (high + low)/2 for whole candle).
Key features include:
Toggles: Enable/disable each section (whole, top wick, body, bottom wick) via checkboxes.
Custom Colors: Separate color inputs for top/bottom lines and midlines (defaults: gray, red, blue, green for sections; orange, purple, yellow, teal for midlines).
Lookback: User-defined input (default 10 candles) limits lines to the last N candles for clarity.
Labels: Optional price labels on the last bar for debugging.
The script uses line.new() for dynamic, per-candle lines, ensuring no errors (e.g., no invalid linestyle or linewidth<1). It’s efficient (up to 12 lines/candle, stays under max_lines_count=500) and works on any symbol/timeframe, enhancing swing trading analysis (e.g., for GC1! or NQ1!).
开源脚本
本着TradingView的真正精神,此脚本的创建者将其开源,以便交易者可以查看和验证其功能。向作者致敬!虽然您可以免费使用它,但请记住,重新发布代码必须遵守我们的网站规则。
免责声明
这些信息和出版物并不意味着也不构成TradingView提供或认可的金融、投资、交易或其它类型的建议或背书。请在使用条款阅读更多信息。
开源脚本
本着TradingView的真正精神,此脚本的创建者将其开源,以便交易者可以查看和验证其功能。向作者致敬!虽然您可以免费使用它,但请记住,重新发布代码必须遵守我们的网站规则。
免责声明
这些信息和出版物并不意味着也不构成TradingView提供或认可的金融、投资、交易或其它类型的建议或背书。请在使用条款阅读更多信息。