Development of algo in Lab environment

I am currently sitting and developing in the Lab environment.

I have a few questions which I am little bit confused about.

1) Is there any better way to try the algos than i do? I do some coding then i run the backtest and it takes like 40 seconds before i see if the code works or not.

After 40 seconds i see that i did some misstakes, and get error message as follows:

Runtime Error: Python.Runtime.PythonException: TypeError : Cannot get managed object
at (wrapper dynamic-method) System.Object:CallSite.Target (System.Runtime.CompilerServices.Closure, System.Runtime.CompilerServices.CallSite, object, QuantConnect.Data.Slice)
at QuantConnect.AlgorithmFactory.Python.Wrappers.AlgorithmPythonWrapper.OnData (QuantConnect.Data.Slice slice) [0x000c6] in <91afafcb96134cb1934e681486862439>:0
at QuantConnect.Lean.Engine.AlgorithmManager.Run (QuantConnect.Packets.AlgorithmNodePacket job, QuantConnect.Interfaces.IAlgorithm algorithm, QuantConnect.Lean.Engine.DataFeeds.IDataFeed feed, QuantConnect.Lean.Engine.TransactionHandlers.ITransactionHandler transactions, QuantConnect.Lean.Engine.Results.IResultHandler results, QuantConnect.Lean.Engine.RealTime.IRealTimeHandler realtime, QuantConnect.Lean.Engine.Server.ILeanManager leanManager, QuantConnect.Lean.Engine.Alpha.IAlphaHandler alphas, System.Threading.CancellationToken token) [0x01260] in <7573aaf6e6a74f29b31f8e11628c060e>:0 (Open Stacktrace)

For me this message is not very clear. On what line did i do the misstake? 

2) Is there any command similiar to print() ? I would like to try a few lines of code with the "Build" button, before i go for the Backtest button.

Best Regards, David

Update Backtest

Update Backtest


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.


This discussion is closed