Fractal Reversal Tracker

For breakout detection, the script identifies classic continuation patterns—specifically, when the HTF candle closes above the previous high or below the previous low. If continuation conditions are not met, it evaluates for fakeouts (fake_up or fake_down) using detailed LTF logic. This includes tracking the LTF candle that caused the HTF high or low, identifying the first impulsive candle (bullish or bearish), and checking whether the close of the pullback candle is later violated by price. Only when these strict criteria are met is a fakeout confirmed.
Instead of relying on global boolean flags, the script stores the latest breakout status in a single-entry boolean array (breakout_flags), which is cleared and updated at each new HTF candle. This ensures clean and consistent breakout tracking while avoiding conflicts with Pine Script's scope limitations. Visually, the script draws HTF candle structures, breakout lines, and extended fakeout lines on the chart. When a confirmed, non-fake breakout occurs, it also draws an extended opening line on the LTF chart. Altogether, this system provides structural clarity and trade-level confirmation for breakout and reversal strategies.
สคริปต์เฉพาะผู้ได้รับเชิญเท่านั้น
เฉพาะผู้ใช้ที่ได้รับอนุญาตจากผู้เขียนเท่านั้นที่สามารถเข้าถึงสคริปต์นี้ได้ และโดยปกติจะต้องชำระเงิน คุณสามารถเพิ่มสคริปต์ลงในรายการโปรดของคุณได้ แต่คุณจะสามารถใช้งานได้หลังจากขออนุญาตและได้รับการอนุญาตจากผู้เขียนเท่านั้น เรียนรู้เพิ่มเติม ที่นี่ สำหรับรายละเอียดเพิ่มเติม ทำตามคำแนะนำของผู้เขียนด้านล่างหรือติดต่อ jangopandaq โดยตรง
TradingView ไม่แนะนำให้ชำระเงินหรือใช้สคริปต์ เว้นแต่ว่าคุณจะเชื่อถือผู้เขียนสคริปต์และเข้าใจวิธีการทำงานของมัน คุณยังอาจพบทางเลือกของโอเพนซอร์ส แบบฟรีในสคริปต์ชุมชนของเรา
คำแนะนำของผู้เขียน
คำเตือน: โปรดอ่านคำแนะนำของเราสำหรับสคริปต์เฉพาะที่ได้รับเชิญเท่านั้น ก่อนที่จะขอสิทธิ์เข้าถึง
คำจำกัดสิทธิ์ความรับผิดชอบ
สคริปต์เฉพาะผู้ได้รับเชิญเท่านั้น
เฉพาะผู้ใช้ที่ได้รับอนุญาตจากผู้เขียนเท่านั้นที่สามารถเข้าถึงสคริปต์นี้ได้ และโดยปกติจะต้องชำระเงิน คุณสามารถเพิ่มสคริปต์ลงในรายการโปรดของคุณได้ แต่คุณจะสามารถใช้งานได้หลังจากขออนุญาตและได้รับการอนุญาตจากผู้เขียนเท่านั้น เรียนรู้เพิ่มเติม ที่นี่ สำหรับรายละเอียดเพิ่มเติม ทำตามคำแนะนำของผู้เขียนด้านล่างหรือติดต่อ jangopandaq โดยตรง
TradingView ไม่แนะนำให้ชำระเงินหรือใช้สคริปต์ เว้นแต่ว่าคุณจะเชื่อถือผู้เขียนสคริปต์และเข้าใจวิธีการทำงานของมัน คุณยังอาจพบทางเลือกของโอเพนซอร์ส แบบฟรีในสคริปต์ชุมชนของเรา
คำแนะนำของผู้เขียน
คำเตือน: โปรดอ่านคำแนะนำของเราสำหรับสคริปต์เฉพาะที่ได้รับเชิญเท่านั้น ก่อนที่จะขอสิทธิ์เข้าถึง