Advanced Trend Break Targets

The Advanced Trend Break Targets (ATBT) is a semi-automated technical analysis system designed to validate trendline trading strategies with algorithmic precision. While standard trendlines are subjective drawings, the ATBT converts user-defined price structures into a mathematical model. It projects a trajectory based on two specific "Anchor Points" and monitors price action for valid breakouts, applying a strict "Confluence Filter" before generating signals or projecting targets.
Originality & Utility
Most trendline indicators rely on automatic detection, which often draws lines across irrelevant swing points. The ATBT respects the trader's discretion by allowing manual placement of the trendline (via timestamps) while automating the tedious tasks of monitoring for breaks, checking momentum conditions, and calculating Fibonacci risk-to-reward levels. This "Hybrid" approach combines human pattern recognition with machine discipline, ensuring trades are only signaled when specific quantitative conditions are met.
Detailed Methodology
1. The Advanced Projection Logic
The core of the script calculates a linear trajectory between two points in time (Start Date and End Date). Unlike standard drawings, this script calculates the exact slope (m) using the bar index difference
The script automatically detects the "Price Source" at your chosen timestamps. If a Pivot High exists at the start date, it defaults to a Resistance Line (Highs). If a Pivot Low exists, it defaults to a Support Line (Lows). This slope is then projected forward indefinitely:
2. The Confluence Filter (Multi-Condition Validation)
A raw price crossover is often a "fake-out." To combat this, the script includes a Mandatory Conditions engine. A breakout is only confirmed if the user-selected conditions are TRUE at the moment of the cross:
Volume Confirmation: Verifies if the breakout bar's volume is greater than its 20-period SMA.
CHOCH (Change of Character): Checks if the price has broken the most recent Swing High (for bullish setups) or Swing Low (for bearish setups) prior to the trendline break.
Swing Break: A strict check requiring the close to be beyond the last swing point.
Momentum (MACD & RSI): Ensures the MACD line is crossing the Signal line or that RSI is on the correct side of the 50 threshold.
Trend Filter (SMA): Verifies that price is above the 20 SMA (bullish) or below it (bearish).
3. Dynamic Target & Risk Calculation
Upon a validated breakout, the script scans the chart history for the most recent Pivot High or Low (within the lookback period) to define the "Structure Width" or Risk distance (D).
Stop Loss (SL): Placed at the recent Pivot Price.
Target 1: Projected at $1.0 \times D from the breakout point.
Target 2: Projected at $1.618 \times D (Golden Ratio).
Target 3: Projected at $2.618 \times D.
How to Use
1. Identify the Structure: visually identify a trendline on your chart (e.g., the upper resistance of a Wedge or Flag).
2. Set Anchors: Go to the script settings (Inputs tab) and enter the exact timestamp for Point 1 (Start of trendline) and Point 2 (End of trendline).
Tip: Ensure these dates align with the specific high/low candle you want to anchor to.
3. Configure Filters: Toggle the checkboxes in the "Mandatory Conditions" group.
Example: If you want to trade pure price action, enable "Require CHOCH" but leave "Require MACD" unchecked.
4. Interpret Signals:
Blue Labels (1 & 2): Indicate where the script has Advanced the trendline.
"Breakout" / "Breakdown" Label: Appears when price crosses the projected line AND all selected conditions are met.
Green/Red Dotted Lines: represent your Take Profit targets based on the structure width.
Inputs & Settings
TBT Group:
Start/End Date: The timestamps defining the line.
Pivot Left/Right: Controls the sensitivity of the pivot detection used for Stop Loss placement.
Extend Target Line: How far into the future the target lines are drawn.
Mandatory Conditions Group:
Require Volume / CHOCH / MACD / SMA / RSI: Individual toggles to build your specific trade strategy.
Thresholds: Adjust the lengths for SMA and RSI to match your preferred timeframe.
Example:
XAUUSD 4-hour timeframe
We had an uptrend. We added the indicator and set the point at the penultimate low (HL) and then the second point at the last low (HL), as shown in the following image.
You can choose the conditions you prefer to be met to trigger the breakout from the user settings.
Based on the conditions you set, if they are met, the indicator displays all the data, as seen in the following image. A stop-loss point was set, the breakout candle was identified, and the first target was set (you can choose to display the second and third targets from the user settings, noting that they are less likely to be achieved).
As we can see in the last image, the price reached the first target, then continued its path and achieved the second target as well. Afterward, it shifted to a short sideways trend and then reversed.
TBT vs. ATBT: Key Technical & Functional Enhancements
The ATBT (Advanced Trend Break Target) script introduces significant upgrades over the Free TBT, transforming it from a pure geometric breakout tool into a comprehensive strategy scanner with multi-factor confluence capabilities. Below are the primary differences:
1. Integration of Confluence Filters ("Mandatory Conditions")
The most substantial change is the addition of a robust filtering engine. While TBT relied solely on price crossing the trendline to trigger a signal, ATBT introduces a "Mandatory Conditions" input group. Traders can now require specific criteria to be met before a breakout is validated:
Volume Confirmation: Requires volume to exceed its SMA.
Market Structure (CHOCH): Can require a Change of Character to have occurred prior to the entry.
Momentum & Trend Filters: Options to enforce confirmation from MACD (crossovers), RSI (thresholds), and SMA (price location relative to the moving average).
2. Automated Risk Management (Stop-Loss)
ATBT adds a built-in Stop-Loss mechanism, addressing a missing feature in TBT.
TBT: Only projected Profit Targets (T1, T2, T3).
ATBT: Automatically calculates and plots a Stop-Loss (SL) level based on the pivot price used for the setup. This provides an immediate Risk/Reward visualization upon signal generation.
3. Smart Source Detection
ATBT improves user experience with an automation feature regarding the "Price Source" (High vs. Low).
TBT: The user must manually select whether they are anchoring to "High" or "Low" via the settings.
ATBT: The script attempts to automatically detect the correct source at the "Start Date" by checking if a pivot high or low exists at that timestamp, reducing manual configuration errors.
4. Enhanced Visuals & Swing Point Tracking
Visual clarity has been upgraded in the new version.
Swing Points: ATBT includes a `showSwingPoints` toggle that plots visual markers (circles) on Swing Highs and Swing Lows, helping traders visualize the market structure used for CHOCH and pivot calculations , Helping the trader identify the locations of the first and second points .
Signal State Tracking: ATBT uses "latched" logic (e.g., `chochMet`, `swingBrkMet`) to track if conditions were met anytime between Point 2 and the breakout, whereas TBT treated CHOCH largely as a separate visual component unrelated to the main trigger.
5. Refined Signal Logic
TBT: Triggers immediately upon a close across the trendline.
ATBT: Triggers only if the trendline cross occurs AND all enabled "Mandatory Conditions" return true. This significantly reduces noise by filtering out low-quality breakouts that lack structural or momentum support
Disclaimer
This script is a tool for visualizing market structure and calculating potential geometries. It does not guarantee future performance. Breakouts can fail, and "Mandatory Conditions" are lagging indicators that confirm past data. Always manage risk responsibly.
สคริปต์แบบเฉพาะผู้ได้รับเชิญเท่านั้น
เฉพาะผู้ใช้งานที่ผู้เขียนอนุมัตเท่านั้นจึงจะสามารถเข้าถึงสคริปต์นี้ได้ คุณจะต้องขอและได้รับอนุญาตก่อนใช้งาน ซึ่งโดยทั่วไปจะได้รับอนุญาตหลังจากชำระเงินแล้ว สำหรับรายละเอียดเพิ่มเติม โปรดทำตามคำแนะนำของผู้เขียนด้านล่าง หรือติดต่อ MarkitTick โดยตรง
TradingView ไม่แนะนำให้จ่ายเงินหรือใช้สคริปต์ เว้นแต่คุณจะเชื่อถือผู้เขียนและเข้าใจวิธีการทำงานของสคริปต์นั้นอย่างถ่องแท้ คุณยังสามารถหาทางเลือกแบบโอเพนซอร์สฟรีได้ใน สคริปต์ชุมชนของเรา
คำแนะนำของผู้เขียน
คำจำกัดสิทธิ์ความรับผิดชอบ
สคริปต์แบบเฉพาะผู้ได้รับเชิญเท่านั้น
เฉพาะผู้ใช้งานที่ผู้เขียนอนุมัตเท่านั้นจึงจะสามารถเข้าถึงสคริปต์นี้ได้ คุณจะต้องขอและได้รับอนุญาตก่อนใช้งาน ซึ่งโดยทั่วไปจะได้รับอนุญาตหลังจากชำระเงินแล้ว สำหรับรายละเอียดเพิ่มเติม โปรดทำตามคำแนะนำของผู้เขียนด้านล่าง หรือติดต่อ MarkitTick โดยตรง
TradingView ไม่แนะนำให้จ่ายเงินหรือใช้สคริปต์ เว้นแต่คุณจะเชื่อถือผู้เขียนและเข้าใจวิธีการทำงานของสคริปต์นั้นอย่างถ่องแท้ คุณยังสามารถหาทางเลือกแบบโอเพนซอร์สฟรีได้ใน สคริปต์ชุมชนของเรา