Skip to content
Wildflower
Join waitlist

The moving average touch and time window range blocks

Two blocks: price reaching or bouncing off a moving average, and a close beyond the high or low of a time window you set, such as an opening range.

Updated 29 November 2026 · 4 minute read

These two blocks work the same way on your strategy's chart, in Backtest and in the Bot. A strategy built from either can be backtested, and it can trade. Both read candles on the timeframe you name, and every choice is yours to set. In the block list they're Price touching or bouncing off a moving average and Breakout of a time-window range (such as an opening range).

Moving average touch

You set the moving average: simple or exponential, and how many candles it covers. It's worked out from candle closes.

A candle reaches the average when the candle before it closed above the average and this candle's low comes down to it, or the candle before closed below and this candle's high comes up to it. You can let a candle that comes within a number of ticks of the average count as reaching it. Without that, it has to reach the average itself.

You choose what makes a setup:

  • Touch: the candle reaching the average. A candle that closes straight through it still counts.
  • Bounce on the same candle: the candle reaching it also closes back on the side it came from.
  • Bounce on the next candle: the very next candle, after the one that reached the average, closes on the side price came from.

The block treats a touch from above as a long and a touch from below as a short. The entry is the close of the candle that completes the setup: the candle that reached the average, or the one after it for a next-candle bounce.

Time window range

You set a time zone and a window: a start time and an end time. Each day, the block marks the highest high and lowest low of the candles that open inside the window. The window follows that zone's clock, so it stays at the same local time when the clocks change. Both times must fall exactly where one of your candles starts.

A day runs from midnight to midnight in the time zone you chose, not from the futures session's evening open, so a window can't cross midnight.

After the window ends, a candle that closes above the range's high is a long, and one that closes below its low is a short. You can ask for a close a number of ticks beyond it. The block watches until the end of that day, or until a time you set.

You choose whether only the first breakout of each day's range counts, or the first in each direction.

For a signal at one time of day, see signal at a clock time.

Where the stop goes

  • The average (moving average touch): the average at the close of the candle that completes the setup.
  • The candle that reached the average (moving average touch): its low for a long, its high for a short.
  • The other side and the middle (time window range): the side of the range opposite your trade (its low for a long, its high for a short), or its middle.
  • Recent candles (either block): the lowest low for a long, or the highest high for a short, over the last number of candles you set, up to the candle that completes the setup.
  • A set distance: ticks from the entry, which you type.

You can add a buffer of ticks beyond any of them. If the stop would be on the wrong side of the entry, no trade is placed.

What's next

The gap at a moving average and moving average rejection blocks.