Tool
Trend Line Object
object.trend_line
Inputs
First anchor Point.
Second anchor Point.
Outputs
A chart-object sink — it draws on the terminal chart and outputs nothing. Nothing can be wired from it.
Trend Line Object connects two anchor points with a trend, cycle, or arrowed line — or draws a fixed-angle line from one anchor.
How it works
Wire two Point streams into 'point_a' and 'point_b' (trend_by_angle needs only 'point_a' plus the angle knob). The line redraws as the anchors confirm. On MetaTrader 4 the arrowed line renders as a trend line plus an arrow head, and only the right ray exists — a requested left ray is dropped with a one-time journal note.
Modes
Mode options
A straight line between the two anchors, with optional rays.
A line from the first anchor at a fixed angle in degrees.
Repeating vertical lines spaced by the two anchors' interval.
A line with an arrow head at the second anchor (MetaTrader 4 composes it from a trend line plus an arrow).
Placement options
One object per confirmed anchor, oldest removed beyond the cap.
One object that follows the latest confirmed anchor.
Line style options
An unbroken line.
A dashed line. Width above 1 forces solid — a platform rule.
A dotted line. Width above 1 forces solid — a platform rule.
Alternating dashes and dots. Width above 1 forces solid.
A dash followed by two dots. Width above 1 forces solid.
Configuration
Line family: trend (2 anchors + rays), trend_by_angle (1 anchor + angle), cycles (2 anchors, repeating verticals), arrowed_line (2 anchors with an arrow head at the end).
How the object tracks the anchor stream: 'stamped' leaves one object per triggering bar (capped by max_objects); 'single' keeps one object moved in place.
Stamped-placement cap: the oldest object is removed once more than this many are on the chart (FIFO).
Object color (#rrggbb).
Line / border / glyph width in pixels.
Line pattern for line-drawing styles. The platforms force solid when width is above 1.
Extend the line left beyond the first anchor (MetaTrader 4 has no left ray — dropped there with a one-time journal note).
Extend the line right beyond the second anchor.
Line angle in degrees for trend_by_angle.