Bentrix Docs
HomePricingDashboard

Ray

Lines2 anchorsin every package

The same two anchors as a trend line, extended past the second one to the edge of the plot and never past the first.

That direction is the convention here, and the second click is what chooses it: put the first anchor on the older turn and the second on the newer one, and swapping them runs the other end on. Past the last loaded bar the extension is spaced by the timeframe's nominal duration, because outside the loaded range there is no measured spacing to use instead.

01The tool, live

Live figureDrag anchor 1 or 2. Scroll to zoom, drag the bars to pan.

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

12What it drawsthe level the line reaches atinstants that have no barsyet, which is the arithmeticAnchor 2The newer turnAnchor 1The older turn
  1. 1Press on anchor 1
  2. 2Drag: a ghost of the whole tool follows the pointer
  3. 3Release on anchor 2
Placed by Bentrix’s own code on the sample bars. The placement plays once as you reach the figure.

03What you see

A trend line that does not stop at its second point: it runs on past it to the edge of the chart, into bars that do not exist yet. Nothing is drawn behind the first point.

What it shows

It shows the level the line reaches at instants that have no bars yet, which is the arithmetic of two anchors carried forward and nothing that has been tested.

04Where it comes from

The ray is the trend line as Edwards and Magee used it in practice — carried forward, so the level it will stand at tomorrow can be read today.

05How it is placed

  1. Open the chart's Tools column and choose Line tools › Ray.
  2. Press on the older turn, drag to the newer turn, and release. A ghost of the whole tool follows the pointer while you drag.
  3. With the magnet on, an anchor dropped near a candle's open, high, low or close snaps to it.

Its anchors

  1. 1The older turn
  2. 2The newer turn

06The geometry

The same slope as a trend line, continued for every bar after the second anchor:

P(b)=P1+P2−P1b2−b1(b−b1),b≥b1
bi, Pithe bar and the price of anchor i
P(b)the ray's price at bar b

The second anchor chooses the direction: swap the two and the other end runs on. Past the last candle, bars are spaced by the interval's nominal length, because there is no measured spacing out there to use.

07Settings and defaults

Rayits properties window
Anchors2Each is a moment and a price, never a pixel: the tool stays on its bars through a zoom, another interval or older history.
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

The projected level. Readers note the price the ray reaches at a future bar and watch what price does when it gets there.

Slope against time. A steep ray reaches far-away prices quickly; if price cannot keep up with it, the trend it describes has slowed.

Touches after the second anchor are the ones that test the line, because the first two were chosen.

09What it does not tell you

!

The part of the ray to the right of the last candle is the line's own arithmetic carried forward. Nothing out there has been tested.

10Limits and common misreadings

Direction is the click order. If the ray runs the wrong way, the anchors are in the wrong order.

Weekends and holidays occupy no bars, so a ray's future level is counted in bars, not in calendar days.

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 › Ray.
  • 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 ray, 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": "ray",
    "anchors": [
      {
        "t_ms": 1710151200000,
        "price": 1.085
      },
      {
        "t_ms": 1710172800000,
        "price": 1.0862
      }
    ]
  }
}

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. Edwards, Robert D., and John Magee. Technical Analysis of Stock Trends. 1948; 9th ed., CRC Press, 2007.

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