Compare A/B
Compare two series, with a factor for B. Compares two series, such as price and EMA. The factor scales B, e.g. volume above 1.8 × average. “Crosses” also looks at the previous candle.
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 | A a |
Number series | required |
| Input | B b |
Number series | required |
| Output | true/false out |
Signal (true/false) | – |
Settings
Section titled “Settings”The settings appear on the right under “Properties” once the node is selected on the board. Those marked “More” appear after clicking “More”.
| Setting | Default | Allowed | Meaning |
|---|---|---|---|
Condition operator |
above (above) |
above · below · at least · at most · crosses above · crosses below · crosses | – |
Factor for B factor |
1 | from 0 to 1,000 | – |
Example
Section titled “Example”Compares two series: the volume is above 1.8 times its average.
On the board it reads: Volume above avg volume 20 × 1.8
Chain as JSON
To try it, copy it and paste it in the editor under “Import”. Importing creates a new chain.
{ "name": "Example: Compare A/B", "version": 1, "nodes": [ { "id": "c1", "type": "core.candle", "position": { "x": 40, "y": 40 }, "settings": { "pair": "SOL/USDT", "timeframe": "1h" } }, { "id": "v1", "type": "core.volume", "position": { "x": 260, "y": 40 }, "settings": {} }, { "id": "k1", "type": "core.compare-ab", "position": { "x": 480, "y": 40 }, "settings": { "operator": "above", "factor": 1.8 } }, { "id": "t1", "type": "core.telegram", "position": { "x": 700, "y": 40 }, "settings": {} } ], "edges": [ { "from": "c1.volume", "to": "v1.in" }, { "from": "c1.volume", "to": "k1.a" }, { "from": "v1.average", "to": "k1.b" }, { "from": "k1.out", "to": "t1.in" } ]}Good to know
Section titled “Good to know”- Search also finds it under: crosses, cross, ema, price, above, below, factor.
Technical details
Section titled “Technical details”- Type in the chain:
core.compare-ab· Version 1.0.0 · Category keycond - Reference tests in the manifest: 1 (with fixed price data
binance-btcusdt-1h-500) - How a node is built