Bentrix Docs
HomePricingDashboard

Sine line

Cycles2 anchorsin every package

Two anchors and a sine wave through both: the first at the start of a swing, the second half A period later, the swing's height their price difference, drawn across the plot.

It steps in bars.

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

12Anchor 2The next opposite turnWhat it drawsthat one swing repeated as awave both ways, which is acurve through two points andAnchor 1A 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 sine wave through two points — one swing — repeated across the chart in both directions.

What it shows

It shows that one swing repeated as a wave both ways, which is a curve through two points and nothing measured beyond them.

04Where it comes from

The idea that markets turn at regular intervals is old; J. M. Hurst's 1970 book made cycle analysis a method, and Edward Dewey's Foundation for the Study of Cycles collected the evidence for and against.

05How it is placed

  1. Open the chart's Tools column and choose Patterns › Sine line.
  2. Press on a turn, drag to the next opposite 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. 1A turn
  2. 2The next opposite turn

Put the first anchor on a turn and the second on the next opposite turn.

06The geometry

P(b)=P1+P22+P1−P22cos(πb−b1b2−b1)
bi, Pithe bar and the price of anchor i
P(b)the wave's price at bar b

The two anchors are half a period apart, and their price difference is the wave's height.

07Settings and defaults

Sine lineits 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

Staying in step. Readers watch whether price keeps turning with the wave.

Drifting out of step shows the period was not stable.

09What it does not tell you

!

A curve through two points. Markets are not sine waves.

10Limits and common misreadings

One fixed period and one fixed height — real swings have neither.

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 › Patterns › Sine line.
  • 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 sine_line, 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": "sine_line",
    "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. Hurst, J. M. The Profit Magic of Stock Transaction Timing. Prentice-Hall, 1970.

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