Ir al contenido

Market hours

Esta página aún no está disponible en tu idioma.

SourcesFrom Pro

    Market hours

    New York open · Mondays

    • open
    • close
    • trading
    • holiday
    • Minutes since open
    This is how the node looks on the board. It has no inputs; on the right its values go to other nodes.

    Like the opening bell on Wall Street: market hours reports when the big stock markets open and close, in their local time with daylight saving time and holidays.

    When big stock markets open and close. Knows the trading hours of the stock markets in New York, London, Frankfurt, Tokyo, Shanghai, Hong Kong and Mumbai, with daylight saving time, lunch breaks, holidays and shortened sessions. “Open” and “close” are signals on the candle the moment falls into; with “Offset” they come earlier or later, say 30 minutes before the open. “Trading” is true while the market trades, “holiday” on weekdays it stays closed. That is how you test what your coin does around the open: New York open, Mondays, into an action, and the replay shows every Monday with TP and SL and the price afterwards. With AND and “trading”, alerts only come while the market trades; with two markets only when both trade, such as London and New York.

    New York on a Monday on 30-minute candles, in Central European timeOpen is true on the candle closing at 15:30, with offset −30 on the one closing at 15:00; trading lasts until the candle closing at 22:00, where close is true as well.open, offset −30opentradingclose14:3016:3018:3020:3022:30
    • input true
    • output true
    • false
    Each box is a 30-minute candle, labelled with its close in Central European time. New York opens at 09:30 local time, in October at 15:30 in Central Europe: “open” is true on the candle closing then, “close” on the one closing at 22:00, and “trading” on all candles in between. With offset −30 the open comes half an hour earlier.

    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: New York

    Which stock market, not the crypto exchange of your candle. Times are in the market’s local time; Bellchain handles daylight saving time, lunch breaks and holidays.

    • New York (default): The stock exchanges in New York, the largest in the world: 09:30 to 16:00 local time, usually 15:30 to 22:00 in Central Europe.
    • London: The stock exchange in London: 08:00 to 16:30 local time, 09:00 to 17:30 in Central Europe.
    • Frankfurt: Electronic stock trading in Frankfurt: 09:00 to 17:30 Central European time, the same hours as Paris and Amsterdam.
    • Tokyo: The stock exchange in Tokyo: 09:00 to 15:30 local time with a lunch break from 11:30 to 12:30, 01:00 to 07:30 in Central Europe, an hour later in summer.
    • Shanghai: The stock exchange in Shanghai, with the same hours as Shenzhen: 09:30 to 15:00 local time with a lunch break from 11:30 to 13:00, 02:30 to 08:00 in Central Europe, an hour later in summer.
    • Hong Kong: The stock exchange in Hong Kong: 09:30 to 16:00 local time with a lunch break from 12:00 to 13:00, 02:30 to 09:00 in Central Europe, an hour later in summer.
    • Mumbai: The stock exchanges in Mumbai: 09:15 to 15:30 local time, 04:45 to 11:00 in Central Europe, an hour later in summer.

    Default: all trading days

    On which trading days, by the market’s own calendar. An offset only moves the time; the day stays the trading day.

    • all trading days (default): Every day the market trades.
    • Mondays: Mondays only. If the Monday is a holiday, nothing comes that week.
    • Tuesdays: Tuesdays only.
    • Wednesdays: Wednesdays only.
    • Thursdays: Thursdays only.
    • Fridays: Fridays only.
    • first trading day of the week: The first day of the week the market trades, usually Monday, or Tuesday after a Monday holiday. That way you catch every open after the weekend.
    • last trading day of the week: The last day of the week the market trades, usually Friday, or Thursday before Good Friday.

    Default: 0 min · from −720 to 720 min, whole number

    Moves open and close by this many minutes: −30 signals half an hour before the open, 60 an hour after it. The other outputs stay as they are. With 1-hour candles the signal comes at the close of the candle the moment falls into; 09:30 needs candles of 30 minutes or shorter.

    Reports where BTC stands at the New York open on Mondays. In the replay, TP and SL and the price afterwards show what happened in the hours that followed.

    Example chain: Candle, Market hours, Message template, TelegramConnections: Market hours → Telegram, Message template → Telegram.CandleBTC/USDT · 15mMarket hoursNew York open · MondaysMessage templateNew York opens. BTC is at{{price}}.Telegramlinked chat · at most every4 h

    How to connect the nodes:

    1. Market hours (open) → Telegram (Trigger)
    2. Message template (Message) → Telegram (Message)

    On the board it reads: New York open · Mondays

    Chain as JSON

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

    market-hours.json
    {
    "name": "Example: Market hours",
    "version": 1,
    "nodes": [
    { "id": "c1", "type": "core.candle", "position": { "x": 40, "y": 40 }, "settings": { "pair": "BTC/USDT", "timeframe": "15m" } },
    { "id": "h1", "type": "core.market-hours", "position": { "x": 40, "y": 170 }, "settings": { "market": "new-york", "days": "mon" } },
    { "id": "m1", "type": "core.message", "position": { "x": 40, "y": 300 }, "settings": { "text": "New York opens. BTC is at {{price}}." } },
    { "id": "t1", "type": "core.telegram", "position": { "x": 260, "y": 40 }, "settings": {} }
    ],
    "edges": [
    { "from": "h1.open", "to": "t1.in" },
    { "from": "m1.out", "to": "t1.message" }
    ]
    }

    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 open Signal (true/false) –
    Output close Signal (true/false) –
    Output trading Signal (true/false) –
    Output holiday Signal (true/false) –
    Output Minutes since open Number series –
    • In messages the value is called “minutes since New York open”.
    • Search also finds it under: stock market, market hours, trading hours, session, open, close, opening bell, wall street, new york, london, frankfurt, tokyo, shanghai, hong kong, mumbai, asia, holiday, monday, overlap, us market.
    • More under Market hours.

    Times in the market’s time zone, days by its calendar. “Open” is true on the candle with open < market open + offset ≤ candle close, “close” likewise; with candles that close exactly at the open the signal comes on time, with longer ones at the close of the candle it falls into. With a lunch break, open and close mean the trading day. “Trading” is true on candles that overlap a trading phase; the lunch break does not count. “Holiday” is true on candles that close on a weekday the market is closed, in local time. “Minutes since open” = (candle close − market open) / 1 min while the candle closes between open and close, otherwise empty, without offset. Holidays for New York, London, Frankfurt and Tokyo follow the exchanges’ rules, for Shanghai, Hong Kong and Mumbai their yearly notices, all from 2025.

    • Type in the chain: core.market-hours · Version 1.0.0 · Category key src
    • Settings in the chain: market (Stock market), days (Days), offset (Offset)
    • Pins in the chain: Output open, close, trading, holiday, minutes
    • Reference tests in the manifest: 3 (with fixed price data: 500 candles of 1h)
    • How a node is built

    Versión 2026.11.29.15 · Changelog