Skip to content

Compare A/B

Conditions core.compare-ab Version 1.0.0

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.

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) –

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 –

Compares two series: the volume is above 1.8 times its average.

Example chain: Candle, Volume, Compare A/B, TelegramConnections: Candle → Volume, Candle → Compare A/B, Volume → Compare A/B, Compare A/B → Telegram.CandleSOL/USDT · Binance · 1hVolume20-candle averageCompare A/BVolume above avg volume 20× 1.8Telegramlinked chat · at most every4 h

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.

compare-ab.json
{
"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" }
]
}
  • Search also finds it under: crosses, cross, ema, price, above, below, factor.
  • Type in the chain: core.compare-ab · Version 1.0.0 · Category key cond
  • Reference tests in the manifest: 1 (with fixed price data binance-btcusdt-1h-500)
  • How a node is built