# AI_Trade Platform Evolution Roadmap

## Purpose

Transform the platform into an AI-first market intelligence platform
while preserving existing broker integrations.

## Vision

-   Intelligence Platform (no broker required)
-   Paper Trading Platform (no broker required)
-   Trading Platform (broker-enabled)

## Existing Assets

-   Frontend, Admin, Backend
-   Subscription system
-   Scan credit packs
-   AI analysis
-   V2 Signal Engine
-   Paper trading
-   Broker management
-   Position management

## Subscription Strategy

### Free

-   20 scans/month
-   Basic AI analysis
-   No broker required

### Pro

-   49 scans/month
-   Advanced AI analysis
-   Paper trading
-   No broker required

### Credit Packs

-   \$3 = 25 scans
-   \$5 = 50 scans
-   \$10 = 110 scans
-   Never expire

### Trading Add-on

Unlocks: - Broker connections - Live execution - Auto trading -
Portfolio sync - Position management

## Architecture Domains

### Market Intelligence

-   AI analysis
-   Scanners
-   Watchlists
-   Alerts
-   Index analysis

### Trading Engine

-   V2 Signal Engine
-   Filters
-   Risk
-   Position policies
-   Position Manager

### Execution Layer

-   Broker adapters
-   Order routing
-   BrokerExecutor
-   Position synchronisation

## Roadmap

1.  Review full project structure.
2.  Decouple analysis from broker login.
3.  Introduce Trading entitlement.
4.  Expand market intelligence features.
5.  Complete live trading execution.

## Principles

-   Preserve existing functionality.
-   No breaking changes.
-   Keep scan economy unchanged.
-   Broker integration is optional capability.
-   AI analysis is the primary product.

## Success

Users should be able to register, analyse markets immediately, consume
scans, upgrade for more analysis, and optionally enable live trading
later.













My priority order

Based on this report, I would not start adding new AI features.

Instead, I'd finish V2 in this order:

Complete the end-to-end AI Scanner execution chain (remove _stub_frame from the live path and connect the real V2 analysis pipeline if the report is correct).
Verify the complete flow from "Run Analyse" to the displayed signal, ensuring each stage uses the intended V2 components.
Render the new reasoning and market summary fields in the UI, since the backend already provides them.
Secure the V2 endpoints with the appropriate authentication and authorization before wider deployment.

Everything else—weight tuning, additional AI capabilities, live trading, and further refinements—can follow once those core items are complete.






Your platform should be a deterministic AI trading engine. Every decision should come from your own algorithms, indicators, filters, risk rules, and scoring—not from an external LLM. This gives you:

No API costs
No API keys
Faster execution
Deterministic results
Easier testing
Complete control over trading logic
Short Roadmap

Phase 1 — Complete V2 Integration ✅ (Current)
Connect the existing frontend to the V2 backend.
Wire the Strategy Registry.
Wire the Indicator Engine.
Wire the Filters.
Wire the Risk Rules.
Fix the response contract.
Get Run Analyse → Signal working end to end.

Phase 2 — Intelligent Analysis Engine
Improve confidence scoring.
Improve strategy evaluation.
Improve signal ranking.
Improve market intelligence.
Improve deterministic reasoning.

No LLM.

Phase 3 — Paper Trading
Connect generated signals.
Position lifecycle.
Trade journal.
Performance statistics.


Phase 4 — Live Trading (Future)
BrokerExecutor.
Order routing.
Position sync.
Auto execution.













My updated roadmap

At this point I would consider V2 Core complete.

The next phases I'd prioritise are:

Phase 5 — Repository Consolidation
Remove byte-identical duplicate trend logic.
Remove duplicated _TREND_ORDER.
Remove retired trend implementations once no longer referenced.
Consolidate shared utilities where behaviour is unchanged.

Phase 6 — Market Intelligence
Improve scanner quality.
Improve market summaries.
Improve ranking of opportunities.
Enhance deterministic explanations.

Phase 7 — Paper Trading Validation
Validate signals against historical outcomes.
Track hit rate, expectancy, drawdown, and other performance metrics.
Tune strategy parameters based on measured results rather than intuition.









My revised roadmap
Phase 8 — Production Position Lifecycle

Build the missing production capability:

exit policies
stop-loss execution
target execution
session-close exits
repository updates
realised P&L
unrealised P&L
lifecycle completion

No strategy changes.

No optimisation.

Just complete the trading engine.

Phase 9 — Historical Trading Validation

Now you can finally measure:

hit rate
expectancy
win/loss ratio
drawdown
MAE/MFE
holding time
exit reason
strategy contribution
filter contribution

This becomes the report you've been wanting.

Phase 10 — Market Intelligence Optimisation

Only now do you improve:

scanner ranking
market summaries
confidence calibration
explanations
strategy weighting
filter tuning
threshold tuning

Because now every improvement can be validated against:

Historical Database

↓

Production Replay

↓

Completed Position Lifecycle

↓

Measured P&L

instead of intuition.

The only part I'd move earlier

One item from your original "Market Intelligence" phase could happen earlier:

Enhance deterministic explanations.

That doesn't affect trading behaviour.

Improving why the engine explains:

why it bought,
why it rejected,
why confidence is 58,
why m4_exhaustion fired,

can be done independently because it's an observability improvement, not a strategy change.

Everything else—scanner quality, rankings, parameter tuning, summaries—should wait until the engine can complete trades and produce trustworthy performance metrics. Otherwise you'll be optimising intermediate signals rather than measured trading outcomes.










After this phase, the roadmap becomes:

Phase 11 – Historical Trading Performance Validation (win rate, expectancy, MAE/MFE, drawdown, equity curves, exit statistics).

Phase 12 – Evidence-Based Trading Intelligence Optimisation (optimise strategies, filters, confidence, and thresholds using measured outcomes).

Phase 13 – Market Intelligence (scanner ranking, market summaries, opportunity ranking, deterministic explanations).

Phase 14 – Paper Trading Open Position Monitor (live portfolio dashboard, trade tape, P&L, exits, risk, and lifecycle monitoring).













Revised roadmap
Phase 12 — Production Instrument Validation

Objectives:

Historical option-chain support
Production index_option replay
Option premium lifecycle
Production instrument trade outcomes
Validate scheduler and lifecycle on the actual production instrument
Produce the first genuine production-path historical trades

Only after that can you compare:

Index diagnostic path
Production option path

using identical replay infrastructure.

Phase 13 — Evidence-Based Trading Optimisation

Now optimisation finally makes sense.

Using measured outcomes:

confidence calibration
strategy weighting
exit geometry
filter ordering
filter thresholds
reward/risk ratios
holding logic
session-close behaviour

Every optimisation should be followed by replay and compared against the Phase 12 baseline.

Phase 14 — Market Intelligence

Now improve:

scanner ranking
opportunity scoring
explanations
market summaries
trade rationale
watchlists

These improve operator decision-making rather than the trading engine itself.

Phase 15 — Live Paper Trading Operations

This becomes the operational layer:

live portfolio monitor
open positions
mark-to-market P&L
realised/unrealised P&L
active exit policies
cooldown status
Stage 4 state
scheduler health
broker connectivity
trade tape
lifecycle timeline
restart reconciliation
operational alerts

This is where the Paper Trading Open Position Monitor naturally belongs. By then, it will be monitoring the actual production instrument and lifecycle, not the diagnostic replay path.

Overall assessment

If I look back across all the work:

Phase 7 made the engine operational.
Phase 7.5 made replay use production code.
Phase 8 proved deterministic execution.
Phase 9 completed the trading lifecycle.
Phase 10 corrected production state evolution.
Phase 11 measured historical outcomes without changing the engine.

That's a coherent progression. The remaining work is no longer about proving the architecture; it's about closing the gap between the diagnostic path you've validated and the production path you intend to trade. Once that gap is closed, optimisation and operational monitoring will be grounded in measurements from the actual production workflow rather than a surrogate.