Trend line
- Value
falling · 86,999 → 84,352
- Line
Line through two points on the chart. A straight line through two points you draw on the chart, such as two highs. From the first point it continues to the right, past the last candle too. With a Compare A/B the chain alerts you when the price crosses the line. Example: “Price crosses above trend line” reports the breakout above a falling line.
What it looks like
Section titled “What it looks like”- Price (close of each candle)
- Trend line
- points of the line
- Price crosses above Trend line
Setting it in the chart
Section titled “Setting it in the chart”
In the properties, a chart shows the last 150 candles with the trend line and its points; the top line shows how far the price at the last candle is above or below the line. You draw and drag it on the chart: “Enlarge” opens it, and a trend line without points is drawn there with “Draw the line on the chart”. You can also type time and value of the points in the fields.
More under Draw a trend line.
Settings
Section titled “Settings”The settings appear on the right under “Properties” once you click the node on the board. Below each field you find the same explanation as here.
Point 1: time
Section titled “Point 1: time”Where the line starts: the candle of the first point, in your time zone. On the chart you set the point with a click and drag it with the mouse or your finger.
Point 1: value
Section titled “Point 1: value”The value at the first point, usually a price like 84,120. If the point sits on a high, take the price of the high.
Point 2: time
Section titled “Point 2: time”The candle of the second point. The line runs through both points and then on to the right.
Point 2: value
Section titled “Point 2: value”The value at the second point. Higher than the first means a rising line, lower means a falling one.
Example
Section titled “Example”A breakout: the trend line falls through two highs, Telegram notifies you as soon as the price rises above it. You draw it on the chart with two clicks.
How to connect the nodes:
- Candle (Price) → Trend line (Value)
- Candle (Price) → Compare A/B (A)
- Trend line (Line) → Compare A/B (B)
- Compare A/B (true/false) → Telegram (Trigger)
On the board it reads: falling · 86,999 → 84,352
Chain as JSON
To try it, copy it and paste it in the editor under “Import”. Importing creates a new chain.
{ "name": "Example: Trend line", "version": 1, "nodes": [ { "id": "c1", "type": "core.candle", "position": { "x": 40, "y": 40 }, "settings": { "pair": "BTC/USDT", "timeframe": "1h" } }, { "id": "l1", "type": "core.trendline", "position": { "x": 260, "y": 40 }, "settings": { "time1": "2026-10-05T00:00:00Z", "value1": 86999, "time2": "2026-10-12T04:00:00Z", "value2": 84352 } }, { "id": "k1", "type": "core.compare-ab", "position": { "x": 480, "y": 40 }, "settings": { "operator": "crossesAbove" } }, { "id": "t1", "type": "core.telegram", "position": { "x": 700, "y": 40 }, "settings": {} } ], "edges": [ { "from": "c1.close", "to": "l1.in" }, { "from": "c1.close", "to": "k1.a" }, { "from": "l1.out", "to": "k1.b" }, { "from": "k1.out", "to": "t1.in" } ]}Inputs and outputs
Section titled “Inputs and outputs”Only matching types connect: number series to number series (round pin), signal to signal (square), message to message (diamond).
| Direction | Pin | Type | Note |
|---|---|---|---|
| Input | Value | Number series | required |
| Output | Line | Number series | in the unit of the input |
Good to know
Section titled “Good to know”- In messages the value is called “Trend line”.
- Search also finds it under: trend line, trendline, line, draw, breakout, resistance, support.
Technical details
Section titled “Technical details”Value on every candle from the first point: value 1 + (value 2 − value 1) · (open time − time 1) / (time 2 − time 1), linear in time; empty before the first point and without a value at the input.
- Type in the chain:
core.trendline· Version 1.0.0 · Category keyind - Settings in the chain:
time1(Point 1: time),value1(Point 1: value),time2(Point 2: time),value2(Point 2: value) - Pins in the chain: Input
in· Outputout - Reference tests in the manifest: 3 (with fixed price data: 500 candles of 1h)
- How a node is built
Version 2026.10.24.21 · Changelog