Skip to content

Cooldown

Logic & timing core.cooldown Version 1.0.0

At most one signal per period. Only passes the change from false to true and then blocks for the set time. Against alert floods.

Only matching types connect: number series to number series (round pin), signal to signal (square), message to message (diamond).

Direction Pin Type Note
Input Signal in Signal (true/false) required
Output Trigger 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
Cooldown (hours) hours 4 h from 0 to 168 h –

The crash alarm from the templates: after one alert it stays quiet for 12 hours, for both channels at once.

Example chain: Candle, Change %, Compare, Cooldown, Push, TelegramConnections: Candle → Change %, Change % → Compare, Compare → Cooldown, Cooldown → Push, Cooldown → Telegram.CandleETH/USDT · Binance · 1hChange %over 4 candlesComparechange 4 below -5Cooldownmax. once per 12 hPushat most every 4 hTelegramlinked chat · at most every4 h

On the board it reads: max. once per 12 h

Chain as JSON

To try it, copy it and paste it in the editor under “Import”. Importing creates a new chain.

cooldown.json
{
"name": "Example: Cooldown",
"version": 1,
"nodes": [
{ "id": "c1", "type": "core.candle", "position": { "x": 40, "y": 40 }, "settings": { "pair": "ETH/USDT", "timeframe": "1h" } },
{ "id": "g1", "type": "core.change", "position": { "x": 260, "y": 40 }, "settings": { "length": 4 } },
{ "id": "k1", "type": "core.compare", "position": { "x": 480, "y": 40 }, "settings": { "operator": "below", "value": -5 } },
{ "id": "d1", "type": "core.cooldown", "position": { "x": 700, "y": 40 }, "settings": { "hours": 12 } },
{ "id": "p1", "type": "core.push", "position": { "x": 920, "y": 40 }, "settings": {} },
{ "id": "t1", "type": "core.telegram", "position": { "x": 920, "y": 170 }, "settings": {} }
],
"edges": [
{ "from": "c1.close", "to": "g1.in" },
{ "from": "g1.out", "to": "k1.in" },
{ "from": "k1.out", "to": "d1.in" },
{ "from": "d1.out", "to": "p1.in" },
{ "from": "d1.out", "to": "t1.in" }
]
}
  • Search also finds it under: throttle, spam, pause, rate limit.
  • Type in the chain: core.cooldown · Version 1.0.0 · Category key logic
  • Memory: computes candle by candle and keeps its state
  • How a node is built