Live data uses Polygon.io and requires a valid API key.
{% if external_symbols %}Simulation Summary
Total runs: {{ summary.runs }}
Cumulative profit/loss: {{ summary.profit_loss }}
Wins: {{ summary.wins }}
Losses: {{ summary.losses }}
Simulation Result
Regime: {{ result.regime }}
Run timestamp: {{ result.timestamp }}
Chosen ticker: {{ result.chosen.ticker if result.chosen else 'None' }}
Action: {{ result.chosen.action if result.chosen else 'N/A' }}
Confidence: {{ result.chosen.confidence if result.chosen else 'N/A' }}
Profit / loss: {{ result.profit_loss if result.profit_loss is not none else 'N/A' }}
Outcome: {{ result.outcome or 'open' }}
Chosen trade idea
| Entry | {{ result.chosen.entry_price if result.chosen else 'N/A' }} |
|---|---|
| Stop loss | {{ result.chosen.stop_loss if result.chosen else 'N/A' }} |
| Take profit | {{ result.chosen.take_profit if result.chosen else 'N/A' }} |
| Position % | {{ result.chosen.position_pct if result.chosen else 'N/A' }} |
| Time horizon | {{ result.chosen.time_horizon_minutes if result.chosen else 'N/A' }} minutes |
| Reason | {% if result.chosen and result.chosen.rationale %}{{ result.chosen.rationale | join(' | ') }}{% else %}N/A{% endif %} |
All evaluated ideas
| Ticker | Action | Confidence | Price | Entry | Stop | Target | Position % | Time horizon | Reason |
|---|---|---|---|---|---|---|---|---|---|
| {{ idea.ticker }} | {{ idea.action }} | {{ idea.confidence | round(2) }} | {{ idea.entry_price }} | {{ idea.entry_price }} | {{ idea.stop_loss }} | {{ idea.take_profit }} | {{ idea.position_pct }} | {{ idea.time_horizon_minutes }}m | {{ idea.rationale | join(' | ') }} |
Open purchases / current price
| Ticker | Quantity | Entry | Current | Notional | Reason | Run timestamp |
|---|---|---|---|---|---|---|
| {{ executed.ticker if executed else 'N/A' }} | {{ executed.qty if executed else 'N/A' }} | {{ executed.price if executed else 'N/A' }} | {{ purchase.current_price if purchase.current_price is not none else 'N/A' }} | {{ executed.notional if executed else 'N/A' }} | {{ executed.reason if executed else 'N/A' }} | {{ purchase.timestamp }} |
| No open purchases yet. | ||||||
Transaction history
| Timestamp | Ticker | Side | Qty | Price | Notional | Profit/Loss | Outcome | Reason |
|---|---|---|---|---|---|---|---|---|
| {{ tx.timestamp }} | {{ executed.ticker if executed else 'N/A' }} | {{ executed.side if executed else 'N/A' }} | {{ executed.qty if executed else 'N/A' }} | {{ executed.price if executed else 'N/A' }} | {{ executed.notional if executed else 'N/A' }} | {{ tx.profit_loss if tx.profit_loss is not none else 'N/A' }} | {{ tx.outcome if tx.outcome else 'open' }} | {{ executed.reason if executed else 'N/A' }} |
| No transactions recorded. | ||||||||
Simulation details
Latest close: {{ simulation_info.get('close', 'N/A') }}
{% if simulation_info.get('latest') %}Latest bar date: {{ simulation_info.latest.get('t', 'N/A') if simulation_info.latest is mapping else 'N/A' }}
{% endif %}