Skip to content

Add C# snippets to Live Reconciliation step pages (#2300)#2302

Merged
AlexCatarino merged 2 commits intoQuantConnect:masterfrom
AlexCatarino:bug-2300-add-csharp-snippets-reconciliation
Apr 15, 2026
Merged

Add C# snippets to Live Reconciliation step pages (#2300)#2302
AlexCatarino merged 2 commits intoQuantConnect:masterfrom
AlexCatarino:bug-2300-add-csharp-snippets-reconciliation

Conversation

@AlexCatarino
Copy link
Copy Markdown
Member

Summary

  • Add matching C# code blocks next to the existing Python blocks on every step page under Research Environment > Meta Analysis > Live Reconciliation (`02 Get Live Deployment Parameters`, `03 Run OOS Backtest`, `04 Plot Equity Curves`, `05 Plot Order Fills`).
  • C# uses the same retry patterns for `ReadLiveChart` / `ReadBacktestChart` / `ReadLiveOrders` / `ReadBacktestOrders`, casts chart points to `Candlestick` and filters `Close.HasValue`, polls `api.ReadBacktest(...)` with `Completed`/`Progress`, and uses `Plotly.NET` (via NuGet, aliased as `PlotlyChart` to avoid `QuantConnect.Chart` ambiguity) for the equity and fill overlays.
  • The DTW + returns-correlation step stays Python-only and is now explicitly flagged as such, since `tslearn` has no C# equivalent.

Follow-up to #2301.

Test plan

  • Verify every step page under `meta-analysis/live-reconciliation` renders both C# and Python blocks on quantconnect.com/docs.
  • Confirm the C# snippets compile and run in a QuantConnect research notebook attached to a live deployment.
  • Confirm the Plotly.NET equity overlay and per-symbol fills overlay render as expected in the C# research kernel.

The step pages under Research Environment > Meta Analysis > Live
Reconciliation previously showed only Python code blocks. Add matching
C# snippets alongside every Python block so readers can follow the
workflow end-to-end in either language: reading the live Strategy
Equity chart, compiling and running the OOS backtest with progress
polling, overlaying the equity curves with Plotly.NET, reading orders
with a retry loop, and rendering the per-symbol fill overlay.
…uantConnect#2300)

Add a cross-link from the Writing Algorithms > Live Trading >
Reconciliation introduction to the new Research Environment > Meta
Analysis > Live Reconciliation tutorial so readers discovering the
reconciliation concept can jump straight to the how-to.
@AlexCatarino AlexCatarino merged commit b2d25fe into QuantConnect:master Apr 15, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant