Worked path · DECIDE

Testing futures session and time-of-day tendencies in StrategyQuant X

Many traders have a view about the open, the lunch lull or the close. Written down as a rule it becomes a time range on a Build task. This page walks through measuring that view with Edge Finder’s Time Windows tab, what to check about the clock first, and what the tab will and will not tell you.

Time Windows reads whichever symbol is on the SQX Data tab, so this path works on any data you have in SQX. Where it goes wrong is usually not the search but three things around it.

Where this goes wrong

The first is the clock. The hours in the report are hours on the data clock, which is the zone the dataset was recorded in, and that is also the clock SQX evaluates a Build task’s time range on. A cash-session open that is 09:30 New York time all year moves against a data clock fixed at a different zone for a few weeks each spring and autumn.

The second is the count. A search over every window of the day on several weekday sets will return a best window on almost any data, and a q-value over a handful of cells does not describe that search. Time Windows uses a max-t permutation over the whole family, so the adjusted p already pays for every window and weekday set tried.

The third is timing. A window restricts when an entry may be taken. The trade is held for several bars, so the strongest entry window often sits a few bars before the move it catches. That answers “when should I enter” and says nothing about when the market moves.

The clock on indices, stocks and futures

For forex-style data, Edge Finder converts each week’s reopening to New York time and checks it against Sunday 17:00. Indices, stocks and futures have no such anchor, so the data-clock audit is skipped for them and the report says so. That puts the check of the label on you.

  1. Open the dataset’s timezone on the Data tab. If it declares an IANA name such as America/Chicago or Europe/Berlin, a fixed offset, or SQX’s EETUS, Edge Finder uses it. If it declares none, type one into the Data clock field (for example UTC, UTC+2, EETUS or Europe/London). Without a zone, windows are shown on the data clock only and the session views are off. Nothing is assumed to be UTC.
  2. Look at the clock card at the top of the result. It names the zone and where it came from.
  3. Find a bar you know, such as the exchange open, in the data and check it sits where the clock says.

Named sessions and the Data tab’s session

Sydney, Tokyo, London, New York and the London and New York overlap are measured on their own exchange-local clocks, so daylight saving moves them. They are a short fixed list, so the correction runs across those five only. If the Data tab names a trading session, entries outside it are not trades, and a window is trimmed to it so it never offers minutes the build cannot trade. If the session text cannot be read, the tab says so and applies no session limit.

Steps

  1. Set the symbol, an intraday timeframe (H4 or shorter) and a range of several years on the Data tab. Add an out-of-sample range under Data range parts.
  2. Run the Data quality check. If the history has holes, make a patched copy or use GapSmith.
  3. Choose the side the build trades, or run Market Bias first so the tab uses the side it found.
  4. Press Find time windows. Read the clock card, then the best windows, then the named sessions, then the stretches to stay out of.
  5. On Deploy, check the Time range row and its badge against Market Bias, and apply to a Build task.
  6. Run the Builder, then the retest and the walk-forward matrix in StrategyQuant X on the survivors.

Limits

  • The data-clock audit is skipped for futures, indices and stocks.
  • Exchange holidays and early closes are not modelled.
  • Sparse intraday data leaves slots with too few days; they are shown as unmeasured and not as flat.
  • A window is a measured tendency on past bars. Costs come from the Data tab; if it holds none, none are charged.

Questions

Why is the clock audit skipped for futures?

The audit anchors on the weekly reopening of forex-style markets at 17:00 New York. Indices, stocks and futures have no such anchor, so it cannot check the label and says so.

Does it write a weekday filter?

No. The Build task has no weekday filter beyond its weekend settings, so only the time range is written.

Which symbols can I use?

Whichever symbol is on the SQX Data tab, on an intraday timeframe of H4 or shorter.

Risk

Trading leveraged instruments carries a high risk of loss. Software output is not investment advice and says nothing about future results. Validate every strategy yourself before risking capital.