The Problem with Manual Trendlines
Ask ten traders to draw a trendline on the same chart and you’ll get ten different lines. Some anchor to wicks, others to closes. Some require only two touches, others insist on three. The result is a tool that is theoretically powerful but practically inconsistent — different traders drawing different trendlines, getting different signals, and drawing different conclusions from identical price data.
Automated trendline tools typically solve the consistency problem but create new ones: they flood the chart with noise, draw flat lines that masquerade as trendlines, or trigger breakout signals the moment price touches the line rather than after a genuine structural break. The AIO Trendlines with Liquidity indicator was built to address all of these at once.
It automatically identifies valid pivot highs and lows, connects them into true descending resistance and ascending support trendlines, validates them through a minimum touch count, and then applies a four-signal system — two for initial breakouts, two for retest entries — each scored for quality on a β to β β β scale. Critically, all signals are non-repainting: what you see on bar close is what you get.
How Trendlines Are Drawn Automatically
The algorithm works from pivot detection outward. With the default Pivot Length of 3, a pivot high is confirmed when there are 3 bars of lower highs on each side. A pivot low requires 3 bars of higher lows on each side. Using high/low by default (not close), this captures genuine structural extremes including wick liquidity sweeps.
Validation Filters That Keep the Chart Clean
Three parameters determine whether a trendline is worth drawing at all:
- Trendline Strength (default 14): The minimum number of touches required to validate a trendline. A line connecting two pivot highs that no subsequent bar has respected is not a trendline — it’s a coincidence. The default of 14 ensures the indicator only highlights levels the market has repeatedly acknowledged.
- Min Slope % (default 0.3%): Filters out near-horizontal trendlines. If the slope of a line connecting two pivot highs represents less than 0.3% of price change per bar, it is discarded. This eliminates the common false positive of a “descending resistance” that is effectively flat — which should instead be treated as horizontal support/resistance.
- Min Distance % Between Pivots (default 1.0%): Two consecutive pivot highs must be at least 1% apart in price. Without this, a volatile sideways chop creates dozens of nearly identical pivots and the algorithm connects noise. The 1% gap ensures each pivot represents a meaningful structural point.
The result on a 1H ETH/USDT chart, for example: a clean descending red resistance line connecting three to five significant swing highs over the past 50–100 bars, and a rising green support line beneath. History lines (shown at 50% opacity) show prior trendlines that have already been broken, giving visual context without cluttering the active analysis.
Touch Tolerance and High/Low vs Close
The Touch Tolerance of 0.5% defines how close price must come to a trendline to count as a “touch.” In liquid markets like BTC or NQ futures, 0.5% is typically appropriate. In lower-volatility instruments like EUR/USD, you may want to reduce this to 0.2–0.3% to avoid false touches. By default the indicator uses high/low pricing rather than close, so a wick that sweeps a trendline and closes back inside counts as a touch — which is the correct structural interpretation.
The Four Signals: What Each One Means
AIO Trendlines with Liquidity generates four distinct signal types. Understanding the difference between them is essential to using the indicator correctly.
B Up β –β β β (Breakout Up)
A B Up fires when price closes above a validated descending resistance trendline. The green label appears directly above the breakout candle. This is the initial structural break — the first moment the indicator confirms the trendline has been penetrated with a closed candle. The star rating quantifies how good that break was across five dimensions:
- Slope angle: A steeper trendline that has been under compression for longer produces more explosive breaks
- Number of touches: A line that has been respected 8 times before breaking is more significant than one touched 3 times
- Volume spike at break: Default threshold is 1.5× the average volume. Volume expansion confirms genuine institutional participation, not just a thin liquidity sweep
- Body vs wick dominance: A large-bodied candle closing cleanly above the line is scored higher than a wick poke with a small close
- HTF alignment: Whether the 4H EMA (34-period by default) is pointing in the same direction as the break
A β β β B Up means all five factors aligned: steep trendline, many touches, volume spike, strong close, HTF trend agreement. A β B Up means the break happened but most factors were weak — treat it with caution and wait for confirmation.
B Down β –β β β (Breakout Down)
The mirror signal: price closes below an ascending support trendline. The red label fires at the break bar. The same five-factor scoring applies. A β β β B Down with heavy volume on a downward-trending HTF is a high-conviction signal to watch for short entries on the retest.
Up Buy β (Retest Long Entry)
This is where the indicator’s real edge lies. After a B Up signal, price often pulls back to re-test the broken trendline from above — old resistance becomes new support. Up Buy fires when two conditions are met: price has broken the trendline high (TPH), then retraced approximately 50% of that breakout candle’s range. The retracement requirement acts as a filter against chasing momentum. The volume confirmation threshold is 1.3× average — slightly lower than the breakout threshold since retests naturally have calmer volume.
Down Sell β (Retest Short Entry)
The mirror of Up Buy. After a B Down, price re-tests the broken support trendline from below (old support = new resistance). Down Sell fires when price bounces into the broken trendline and begins to fade. This is the preferred short entry mechanism — you’re selling into a failed support test rather than chasing the initial breakdown.
Why the Retest (Up Buy) Is Often Safer Than the Breakout (B Up)
This is the single most important concept to internalize when using this indicator. A B Up signal is immediate confirmation of a structural break — useful for aggressive traders who want to capture the initial momentum. But consider the risk dynamics:
- At B Up: You’re entering as price has already moved away from the trendline. Your stop must be placed below the trendline (now support), which may be 1–2 ATRs below entry. The risk is wide.
- At Up Buy: You’re entering on the retest, with price sitting right on the converted support trendline. Your stop goes just below that line — the tightest technically valid stop available. R:R improves dramatically.
There is one caveat: not every B Up is followed by an Up Buy. In very strong breakouts, price simply gaps and continues without a meaningful retest. In those cases, the β β β B Up entry is the only opportunity available. The discipline is to always look for the Up Buy first, and only take the B Up directly if it’s rated β β β and you have a clear defined stop.
Liquidity Lines: Where the Stops Are Clustered
A trendline is not just a technical pattern — it is a map of where traders have placed their stops. Every time price touches and rejects a resistance trendline, traders sell the touch and place buy stops just above it. The more touches, the larger the stop cluster accumulating above that line.
When the line finally breaks upward, those stops get triggered in sequence. This is not simply “breakout buying” — it is a mechanical liquidity sweep where the price engine is fueled by forced buy orders from trapped sellers. AIO Trendlines with Liquidity marks these Liquidity Lines as horizontal markers extending to the right from significant swing highs and lows. They represent price levels with known stop concentrations.
Practical application: a B Up through a trendline that sits just below a cluster of Liquidity Lines has a ready-made fuel source for continuation. Target the next liquidity level above. Conversely, a B Down that breaks through accumulated support liquidity will often accelerate as sell stops trigger sequentially.
Signal Mode: Trendline, MA, or All
The indicator offers three signal modes controlled by the Signal Mode input:
Trendline Mode
Only trendline-based signals appear (B Up, B Down, Up Buy, Down Sell). This is the cleanest setup for traders focused purely on structural trendline breaks. Recommended for swing traders on 4H and daily charts where trendlines represent multi-week structures.
MA Mode
Only MA Support/Resistance signals appear. The MA system uses a configurable moving average (default EMA 50) and detects when price has been consistently above or below it, then pulls back to touch it. The Min Bars Above/Below MA (default 15) ensures you’re trading a genuine trend MA retest, not a whipsaw through a flat MA.
All Mode
Both signal types are combined. The Min Bars Between Same Signal Type (default 10) parameter prevents a cluster of MA S/R signals in quick succession from cluttering the chart. When two valid signals of the same type fire within 10 bars, only the better-quality one is shown. This mode is most useful on shorter timeframes (15M–1H) where both trendlines and MA levels are active simultaneously.
Step-by-Step Trading Setups
Setup 1: Breakout Trade (B Up β β β )
- Wait for a B Up β β β signal — all five quality factors confirmed
- Verify the HTF MA Filter is aligned (4H trend pointing up)
- Enter on the close of the breakout candle, or at the open of the next bar
- Place stop below the trendline (now converted support) — typically 0.5–1 ATR below the line
- First target: the next Liquidity Line above. Second target: next structural resistance
- If price stalls or consolidates, watch for an Up Buy signal to add to the position on the retest
Risk note: Even β β β breakouts fail roughly 30–40% of the time. The value of the rating is not certainty — it is a higher probability setup compared to β breakouts. Always use a stop.
Setup 2: Retest Entry (Up Buy after B Up)
- A B Up has already fired (any star rating). Mark the broken trendline as potential support
- Watch for price to pull back toward that trendline
- When an Up Buy label appears, the retracement to ~50% of the breakout has completed with volume confirmation
- Enter long at the Up Buy signal candle close
- Stop: just below the converted trendline support. This is the tightest, highest-quality stop in the setup
- Target: the prior swing high that was penetrated on the B Up, then Liquidity Lines above
This is the preferred high-R:R setup. Entries at the retest typically offer 2:1 to 4:1 R:R depending on the distance to target. The retest also gives you market confirmation that the trendline has held as support on a re-test — the strongest possible validation.
Setup 3: Using Liquidity Lines as Targets
- After entering on an Up Buy, identify the next Liquidity Line above the entry
- If the Liquidity Line is within 1–2 ATR of entry, consider it a minor obstacle — price may stall briefly before continuing
- If the Liquidity Line is 3+ ATR above entry, it is a natural profit-taking zone — partial exit or full target
- Watch Banker Momentum (if using the full AIO stack) for institutional momentum confirmation as price approaches the liquidity level
- A Liquidity Line that gets swept cleanly (wicked through then closed back below) becomes a warning sign: the level was defended. Consider reducing position size or exiting
Key Settings to Adjust for Your Market
The defaults are calibrated for mid-cap crypto and equity index futures on 1H–4H timeframes. If you trade in different conditions:
- Forex (EUR/USD, GBP/USD): Set Market Type to “Forex” in the Liquidity Lines group. Reduce Touch Tolerance to 0.2–0.3% to match tighter spreads and cleaner price action. Reduce Min Slope to 0.1–0.2% since forex trends are often slower.
- Crypto (BTC, ETH): Default settings work well. Consider raising Breakout Volume Threshold to 1.8× on daily charts where false breakouts on moderate volume are common.
- Stocks (individual equities): Set Market Type to “Stocks.” Pivot Length of 5 on daily charts gives cleaner swing points. Trendline Strength of 10–12 is appropriate since individual stocks respect fewer touches than index futures.
- Star Filter: If you prefer only the highest-quality signals, set the B Up/B Down Star Filter to “Only 3 Stars.” You’ll see fewer signals but each one has all quality factors confirmed. The default “2+ Stars” is a reasonable balance between frequency and quality.
What the HTF MA Filter Does
The HTF MA Filter uses the 4H EMA (34-period by default) to determine the higher-timeframe trend direction. With HTF Confirmation Bars set to 15, price must have been above or below that HTF EMA for at least 15 bars before a signal qualifies as trend-aligned.
In practice: on a 15-minute chart, if the 4H EMA 34 is pointing up and price has been above it for at least 15 4H bars, Up Buy signals are considered HTF-aligned — which contributes positively to the star rating. Counter-trend signals (Up Buy while below the 4H EMA) still fire but will score lower because the HTF alignment factor reduces their rating. You can disable the HTF filter entirely if you trade mean reversion or range-bound strategies where trend alignment is less relevant.
Key Takeaways
- All signals are non-repainting — what prints on bar close stays. This is a hard requirement for any automated signal system used in real trading.
- The Min Slope % filter is one of the most important settings: without it, horizontal lines masquerade as trendlines and generate false breakouts constantly.
- A B Up β β β is worth paying attention to immediately; a B Up β should almost always be ignored until an Up Buy confirms.
- The Up Buy and Down Sell setups consistently offer better R:R than chasing the initial B Up/B Down because you enter with the trendline directly beneath you as support.
- Liquidity Lines are not just decoration — they represent where the next wave of orders is clustered. Use them as targets on breakout trades and as caution zones on counter-trend ideas.
- In All Mode, the Min Bars Between Same Signal Type prevents signal spam — adjust it down to 5 on higher timeframes where signals are naturally spaced further apart.
- Combine with AIO Banker Momentum Volatility for signal confirmation: a β β β B Up with a Banker momentum cross simultaneously is a genuinely high-conviction setup.
Try AIO Trendlines with Liquidity
Auto-drawn trendlines, 4-signal breakout system, and liquidity pool detection — all non-repainting.
View on TradingViewTry All AIO Indicators Free for 5 Days
Full access to the entire suite including Trendlines with Liquidity, Banker Momentum, Magic Bands, and more. No credit card required.
Start Free Trial