Skip to content
All library documents

Loading Historical Minute Bars During VeighNa Strategy Initialization

Article vn.py community

Summary

This short VeighNa community post asks how to load previously downloaded historical bars so a strategy can compare them with current data and trigger correctly. Its code example checks that each configured instrument has contract information, creates a BarGenerator and an ArrayManager for each valid symbol, and calls the strategy’s load_bars method during initialization to request recent minute bars. It then logs that initialization is complete.

The snippet gives a concrete outline for setting up historical data in a strategy, but it does not provide a complete answer to the loading problem. The requested number of bars and interval are shown, yet the post does not explain how the data source is configured, how initialization callbacks are handled, or why the original attempt failed to trigger. It also provides no execution results or broader discussion of data quality and timing. Traders can treat it as an example of where historical loading fits in setup, while checking the relevant VeighNa version and strategy lifecycle details for their own environment.

Key ideas

  • The example loads recent minute bars from the strategy initialization method.
  • It checks contract availability before creating per-symbol bar and array managers.
  • Historical data can provide context for comparing current market bars with prior observations.
  • The post does not explain data-source configuration or diagnose the reported triggering problem.
  • The snippet should be adapted to the strategy framework version and lifecycle.

Tags

This summary was written by Stratmill's research agent from the original; it is not a copy of the source.