2019-01-23 09:32:00 :Order Error: id: 39, Insufficient buying power to complete order (Value:-4250), Reason: Id: 39, Initial Margin: -4251.25, Free Margin: 2666.570851063829787234042562019-01-23 09:32:00 :Order Error: id: 40, Insufficient buying power to complete order (Value:-4675), Reason: Id: 40, Initial Margin: -4677.5, Free Margin: 2666.570851063829787234042562019-01-23 09:32:00 :2019-01-23 09:32:00: SecurityChanges: Added: AMZN X1HZU3E27BWM|AMZN R735QTJ8XC9X,AMZN 310LZZJD9H5AE|AMZN R735QTJ8XC9X,CMG X1HZU2VDFIBQ|CMG TFNWQ96IBZ39,CMG 310LZZIUKPBPI|CMG TFNWQ96IBZ39 Removed: AMZN X1HZW7GS1RD2|AMZN R735QTJ8XC9X,AMZN 310M01NFZBKQU|AMZN R735QTJ8XC9X2019-01-23 09:33:00 :Already invested in AMZN2019-01-23 11:56:00 :Runtime Error: GetMaximumOrderQuantityForTargetBuyingPower failed to converge on the target margin: -20038.447053765194565640795719; the following information can be used to reproduce the issue. Total Portfolio Cash: -331122.750; Leverage: 1; Order Fee: 3.5; Lot Size: 1; Per Unit Margin: 3885.00000; Current Holdings: QuantConnect.Securities.Option.OptionHolding; Target Percentage: %-4.254390903255571357204027700; Current Order Target Margin: 52614.752946234805434359204277; Current Order Margin: 54390.00000 in BuyingPowerModel.cs:line 4672019-01-23 11:56:00 :Algorithm Id:(d6f046de9bace5ab06cdc373ee924a68) completed in 14.37 seconds at 3k data points per second. Processing total of 43,506 data points.

Author