OPEN-SOURCE SCRIPT

Jackfx Trendlines Machine

335
Jackfx Trendlines Machine
The Jackfx Trendlines Machine is an advanced, automated technical analysis tool designed to eliminate the subjectivity and noise associated with manual trendline drawing. Built for traders who rely on structural breakouts and retests, this indicator dynamically identifies high-probability zones by filtering out volatile market spikes.

Core Mechanics
Instead of relying on standard candlestick wicks, the indicator calculates major market pivots using background Heikin Ashi (HA) data. Because Heikin Ashi averages price action, the resulting swing highs and lows represent true structural turning points rather than momentary liquidity sweeps. The indicator then connects these definitive pivots on your standard candlestick chart to draw accurate, objective trendlines.

Key Features
Noise-Free Pivot Detection: By sourcing high/low pivots from Heikin Ashi data, the indicator ignores "fakeout" wicks, anchoring trendlines strictly to validated market structure.

Dynamic Auto-Drawing: The script automatically isolates the two most recent and significant swing highs (for downtrends) and swing lows (for uptrends), connecting them and projecting the line forward to anticipate future touches.

ATR-Filtered Breakouts: To protect against false breakouts, the indicator incorporates an Average True Range (ATR) buffer. A breakout signal (indicated by visual triangles) is only generated when the price closes across the trendline with sufficient momentum.

Retest Validation: The extended trendlines act as forward-looking support and resistance levels. When a breakout occurs, traders can use the extended lines to stalk high-probability retest entries.

Customizable Sensitivity: Users can adjust the "Pivot Length" inputs to tailor the indicator to their trading style. Lower values plot minor, short-term trendlines, while higher values isolate major, macro-structural trendlines.

Ideal Use Case
This tool is highly effective for price action traders looking to automate their structural analysis. It excels in identifying clean breakout setups and providing objective zones for pullback/retest entries across all timeframes.

Disclaimer

The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.