Skip to content
All library documents

Differences Between Web and Backtest Industry-Index Queries

Article SuperMind

Summary

A forum post asks how to retrieve popular industry indices through iWencai and pass them into a variable. The author describes a query combining industry indices with weekly KDJ conditions and recent main-fund-flow filters, then reports that a Python query string returns results that do not match the linked web page. This illustrates a practical issue when using external screening criteria in a trading workflow: similar-looking queries may not produce equivalent universes across interfaces.

A commenter attributes the discrepancy to the backtest implementation of the get_iwencai interface and advises consulting its interface documentation. The thread does not provide a working query, explain the precise differences, or verify which result set is correct. It is a narrow platform-use note rather than a strategy evaluation; users should validate returned instruments and query behavior in the environment where their strategy will run.

Key ideas

  • The post compares an industry-index screen on the website with a query used in a backtest.
  • The screen combines weekly KDJ conditions with recent main-fund-flow filters.
  • A commenter says the backtest interface may behave differently from the web version.
  • The thread points readers to the interface documentation but gives no corrected query or validation results.

Tags

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