Pular para o conteúdo

Date range

Este conteúdo não está disponível em sua língua ainda.

ConditionsFrom Pro

    Date range

    2 events ±4 h

    • in range
    • Days since From
    • Hours to the event
    This is how the node looks on the board. It has no inputs; on the right its values go to other nodes.

    Like a calendar entry with a start and an end: the date range is only true between “From” and “Until”. With AND it lets alerts through only during that time, with NOT in front it mutes them.

    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.

    Date range from Monday noon until Wednesday 08:00Each dot is a candle close; the closes from Monday 12 noon until Wednesday 07:00 are inside the range.MondayTuesdayWednesday00:0006:0012:0018:0000:0006:0012:0018:0000:0006:0012:0018:0000:00
    • candle close inside: true
    • before and after: false
    Three days of 1-hour candles. With “From Monday 12:00” and “Until Wednesday 08:00” the date range is true for the candles that close in that time, “From” included, “Until” no longer. With NOT in front it mutes alerts during that time, with AND it only lets them through then.
    Date range around two events, 3 hours before and 2 afterEvents on Monday 20:00 and Wednesday 14:30; the closes from Monday 17:00 to 22:00 and from Wednesday 11:00 to 17:00 are inside the range.MondayTuesdayWednesday00:0006:0012:0018:0000:0006:0012:0018:0000:0006:0012:0018:0000:00
    • candle close around an event: true
    • otherwise: false
    The same three days with two events of your own, Monday 20:00 and Wednesday 14:30, with 3 hours before and 2 after. The range is true from the last candle that closes at least 3 hours before the event, through the event’s candle, up to the last candle that opens before the event plus 2 hours. With 1-hour candles the window before 14:30 therefore already starts at 11:00, as with the Event node.

    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.

    Default: empty · point in time, shown in your time zone in the editor, stored in UTC

    From this point in time the output is true, in your time zone. Empty: always has been.

    Default: empty · point in time, shown in your time zone in the editor, stored in UTC

    From this point in time the output is false again, in your time zone. Empty: no end.

    Default: empty · points in time, one per field, shown in your time zone in the editor, stored in UTC, at most 1,000 characters

    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.

    Default: 2 h · from 0 to 168 h

    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.

    Default: 2 h · from 0 to 168 h

    How long after each event the output stays true.

    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.

    Example chain: Candle, RSI, Compare, Date range, NOT, AND, PushConnections: Candle → RSI, RSI → Compare, Date range → NOT, Compare → AND, NOT → AND, AND → Push.CandleBTC/USDT · 1hRSI14 candlesCompareRSI 14 below 30Date range2 events ±4 hNOTinverts the signalANDall inputs truePushat most every 4 h

    How to connect the nodes:

    1. Candle (Price) → RSI (Value)
    2. RSI (RSI) → Compare (Value)
    3. Date range (in range) → NOT (Signal)
    4. Compare (true/false) → AND (Signal 1)
    5. NOT (inverted) → AND (Signal 2)
    6. 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.

    date-range.json
    {
    "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" }
    ]
    }

    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 –
    • 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.

    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 key cond
    • 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

    Versão 2026.11.29.15 · Changelog