Auto Trendlines + HTF [AFD]

410
Tired of switching timeframes just to see the trendlines?

Auto Trendlines + HTF brings higher- and lower-timeframe trendlines onto the chart you’re already watching. You can compare them with your chart’s own Short, Mid and Long lines, and each tag shows which timeframe its line comes from.

WHAT IT DRAWS

A rising line joins two confirmed swing lows when the second anchor price is higher than the first. A falling line joins two confirmed swing highs when the second anchor price is lower. Between the anchors, wicks may cross the line by up to Pierce Tolerance. After the second anchor, your wick or close violation rule applies. When several pairs qualify for a new line of the same direction and length, the script draws the line nearest that timeframe’s close.

READING THE CHART

  • On a standard time-based chart, turn on Multi-timeframe lines for up to two higher and two lower intervals. Auto selects them for your chart. You can turn a source Off or choose a fixed interval that fits its slot. For example, when both higher intervals are active, Higher 2 must be longer than Higher 1. Higher lines are gold by default and lower lines are cyan.
  • Anchor Price uses wick tips by default. Choose Body to connect the tops of the pivot candle bodies for a falling line or the bottoms for a rising line. Both modes find swings from candle highs and lows.
  • Minimum Touches sets how many touches a line needs before it can appear. At 2, wicks on two separate bars after the second pivot must come within your touch tolerance. Show touch count includes those early touches.
  • Glow adds a halo. To shade between lines pointing the same way, use Shade between chart lengths for chart lines or Timeframe bands for the overlap within the higher or lower pair.


WHEN A LINE APPEARS

At default settings, Short chart pivots and pivots on other timeframes confirm 10 bars later on their own interval. Mid and Long chart pivots take 20 and 40 chart bars. The line first appears after the second pivot confirms and the pair qualifies. Higher lines use their previous closed candle. Lower lines update at chart-bar close.

THE TWO ALERTS

A chart-line violation at bar close can trigger Ascending line violated or Descending line violated. A line that exceeds its age limit retires silently. The ten Pine Screener fields also follow the chart’s own lines.

Open source under the Mozilla Public License 2.0.

Aviso legal

As informações e publicações não se destinam a ser, e não constituem, conselhos ou recomendações financeiras, de investimento, comerciais ou de outro tipo fornecidos ou endossados pela TradingView. Leia mais nos Termos de Uso.