lean-monitor icon indicating copy to clipboard operation
lean-monitor copied to clipboard

LiveResult support

Open mirthestam opened this issue 7 years ago • 2 comments

As a user running live algorithms, I would like to be able to attach to a running session to see its current performance, or to open a exported live result to review previous live sessions.

  • The FileSession supports BacktestResult. It should support LiveResult.
  • the StreamSession already supports LiveResult however there are problems merging live data and display in the charts.

I need to investigate how live support is shown in QuantConnect first before implementing live support.

mirthestam avatar Mar 17 '17 10:03 mirthestam

I have found the issue. It's located in QuantConnect project in LiveTradingResultHandler.cs in SplitPackets method. Series are removed from packet sent out if the chart name is not equqlto _subscription value which is initialized by default to "Strategy Equity" and never modified. If you change code to //if (deltaChart.Name == _subscription || (_subscription == "*" && deltaChart.Name == "Strategy Equity")) //{ chart.Series = deltaChart.Series; //} then the monitoring application receives the series data

Personnally I have created a LiveTradingMonitorResultHandler.cs file with the modification because at the moment I don't understand how to modify the _subscription variable in the algos and it's purpose.

nico1969 avatar Mar 04 '19 14:03 nico1969

I guess the QuantConnect's implementation of the Lean API does support chart subscriptions. There are API methods that allow you to change chart subscriptions. My first guess is this is not implemented in the Lean engine itself. I am currently implementing a new (mobile) client, so I hope to find the answer soon.

mirthestam avatar Mar 05 '19 17:03 mirthestam