Hello,

Can anyone assist understanding why the Portfolio goes to negative when trying to trade some crypto coins with Data of 2018? I have pinpointed one date to April 11. I've seen it happen on several days in 2018 and several coins (including BTC and ETH). Depending on the ammount it can crash the Algorithm Manager if it goes negative but there is always a suden drop in Equity at those days.

This is a Cash account as it's not possible for the value of the account to go to -50.000 (when I only had 10.000)

 

2018-04-01 00:00:00 : Launching analysis for 14ead841b83ddf5dbedd4644903d64aa with LEAN Engine v2.5.0.0.11340 2018-04-11 06:00:00 : AlgorithmManager.Run(): Portfolio value is less than or equal to zero, stopping algorithm. 2018-04-11 06:00:00 : Algorithm finished, Equity: -43820.24693854894 2018-04-11 06:00:00 : Holdings8950.612288934579 2018-04-11 06:00:00 : Remaining:1022.5000000010655 2018-04-11 06:00:00 : Amount:44842.74693855Price:0.1996Value:8950.61228893458Unrealized:-53712.642282995184 2018-04-11 06:00:00 : Algorithm Id:(14ead841b83ddf5dbedd4644903d64aa) completed in 0.38 seconds at 3k data points per second. Processing total of 1,041 data points.

I believe it could be some curruption on the Data that would be giving a negative Price for the asset but after printing the Price of the Security at the end of the algorithm it's positive and normal, only the Unrealized goes to -50.000

 

When livetrading with Paper account I have my equity going from 2.500 USD to 1.5 Million on the next bar, then back to 2500. (With similar algorithm, a few days ago, in 2021)

If this would happen to the negative side I guess the Algorithm would fail on the live trade? 

I'm not sure if this is a bug that could affect the live trading or not.

 

Thank you in advance