A trendline drawn by hand is always drawn afterwards. You look at the chart, pick two lows and then find a third that seems to agree. Edo Trendlines Auto makes that choice by rule and then adds what a drawing usually leaves out: the bar on which the line could first have been seen. The rule rests on how many times price touched the line and how many times it went through.
Swings first, lines second
Lines are anchored on confirmed swings, a high or a low with 8 bars on each side, so a swing is only known 8 bars after it forms. For each side the indicator takes the latest 8 swings inside a 300-bar window and tests all 28 pairs as candidate lines. A pair is dropped when the line sits more than 6 ATR from the close. With Allowed Slopes on Any, a resistance may rise and a support may fall, as in the walls of a channel.
A score for every bar
Each candidate is walked from its first anchor to the current bar. A wick that reaches the touch zone, 0.15 ATR around the line, and stays on its side is a touch worth 10 points, and consecutive bars count once. A body that sticks out of the zone, or a wick that overshoots it, is a crossing worth minus 15. A close beyond the zone after the second anchor discards the candidate. The highest score wins, with at least 3 touches and at most 2 crossings.
The diamond
A line exists only once both swings are confirmed and price has respected it enough, and a diamond marks that bar. To its left the line is dotted and fainter, because that stretch was drawn in hindsight. To its right it is solid, and that is the stretch that could have been followed live. The line then projects at most 6 bars past the last one, and never more than 1.5 ATR, so it does not leave the frame.
Channel, breaks and replacements
The channel is a parallel through the farthest opposite swing between the two anchors. It is kept only if it is between 1 and 12 ATR wide and no bar has closed beyond it. It is green when it rises faster than 0.015 ATR per bar, red when it falls and grey in between, with a denser fill the steeper it is. A line breaks only on a close beyond its zone: it turns grey, loses its hindsight stretch and a new search starts on that same bar. A line beaten by a higher score is greyed too, with the label Replaced by a stronger line.
Panel, alerts and limits
The Position row names one of five states against the strongest intact line: inside the channel, testing the line, testing the channel edge, beyond the channel or broken. Last event, each line with its score and the channel complete the Full panel, and Compact keeps four rows. Eight alerts cover new lines, touches, breaks and the two channel events. The score describes the past, so the best line can break on the next bar. A line also appears 8 bars after its second anchor, never sooner, and on a logarithmic scale a long line looks slightly curved.