Bentrix Docs
HomePricingDashboard

Trendline by angle

Lines1 anchorin every package

One anchor and an angle, drawn as a ray from that anchor.

The datum stored is the screen angle in degrees - up is positive, and it defaults to 45 - and not a price-per-bar gradient. That is the whole meaning of this kind and the reason it sits beside the trend line rather than inside it: the same 45 degrees implies a different price per bar at every zoom and after every drag of the price scale, so what stays fixed as the chart moves is the picture and not a market quantity. It is the inversion of every other kind here, whose anchors hold price and time.

01The tool, live

Live figureDrag the numbered anchor.

Placed and drawn by Bentrix’s own code over the same synthetic bars on every page — an illustration of the tool’s geometry, not a market.

02Its parts, named

1What it drawsone fixed screen slope fromone instant and one priceAnchor 1The point the ray leaves from
  1. 1Click on the bar and the price
  2. 2The tool is placed
Placed by Bentrix’s own code on the sample bars. The placement plays once as you reach the figure.

03What you see

A ray from one point at an angle you set, 45° by default. The angle is the one on screen.

A line set by a point and an angle rather than two points — useful for comparing slopes.

What it shows

It shows one fixed screen slope from one instant and one price.

04Where it comes from

From Gann's teaching that a market rising one unit of price per unit of time — his 1×1, drawn at 45° on paper ruled to a fixed scale — was in balance. On a screen without a fixed scale, the angle belongs to the picture; this tool says so plainly.

05How it is placed

  1. Open the chart's Tools column and choose Line tools › Trendline by angle.
  2. Click on the point the ray leaves from.
  3. With the magnet on, an anchor dropped near a candle's open, high, low or close snaps to it.

Its anchor

  1. 1The point the ray leaves from

Put the anchor where the ray should start and set the angle.

06The geometry

Δy=tan(θ)Δx
θthe angle you set, in screen degrees; up is positive
Δx,Δypixels across and up from the anchor

The same 45° means a different price per bar at every zoom. For a slope fixed in price per bar, use the Gann line or the Gann fan, which take their scale from two anchors.

07Settings and defaults

Trendline by angleits properties window
Anchors1Each is a moment and a price, never a pixel: the tool stays on its bars through a zoom, another interval or older history.
Angle, in screen degrees45Up is positive.
Colour, width and line stylethe chart's ink, width 1Width from 1 to 5; Solid, Dash, Dot or Dash-dot.
TextnoneA name written on the tool.
Visibilityevery intervalThe intervals the tool is drawn on.
LockoffA locked tool is not moved by a drag.

08Readings — what traders look for

A reference slope. With the chart's scale left fixed, readers compare a move against a chosen angle: above it, the move is faster than the reference.

Parallel rays at one angle from successive lows show whether each push kept the same pace.

09What it does not tell you

!

An angle on screen is not a rate of change in the market.

10Limits and common misreadings

Zooming changes what it means. Set the chart's scale first, then the angle.

It cannot be compared between charts.

11On other chart types

A drawing is fixed to moments and prices, so it keeps its place on every chart type. On a chart built by price or by activity — Renko, Range bars, Point & Figure, Kagi, Line break — each anchor stands on the brick, bar or column that holds its moment. No chart type refuses a drawing.

12In Bentrix

  • Where it is: the chart's Tools column › Line tools › Trendline by angle.
  • Its properties: select the tool and open its properties window; the small bar that floats beside a selected tool has its lock.
  • Undo: Ctrl+Z takes back the last drawing step on that chart.
  • In a pane: every tool can also be placed in an indicator's own pane.

13From an agent or a program

An agent or a program places the tool with object_place: the chart, the kind trend_by_angle, and its anchors in placement order, each a moment (t_ms, milliseconds since 1970 on the workbench's feed) and a price. Acting on a chart needs the lab permission, and tools that act are part of Plus.

{
  "name": "object_place",
  "arguments": {
    "chart": "<chart uri>",
    "kind": "trend_by_angle",
    "anchors": [
      {
        "t_ms": 1710151200000,
        "price": 1.085
      }
    ]
  }
}

object_move moves its anchors, object_change its look, object_find lists a chart's drawings and object_delete removes one. All of them are in the MCP reference, and every SDK language has the same calls.

15Sources

  1. Kirkpatrick, Charles D., and Julie R. Dahlquist. Technical Analysis: The Complete Resource for Financial Market Technicians. 2nd ed., FT Press, 2010.

Bentrix 0.1.382Every number, name and default on these pages is read from the application itself.What is comingWhat changed