HindspectGet Started Free

Strategies & testing

Lookahead, repainting, and information timing

Lookahead uses information that was unavailable at the historical decision time. Repainting describes values or signals changing as data develops or calculation conditions change. Some changes are normal for live bars; others create misleading historical signals. A valid test must reproduce when information became available, not merely where it appears on a completed chart.

Advanced3 min read
On this page

How does it work?

A higher-timeframe final close is unavailable before that bar ends. A pivot confirmed several bars later was not known at the original pivot bar, even if the marker is plotted there.

Live indicators can update as the current bar changes. If a method acts intrabar, a close-only historical result may not reproduce its operation. Define whether signals are provisional or confirmed.

Inspect scripts and data requests for their timing behavior. Shifted visual plots, future references, and inconsistent real-time versus historical handling can create apparent accuracy. Test deliberately on sequential data or replay rather than only a finished chart.

Fictional worked example

A marker’s position is not its discovery time

An illustrative pivot at bar 10 requires two later bars to confirm. The condition is known at bar 12, not bar 10. Entering at bar 10 using that confirmation would introduce future information.

A common mistake to avoid

Assuming a plotted historical marker was available at the plotted timestamp.

Make it practical

Put the idea into practice.

Use a demonstration, fictional record or paper environment. These optional checkpoints help you work through lookahead, repainting, and information timing.

Check your understanding.

Explain the idea in your own words, apply it to a fresh example, then name a limitation before checking below.

Key takeaways

  • Calculation time and plotting position differ.
  • A test must reproduce information availability.

Sources and further reading

Original provider, exchange, regulator, and platform material supports checking definitions and current details.

  1. Strategy testing and broker emulatorTradingView
  2. Ichimoku CloudTradingView
0 of 114 lessons complete · Checking saved progress…

Keep the ideas connected.