Skip to content
Wildflower
Join waitlist

Signal at a clock time, and exit at a clock time

Two blocks that read the clock: a signal at the candle that ends at a time of day, and an exit that closes a trade still open at a time of day.

Updated 29 November 2026 · 2 minute read

Two blocks read the clock. Both work the same way in Backtest and in the Bot. The script you copy to a platform draws the signal at a clock time too. It can't draw the exit yet.

For both, you set a time of day and the clock it is read on: New York, Chicago, London, Tokyo, Sydney or UTC. The block follows that clock when it changes for daylight saving, so 10am New York stays 10am New York all year.

Signal at a clock time

A detector. Each day, it fires at the close of the candle that ends at your time. If your time falls inside a candle, it fires at that candle's close. On five-minute candles, 10:00 is the candle from 9:55 to 10:00, and 9:57 is that same candle.

You choose the side:

  • Always a long.
  • Always a short.
  • The way that candle closed: a candle that closed up is a long, one that closed down is a short. A candle that closed where it opened gives no signal.

It reads the clock only, not news releases. To stay out around the news, use news windows.

The stop can go at the candle at the time (its low for a long, its high for a short), a swing window (the lowest low or highest high of a number of candles you state), or a set distance in ticks that you type.

Exit at a clock time

An exit. A trade still open when your time arrives is closed at market, at the close of the candle that reaches that time. Your stop and target orders are cancelled with it, so nothing is left waiting at your broker.

If the stop or target fills on that same candle, that fill stands.

A trade opened after today's time is closed at tomorrow's. The session close and your firm's own deadline still close a trade first if they come sooner. This block only ever ends a trade earlier.

Every number is yours

The time and the clock start blank, and so does the signal's side. The builder flags any you leave empty, and the strategy won't run until you fill them in. A strategy that reaches the Bot with an exit time missing takes no trades, rather than trading without the exit you asked for.

What's next

Entries, exits and trade protection.