eefa74baaae6f53e4f9d2b88af1e907ca1f209be
10 Commits
| Author | SHA1 | Message | Date | |
|---|---|---|---|---|
|
|
eefa74baaa |
Add Sortino ratio to statistics and report (#6698)
Regression Tests / build (push) Has been cancelled
Benchmarks / build (push) Has been cancelled
Build & Test Lean / build (push) Has been cancelled
Research Regression Tests / build (push) Has been cancelled
Python Virtual Environments / build (push) Has been cancelled
* Add Sortino ratio to statistics and report * Adds Sortino Ratio to Report Key Statistics * Addresses Peer-Review Reuse `SharpeRatioReportElement` and change the template. * Reuse Calculations Across Statistics and PortfolioStatistics * Adds Sortino Ratio to Regression Algorithms * Removes Sortino Ratio from Optimization Result Table --------- Co-authored-by: Alexandre Catarino <AlexCatarino@users.noreply.github.com> |
||
|
|
dcb5f8ee4e |
Merge branches 7501 and 7506 (#7605)
Research Regression Tests / build (push) Has been cancelled
Python Virtual Environments / build (push) Has been cancelled
Benchmarks / build (push) Has been cancelled
Build & Test Lean / build (push) Has been cancelled
Regression Tests / build (push) Has been cancelled
* Update Future-cme-[*] and Future-cme-ES Acoording to `pandas_market_calendars` there were some dates in Future-cme-[*] who wasn't early_closes, so they needed to be removed from there. On the other hand, the early closes list of Future-cme-ES were shifted by 1 hour according to CME webpage. Besides, there were some missing dates. * Update CME Future entries in MHDB * Rebase * nit change * Fix unit tests * Resume after early close/halts * Add missing dates in MHDB and fix bugs in it * Fix bug, add more unit tests and add docs * fix regression algos * address required changes * Update failing regression test stats After debugging the tests it was found they were failing due to the last change on SecurityExchangeHours.IsOpen(). That method wasn't taking into account that even if there is a late open after an early close if the timespan is after the early close but before the late open, the market is still close. * enhance solution * Update and fix bugs in MHDB * Address required changes and update stats * Update stats after rebase * Nit change * Missing update to regression test * Use MHDB instead of USHoliday for Expiration Dates VIX expiry function now relies completely on MHDB. However, it had to be created an entry in MHDB for VIX since there wasn't one for it. CBOE webpage only provided 2023 holidays so only those dates were considered in the Holidays entry in MHDB. Therefore, some unit tests failed so it was necessary to change also the VIX entry in FuturesExpiryFunctionsTestData.xml. * Remove Global.cs/USHolidays class * Use a lazy implementation * First draft of the solution * Use MHDB in FuturesExpiryFunctions.cs * Remove unused class and fix indentation errors * Fix indentation errors * Nit changes * Merge branches 7501 and 7506 * Merge changes in 7501 and 7506 In order to check compatibility between those branches, a new branch was created out of branch 7501 and then it was merged with branch 7506. 2 regression tests and 8 unit tests failed, the regression tests failed on the DataPoint stats. On the other hand, the unit tests failed since the default parameter UseEquityHoliday was removed from FuturesExpirtyUtilityFunctions.AddBusinessDays() and from other methods in the same class too. * Add missing changes * Remove repeated good fridays * Address minor review --------- Co-authored-by: Martin Molinero <martin.molinero1@gmail.com> |
||
|
|
c33ce2f8c3 |
MHDB Merge Common Holidays, LateOpens & EarlyCloses (#7278)
* MHDB will merge common entry - The MHDB will merge the market and security common entry holidays, early closes and late opens * Normalize & reuse future US holidays - Normalize & reuse future US holidays * Update existing unit tests expected stats |
||
|
|
b5ced1635e |
Chain Providers will filter expired (#7267)
Regression Tests / build (push) Has been cancelled
Research Regression Tests / build (push) Has been cancelled
Benchmarks / build (push) Has been cancelled
Build & Test Lean / build (push) Has been cancelled
Python Virtual Environments / build (push) Has been cancelled
- Future and option chain providers will always filter expired contracts from their result. Update existing tests |
||
|
|
0b81cf0218 |
Add dataMappingMode parameter to History methods (#7204)
Regression Tests / build (push) Has been cancelled
Benchmarks / build (push) Has been cancelled
Build & Test Lean / build (push) Has been cancelled
Research Regression Tests / build (push) Has been cancelled
Python Virtual Environments / build (push) Has been cancelled
* Add dataMappingMode parameter to every history api method overload * Minor unit tests fixes * Update regression algorithm stats * Minor changes * Minor changes |
||
|
|
bbbab6d9a8 |
Refactor alpha statistics phase I (#7055)
Regression Tests / build (push) Has been cancelled
Python Virtual Environments / build (push) Has been cancelled
Benchmarks / build (push) Has been cancelled
Build & Test Lean / build (push) Has been cancelled
Research Regression Tests / build (push) Has been cancelled
* Refactor alpha statistics - Refactor alpha statistics, cleaning up and simplifying no longer required calculations and scoring - Adding new InsightEvaluator abstraction, adding C# & PY regression algorithms * Optimization backtest result json converter update * Address reviews - Remove IAlphaHandler, move insight storage responsability to IResultHandler and centralizing insight collection on the QCAlgorithm.Insights to be reused by the framework models - Fix portfolio turnover single day backtests and duplicate time sampling handling. Updating regression algorithms * Add InsightCollection tests and minor fixes * Adding more & improved tests |
||
|
|
c4433098c3 |
Refactor Framework Statistics (#7041)
* Refactor framework statistics * Further insight chart cleanup |
||
|
|
6563d6e394 |
Use any resolution for chain provider (#6860)
Regression Tests / build (push) Has been cancelled
Python Virtual Environments / build (push) Has been cancelled
Benchmarks / build (push) Has been cancelled
Build & Test Lean / build (push) Has been cancelled
Research Regression Tests / build (push) Has been cancelled
* Use any resolution for chain provider - Use any data resolution available to source symbols for the file based chain provider. Adding unit test * Fix selection timezone bug - Fix universe selection timezone bug. Updating regression algorithms |
||
|
|
539011274c |
Support extended market hours for futures (#6522)
Python Virtual Environments / build (push) Has been cancelled
Benchmarks / build (push) Has been cancelled
Build & Test Lean / build (push) Has been cancelled
Regression Tests / build (push) Has been cancelled
Research Regression Tests / build (push) Has been cancelled
* Support extended market hours in AddFuture() * Support extended market hours in AddFutureContract() * Add C# regression algorithm * Add Python regression algorithm * Add regression algorithm for future contracts * Add regression algorithm checking market hour ranges * Fixed future regression algorithms to use extended market hours * Fixed future regression algorithms to use extended market hours * Fixed future regression algorithms to use extended market hours * Fixed AddFutureOptionContractFromFutureChainRegressionAlgorithm to use extended market hours * Update future market hours to include extended in market hours database * Fixed AddFutureOptionContractDataStreamingRegressionAlgorithm to use extended market hours * Fixed AddFutureOptionContractFromFutureChainRegressionAlgorithm to use extended market hours * Fixed AddFutureContractWithContinuousRegressionAlgorithm to use extended market hours * Fixed BasicTemplateContinuousFutureAlgorithm to use extended market hours * Fixed BasicTemplateFuturesAlgorithm to use extended market hours * Fix BasicTemplateFuturesDailyAlgorithm to use extended market hours * Fixed BasicTemplateFuturesFrameworkAlgorithm to use extended market hours * Fixed BasicTemplateFuturesHistoryAlgorithm to use extended market hours * Fixed ContinuousBackMonthRawFutureRegressionAlgorithm to use extended market hours * Fixed ContinuousFutureBackMonthRegressionAlgorithm to use extended market hours * Fixed ContinuousFutureHistoryRegressionAlgorithm to use extended market hours * Fixed ContinuousFutureLimitIfTouchedOrderRegressionAlgorithm to use extended market hours * Fixed ContinuousFutureRegressionAlgorithm to use extended market hours * Fixed DelistedFutureLiquidateRegressionAlgorithm to use extended market hours * Fixed AutomaticIndicatorWarmupDataTypeRegressionAlgorithm to use extended market hours * Fixed ConsolidateRegressionAlgorithm to use extended market hours * Fixed DelistingFutureOptionRegressionAlgorithm to use extended market hours * Fixed EqualWeightingPortfolioConstructionModelFutureRegressionAlgorithm to use extended market hours * Fixed FutureContractsExtendedMarketHoursRegressionAlgorithm to use extended market hours * Fixed FutureMarketOpenAndCloseRegressionAlgorithm to use extended market hours * Fixed FutureMarketOpenConsolidatorRegressionAlgorithm to use extended market hours * Fixed FutureOptionBuySellCallIntradayRegressionAlgorithm to use extended market hours * Fixed FutureOptionCallITMExpiryRegressionAlgorithm to use extended market hours * Fixed FutureOptionCallITMGreeksExpiryRegressionAlgorithm to use extended market hours * Fixed FutureOptionCallOTMExpiryRegressionAlgorithm to use extended market hours * Fixed FutureOptionDailyRegressionAlgorithm to use extended market hours * Fixed FutureOptionHourlyRegressionAlgorithm to use extended market hours * Fixed FutureOptionMultipleContractsInDifferentContractMonthsWithSameUnderlyingFutureRegressionAlgorithm to use extended market hours * Fixed FutureOptionPutITMExpiryRegressionAlgorithm to use extended market hours * Fixed FutureOptionPutOTMExpiryRegressionAlgorithm to use extended market hours * Fixed FutureOptionShortCallITMExpiryRegressionAlgorithm to use extended market hours * Fixed FutureOptionShortCallOTMExpiryRegressionAlgorithm to use extended market hours * Fixed FutureOptionShortPutITMExpiryRegressionAlgorithm to use extended market hours * Fixed FutureOptionShortPutOTMExpiryRegressionAlgorithm to use extended market hours * Fixed FuturesAndFuturesOptionsExpiryTimeAndLiquidationRegressionAlgorithm to use extended market hours * Fixed FuturesExpiredContractRegression to use extended market hours * Fixed FutureSharingTickerRegressionAlgorithm to use extended market hours * Fixed HistoryWithDifferentContinuousContractDepthOffsetsRegressionAlgorithm to use extended market hours * Fixed HistoryWithDifferentDataMappingModeRegressionAlgorithm to use extended market hours * Fixed HistoryWithDifferentDataNormalizationModeRegressionAlgorithm to use extended market hours * Fixed LimitOrdersAreFilledAfterHoursForFuturesRegressionAlgorithm to use extended market hours * Fixed OpenInterestFuturesRegressionAlgorithm to use extended market hours * Fixed RegisterIndicatorRegressionAlgorithm to use extended market hours * Fixed SetHoldingsFutureRegressionAlgorithm to use extended market hours * Fixed WarmupFutureRegressionAlgorithm to use extended market hours * Fixed AddFutureOptionSingleOptionChainSelectedInUniverseFilterRegressionAlgorithm to use extended market hours * Fixed AlgorithmHistoryTests to use extended market hours for futures * Fixed AlgorithmTradingTests to use extended market hours for futures * Fixed BrokerageSetupHandlerTests to use extended market hours for futures * Fixed TimeRulesTests to use extended market hours for futures * Fixed FutureOptionMarginBuyingPowerModelTests to use extended market hours for futures * Fixed FutureMarginBuyingPowerModelTests to use extended market hours for futures * Fixed FileSystemDataFeedTests to use extended market hours for futures * Fixed QuantBookHistoryTests to use extended market hours for futures * Split BasicTemplateContinuousFutureAlgorithm to have an extended market version * Fixed FutureMarketOpenAndCloseRegressionAlgorithm to use extended market hours * Split BasicTemplateFuturesAlgorithm to have an extended market version * Split BasicTemplateFuturesAlgorithm to have an extended market version * Split BasicTemplateFuturesFrameworkAlgorithm to have an extended market version * Split BasicTemplateFuturesHistoryAlgorithm to have an extended market version * Revert AddFutureContractWithContinuousRegressionAlgorithm * Revert AddFutureOptionContractDataStreamingRegressionAlgorithm and added data * Revert AddFutureOptionContractFromFutureChainRegressionAlgorithm * Revert AddFutureOptionSingleOptionChainSelectedInUniverseFilterRegressionAlgorithm * Revert ConsolidateRegressionAlgorithm * Revert Algorithm.CSharp/ContinuousBackMonthRawFutureRegressionAlgorithm.cs * Revert ContinuousFutureBackMonthRegressionAlgorithm * Revert ContinuousFutureHistoryRegressionAlgorithm * Revert ContinuousFutureLimitIfTouchedOrderRegressionAlgorithm * Revert ContinuousFutureRegressionAlgorithm * Revert Algorithm.CSharp/DelistedFutureLiquidateRegressionAlgorithm.cs * Revert EqualWeightingPortfolioConstructionModelFutureRegressionAlgorithm * Split FutureMarketOpenAndCloseRegressionAlgorithm to have an extended market version * Split FutureMarketOpenConsolidatorRegressionAlgorithm to have an extended market version * Revert FutureOptionBuySellCallIntradayRegressionAlgorithm * Revert FutureOptionCallITMExpiryRegressionAlgorithm * Revert FutureOptionDailyRegressionAlgorithm * Revert FutureOptionPutITMExpiryRegressionAlgorithm * Revert FutureSharingTickerRegressionAlgorithm * Revert FuturesAndFuturesOptionsExpiryTimeAndLiquidationRegressionAlgorithm * Revert FuturesExpiredContractRegression * Revert HistoryWithDifferentContinuousContractDepthOffsetsRegressionAlgorithm * Revert HistoryWithDifferentDataMappingModeRegressionAlgorithm * Revert HistoryWithDifferentDataNormalizationModeRegressionAlgorithm * Revert OpenInterestFuturesRegressionAlgorithm * Revert RegisterIndicatorRegressionAlgorithm * Revert SetHoldingsFutureRegressionAlgorithm * Revert WarmupFutureRegressionAlgorithm * Revert AutomaticIndicatorWarmupDataTypeRegressionAlgorithm * Some cleanup * Address changes request * Address changes request * Add more Class III Milk data to fix DelistingFutureOptionDailyRegressionAlgorithm |
||
|
|
9128ce1260 |
Add data normalization mode parameter to QCAlgorithm.History() (#6435)
Build & Test Lean / build (push) Has been cancelled
Regression Tests / build (push) Has been cancelled
Research Regression Tests / build (push) Has been cancelled
* Add data normalization mode parameter to big History() methods * Add C# regression algorithm * Add Python regression algorithm |