Date range
Esta página aún no está disponible en tu idioma.
2 events ±4 h
- in range
- Days since From
- Hours to the event
True between times or around events. Is true while a candle closes between “From” and “Until”. If a field stays empty, the range is open on that side: only “From” means “from then on”, only “Until” means “until then”. With your own events, such as a rate decision or a decision on an ETF, it is only true in the hours around these events. With AND a chain passes alerts on only during this time, with NOT in front it mutes them during this time. “Days since From” counts the whole days since “From”, “Hours to the event” the time until the next event. Example: an event on Oct 28 at 19:00 with 4 hours before and after, NOT in front and then AND with your signal: no alerts in the hours around the event. For recurring events such as CPI or the Fed rate decision there is the Event node.
What it looks like
Section titled “What it looks like”- candle close inside: true
- before and after: false
- candle close around an event: true
- otherwise: false
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.
From this point in time the output is true, in your time zone. Empty: always has been.
From this point in time the output is false again, in your time zone. Empty: no end.
Events
Section titled “Events”Your own events in your time zone, such as a rate decision or a network upgrade. If any are entered, the output is only true around them, and still only between “From” and “Until” if set. Empty: no events.
Hours before
Section titled “Hours before”How long before each event the output is already true. With longer candles it starts on the last candle that closes that early, so with 4-hour candles up to 4 hours earlier.
Hours after
Section titled “Hours after”How long after each event the output stays true.
Example
Section titled “Example”Blackout around your own events: RSI below 30 notifies you by push, but not in the 4 hours before and after two events on Oct 28 at 18:00 and Nov 12 at 13:30 (UTC), such as a rate decision and a speech.
How to connect the nodes:
- Candle (Price) → RSI (Value)
- RSI (RSI) → Compare (Value)
- Date range (in range) → NOT (Signal)
- Compare (true/false) → AND (Signal 1)
- NOT (inverted) → AND (Signal 2)
- AND (all true) → Push (Trigger)
On the board it reads: 2 events ±4 h
Chain as JSON
To try it, copy it and paste it in the editor under “Import”. Importing creates a new chain.
{ "name": "Example: Date range", "version": 1, "nodes": [ { "id": "c1", "type": "core.candle", "position": { "x": 40, "y": 40 }, "settings": { "pair": "BTC/USDT", "timeframe": "1h" } }, { "id": "r1", "type": "core.rsi", "position": { "x": 260, "y": 40 }, "settings": { "length": 14 } }, { "id": "k1", "type": "core.compare", "position": { "x": 480, "y": 40 }, "settings": { "operator": "below", "value": 30 } }, { "id": "w1", "type": "core.date-range", "position": { "x": 40, "y": 170 }, "settings": { "events": "2026-10-28T18:00:00Z,2026-11-12T13:30:00Z", "before": 4, "after": 4 } }, { "id": "x1", "type": "core.not", "position": { "x": 260, "y": 170 }, "settings": {} }, { "id": "a1", "type": "core.and", "position": { "x": 700, "y": 40 }, "settings": {} }, { "id": "p1", "type": "core.push", "position": { "x": 920, "y": 40 }, "settings": {} } ], "edges": [ { "from": "c1.close", "to": "r1.in" }, { "from": "r1.out", "to": "k1.in" }, { "from": "w1.out", "to": "x1.in" }, { "from": "k1.out", "to": "a1.in0" }, { "from": "x1.out", "to": "a1.in1" }, { "from": "a1.out", "to": "p1.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 | – | – | No inputs: the data comes straight from the source. |
| Output | in range | Signal (true/false) | – |
| Output | Days since From | Number series | – |
| Output | Hours to the event | Number series | – |
Good to know
Section titled “Good to know”- In messages the values are called “Days since From”, “Hours to the event”.
- Search also finds it under: date, date range, event, events, from until, expiry, blackout, news filter, rate decision, days since, hours to.
Technical details
Section titled “Technical details”What counts is the time a candle closes. “From” is included, “Until” is not. The times are stored in UTC in the chain; the editor shows them in your time zone. If “Until” lies before “From”, the range is empty. With events the windows work as in the Event node: from the last close at least “Hours before” ahead of the event, through the candle it falls into, up to the last candle that opens before the event plus “Hours after”; with 0 hours before it starts at the event’s candle. Days since From = ⌊(candle close − From) / 24 h⌋, empty before “From”. Hours to the event = (next event not before the close − candle close) / 1 h, empty afterwards.
- Type in the chain:
core.date-range· Version 1.0.0 · Category keycond - Settings in the chain:
from(From),to(Until),events(Events),before(Hours before),after(Hours after) - Pins in the chain: Output
out,days,hours - Reference tests in the manifest: 5 (with fixed price data: 500 candles of 1h)
- How a node is built
Versión 2026.11.29.15 · Changelog