OPEN-SOURCE SCRIPT
Candle Breakdown with Solid Tops/Bottoms

I incorporate this indicator on a 4hr chart and use the previous candle levels as support resistane/ targets/pivots for trades on the 1 min.
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 อ่านเพิ่มเติมที่ ข้อกำหนดการใช้งาน