MarketLens · Editorial review
FinLab: From a Python notebook to an order
FinLab pairs Taiwanese stock data and backtesting with automated order entry.
Business overview
FinLab pairs Python instruction with tools for backtesting Taiwanese stocks. Learners can take a strategy from a programming exercise through testing and execution.
Assessment
A backtest may assume trades at a closing price. A live rule cannot use that close and place an earlier order, so execution timing needs explicit treatment.
HYPOTHETICAL EXAMPLE
The time at which data becomes usable
Suppose a March figure is first published on April 20 and corrected on May 5. A strategy tested on April 1 can use neither version. One tested on April 25 can use only the original. Saving the data vintage and release time makes the historical decision reproducible. Using a clean modern dataset without those fields can make an ordinary signal appear unusually prescient.
Comparison with Weina Software
FinLab starts a strategy in a research notebook. Weina Software's VeighNa context moves the question to running that strategy over time. A reproducible example should keep the model version, input snapshot and order configuration together. Otherwise a later restart may use a different signal despite running apparently identical code.
Read the Weina Software case →What to check in this case
Save the notebook version and the configuration submitted to the order adapter. A backtest using adjusted prices may require a different live order input even when the strategy logic is unchanged.
Community comments
Share a specific observation about this case. Submitted comments are reviewed before publication.