Hi all,

AAPL had a 7:1 stock split on June 9, 2014. I set the algorithm to buy 100 shares of AAPL with a MarketOnOpenOrder on June 6 (before the split) and sell it with a MarketOnOpenOrder on June 10 (after the split). The initial cash was set to be $64700, so after buying 100 shares at 646.25, the remaining cash was 75 USD. The cash and AAPL stock position's holding value are displayed by Console.WriteLine(). The result was as follows:


Launching analysis for cbcef023c539813669e96315321da2cc with LEAN Engine v2.5.0.0.12209
06-03 O=634.0000 C=628.6500 Portfolio=64700.0 AAPL=0 Cash=64700.0
06-04 O=628.4700 C=637.5400 Portfolio=64700.0 AAPL=0 Cash=64700.0
06-05 O=637.2800 C=644.8200 Portfolio=64700.0 AAPL=0 Cash=64700.0
Order filled: 2014-06-06 @646.25x100
06-06 O=646.2500 C=647.3500 Portfolio=64810.00000 AAPL=64735.00000 Cash=75.000
06-07 O=650.0000 C=645.5700 Portfolio=64632.00000 AAPL=64557.00000 Cash=75.000
06-09 O=-1 C=-1 Portfolio=65185.190740668303811078475569 AAPL=64464.801500196000 Cash=720.38924047230381107847556861
Warning: all market orders sent using daily data, or market orders sent after hours are automatically converted into MarketOnOpen orders.
06-10 O=92.6900 C=93.7000 Portfolio=66216.689240472303811078475569 AAPL=65496.30000 Cash=720.38924047230381107847556861
Order filled: 2014-06-11 @94.64x-699
06-11 O=94.6400 C=94.2500 Portfolio=66873.749240472303811078475569 AAPL=0 Cash=66873.749240472303811078475569
06-12 O=94.1300 C=93.8600 Portfolio=66873.749240472303811078475569 AAPL=0 Cash=66873.749240472303811078475569
Algorithm Id:(cbcef023c539813669e96315321da2cc) completed in 0.56 seconds at 0k data points per second. Processing total of 67 data points.


Two questions:
1. On 06-09, Open and Close were both -1, meaning there was no AAPL's TradeBar in data.Bars, which was unexpected. The stock was actually traded on that day.
2. Also on 06-09, the cash became 720.38924047230381107847556861 USD instead of 75 USD. This should be incorrect.