* First attempt to solve the bug * Enhance implementation * Enhance implementation * Simplify implementation * Rebase regression stats * Solve unit test bugs * Review * Update Rolling.Sharpe() method * Update regression stats * Update unit tests * Update missing regression algos * Update Rolling.cs --------- Co-authored-by: Martin Molinero <martin.molinero1@gmail.com> Co-authored-by: Martin-Molinero <martin@quantconnect.com>
* Add ITM option assignment trade as win in trade statistics * Add TradeStatistics unit tests * Add unit tests * Add OptionTrade class to abstract IsWin method * Keep track of winning/losing trades * Add more unit tests * Change Trade.IsWin to a property calculated by the trade builder * Improve regression algorithm * Handle ITM option sell win/loss statistics * Update regression algorithms statistics * Revert accidental unwanted changes * Address peer review * Keep track of winning and losing transactions for portfolio statistics * Add more SecurityPortfolioModel unit tests * Fix failing unit tests * Minor changes * Address peer review * Minor fix
- Refactor automatic option assignment to allow overriding behavior. Adding & updating existing tests