I have run a paper trading on local LEAN about serveral days, and there are files on ‘project/live’ dir
code L-3837433697-2022-03-26-16_second_Strategy%20Equity.json L-3837433697-2022-03-26-23_second_Strategy%20Equity.json
config L-3837433697-2022-03-26-17_second_Strategy%20Equity.json L-3837433697-2022-03-26_minute.json
L-3837433697 L-3837433697-2022-03-26-18_second_Strategy%20Equity.json L-3837433697-2022-03-26-order-events.json
L-3837433697-2022-03-26_10minute.json L-3837433697-2022-03-26-19_second_Strategy%20Equity.json L-3837433697.json
L-3837433697-2022-03-26-13_second_Strategy%20Equity.json L-3837433697-2022-03-26-20_second_Strategy%20Equity.json L-3837433697-log.txt
L-3837433697-2022-03-26-14_second_Strategy%20Equity.json L-3837433697-2022-03-26-21_second_Strategy%20Equity.json log.txt
L-3837433697-2022-03-26-15_second_Strategy%20Equity.json L-3837433697-2022-03-26-22_second_Strategy%20Equity.json
now I want to see the trading situation by report, and I have tried as below:
lean report --backtest-results project/live/2022-03-26_21-49-23/L-3837433697.json --live-results project/live/2022-03-26_21-49-23/L-3837433697-2022-03-26_minute.json
I get this Error:
Unhandled exception. System.ArgumentException: Please select an algorithm end date greater than start date.
at QuantConnect.Algorithm.QCAlgorithm.PostInitialize() in /LeanCloud/CI.Builder/bin/Debug/src/QuantConnect/Lean/Algorithm/QCAlgorithm.cs:line 585
at QuantConnect.Report.PortfolioLooper..ctor(Double startingCash, List`1 orders, Resolution resolution) in
/LeanCloud/CI.Builder/bin/Debug/src/QuantConnect/Lean/Report/PortfolioLooper/PortfolioLooper.cs:line 126
at QuantConnect.Report.PortfolioLooper.FromOrders(Series`2 equityCurve, IEnumerable`1 orders, Boolean liveSeries)+MoveNext()
at System.Collections.Generic.List`1..ctor(IEnumerable`1 collection)
at System.Linq.Enumerable.ToList[TSource](IEnumerable`1 source)
at QuantConnect.Report.Report..ctor(String name, String description, String version, BacktestResult backtest, LiveResult live, String pointInTimePortfolioDestination) in
/LeanCloud/CI.Builder/bin/Debug/src/QuantConnect/Lean/Report/Report.cs:line 61
at QuantConnect.Report.Program.Main(String[] args) in /LeanCloud/CI.Builder/bin/Debug/src/QuantConnect/Lean/Report/Program.cs:line 70
/lean-cli-start.sh: line 3: 7 Aborted (core dumped) dotnet QuantConnect.Report.dll
Error: Something went wrong while running the LEAN Report Creator, see the logs above for more information
Varad Kabade
Hi Frank,
Please use --live- instead of --backtest- and use the basic L-3837433697.json. The result would be stored in 'C:\LeanCLI\report.html'
Best,
Varad Kabade
Frank cao
The material on this website is provided for informational purposes only and does not constitute an offer to sell, a solicitation to buy, or a recommendation or endorsement for any security or strategy, nor does it constitute an offer to provide investment advisory services by QuantConnect. In addition, the material offers no opinion with respect to the suitability of any security or specific investment. QuantConnect makes no guarantees as to the accuracy or completeness of the views expressed in the website. The views are subject to change, and may have become unreliable for various reasons, including changes in market conditions or economic circumstances. All investments involve risk, including loss of principal. You should consult with an investment professional before making any investment decisions.
To unlock posting to the community forums please complete at least 30% of Boot Camp.
You can continue your Boot Camp training progress from the terminal. We hope to see you in the community soon!