Intent-Code Divergence
- Category
- Not specified by scanner
- Confidence
- 97% confidence
- Finding
This is a real logic flaw: the backtester builds the price map using the DataFrame index name (or a default string) rather than the actual traded symbol, so Portfolio.get_equity will usually fail to match open positions to prices. That causes equity, returns, and downstream risk metrics to be understated or wrong, which can mislead users into trusting invalid backtest results and deploying unsafe trading strategies.
- Content
