1537 Commits

Author SHA1 Message Date
Jhonathan Abreu 8633714bd0 Update index options regression algorithms stats 2024-08-21 17:19:00 -04:00
Jhonathan Abreu 3f716ba61a Minor regression tests updates after rebase
API Tests / 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
Report Generator Tests / build (push) Has been cancelled
Research Regression Tests / build (push) Has been cancelled
Python Virtual Environments / build (push) Has been cancelled
2024-08-19 11:31:55 -04:00
Jhonathan Abreu f4e826fb59 Regression tests updates after rebasing from master 2024-08-19 09:58:43 -04:00
Jhonathan Abreu f996df7348 Some regression algorithms and unit tests cleanup 2024-08-19 09:58:41 -04:00
Jhonathan Abreu e70df95b7c Use double in price option numerical models 2024-08-19 09:58:32 -04:00
Jhonathan Abreu 27ab68100d Add more assertions to new options filter api regression algorithms 2024-08-19 09:56:40 -04:00
Jhonathan Abreu a17be3ccba Address peer review 2024-08-19 09:56:40 -04:00
Jhonathan Abreu b81c13ac4a Added options greeks data and updated regression algorithms 2024-08-19 09:56:39 -04:00
Jhonathan Abreu 1e6713ccf0 Add regression algorithms for new options filter universe api methods 2024-08-19 09:56:39 -04:00
Jhonathan Abreu e149940fb9 Add OptionUniverse history regression algorithms 2024-08-19 09:56:39 -04:00
Jhonathan Abreu f0908e3e75 Option filter universe api updates 2024-08-19 09:56:39 -04:00
Jhonathan Abreu c9638871ad Update options filter universe API to use OptionUniverse data
Add new filter methods for greeks, IV and open interest
2024-08-19 09:56:39 -04:00
Jhonathan Abreu 64f1b87b01 Minor changes 2024-08-19 09:56:38 -04:00
Jhonathan Abreu 128adba745 Minor changes 2024-08-19 09:56:38 -04:00
Jhonathan Abreu 5e0f1b3742 Data fixes and regression algos stats update 2024-08-19 09:56:38 -04:00
Jhonathan Abreu 0fdd3759b2 Update regression algorithms stats 2024-08-19 09:56:38 -04:00
Jhonathan Abreu bdb5ec9521 Update regression algorithms stats 2024-08-19 09:56:38 -04:00
Jhonathan Abreu 993c3b036d Added option universe csv header property 2024-08-19 09:56:37 -04:00
Jhonathan Abreu 3a9303ecc6 Fix option chain provider history request 2024-08-19 09:56:37 -04:00
Jhonathan Abreu 78a381c569 Update regression algorithms stats and minor fixes 2024-08-19 09:56:37 -04:00
Jhonathan Abreu dfd4f54e3f Update regression algorithm stats 2024-08-19 09:56:37 -04:00
Jhonathan Abreu b9f4cb87e3 Peer recommended changes and fixes 2024-08-19 09:56:37 -04:00
Jhonathan Abreu aad49fecbf Minor changes 2024-08-19 09:56:37 -04:00
Jhonathan Abreu 47eedf6ccd Minor changes 2024-08-19 09:56:37 -04:00
Jhonathan Abreu 3ef8e0d16f Fix universe selection subscriptions start time to not include extended market hours 2024-08-19 09:56:36 -04:00
Jhonathan Abreu e58dab6c5e Fix symbols parsing in OptionUniverse 2024-08-19 09:56:36 -04:00
Jhonathan Abreu 39496b10a4 Address peer review 2024-08-19 09:56:36 -04:00
Jhonathan Abreu 4ec92a93a4 Updated options regression algorithms stats for new universe data 2024-08-19 09:56:35 -04:00
Jhonathan Abreu 96ccc567f7 Updated options regression algorithms stats for new universe data 2024-08-19 09:56:35 -04:00
Jhonathan Abreu 068e09e897 Updated options regression algorithms stats for new universe data 2024-08-19 09:56:35 -04:00
Jhonathan Abreu 4edf4e2e63 Updated options regression algorithms stats for new universe data 2024-08-19 09:56:35 -04:00
Jhonathan Abreu 078a977eb6 Updated options regression algorithms stats for new universe data 2024-08-19 09:56:35 -04:00
Jhonathan Abreu bd5f4e47be File based options universe fixes and improvements.
- Adjust OptionUniverse start-end times and period.
- Adapt unit tests and some algorithms to pass with new options universe selection.
2024-08-19 09:56:35 -04:00
Jhonathan Abreu 5d63f27688 Initial options universe with greeks implementation 2024-08-19 09:56:34 -04:00
Jhonathan Abreu 9b332c2149 Dividend yield calculation fix (#8264)
API Tests / 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
Report Generator Tests / build (push) Has been cancelled
Research Regression Tests / build (push) Has been cancelled
Python Virtual Environments / build (push) Has been cancelled
* Fix dividend yield calculation

* Get security price as input for dividend yield provider

* Account for splits in dividend yield provider

* Fix split adjustment for dividend yield calculation

* Use right dividend yield in options indicators
2024-08-19 09:30:05 -04:00
Martin-Molinero 7879795207 Enable daily precise end time by default (#8254)
API Tests / build (push) Has been cancelled
Build & Test Lean / build (push) Has been cancelled
Report Generator Tests / build (push) Has been cancelled
Python Virtual Environments / build (push) Has been cancelled
Regression Tests / build (push) Has been cancelled
Benchmarks / build (push) Has been cancelled
Research Regression Tests / build (push) Has been cancelled
* Default daily precise end times

- Enable by default daily precise end times. Updating stats
- Minor fix for algorithm manager consolidator updates, adding new regression test
  asserting behavior and updating others
- Minor fix for SubscriptionData creator avoid round down on warmup if
  not appropiate
- Adjust consolidators to emit on daily strict end times if requested
  daily resolution and setting enabled
- Updating regression algorithms

* Skip daily data on extended market hours

* Some cleanup and self review

* Revert unrequired change
2024-08-14 12:49:56 -03:00
Noah Misch d2d366e3f9 Fix sign of order quantity in example algorithm OnMarginCall(). (#8251)
Regression Tests / build (push) Has been cancelled
API Tests / build (push) Has been cancelled
Benchmarks / build (push) Has been cancelled
Build & Test Lean / build (push) Has been cancelled
Report Generator Tests / build (push) Has been cancelled
Research Regression Tests / build (push) Has been cancelled
Python Virtual Environments / build (push) Has been cancelled
Despite the comments about avoiding margin calls and about padding, this
turned a proposed sale of 100 shares into a *buy* of 110 shares.
2024-08-12 17:40:51 -03:00
Ricardo Andrés Marino Rojas 5226b7a468 Add more options to Field class (#8228)
API Tests / 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
Report Generator Tests / build (push) Has been cancelled
Research Regression Tests / build (push) Has been cancelled
Python Virtual Environments / build (push) Has been cancelled
* First draft of the solution

* Reduce duplication and add more properties

* Add regression tests

* Add xml docs

* Add unit tests

* Improve regression and unit tests

* Address requested changes

* Address request and improve unit tests

* Add unit test and fix bug

* Improve unit tests and implementation

* Nit change

* Address reviews

* Improve regression tests

* Address requests

* Fix bug

* Address requests
2024-08-07 19:08:34 -03:00
Noah Misch 2b1136e446 Fix algorithms using OnData(TradeBars) w/o using arg or other OnData(). (#8245)
Report Generator Tests / 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
API Tests / build (push) Has been cancelled
Research Regression Tests / build (push) Has been cancelled
Python Virtual Environments / build (push) Has been cancelled
Commit d24f665ee4 removed the
Engine/AlgorithmManager.cs support for OnData(TradeBars), making these
methods dead code.  Hence, some of these algorithms no longer placed
orders.  Fix by changing OnData(TradeBars) to OnData(Slice).  Files that
use the TradeBars argument or use OnData(Dividends) have the same
trouble; leave them for future work.
2024-08-06 10:15:56 -03:00
Jhonathan Abreu 9eb484625d Default option pricing models for options indicators (#8229)
* Set best recommended model based on option style.

The best option model will be used in options indicators based on option style if not specified

* Reduced Greeks/IV numerical models steps to 100

* Minor fixes

* Minor changes and improvements

* Changed default pricing model for IV

* Minor performance improvements

* Minor performance improvements and fixes

* Minor change

* Minor regression algorithm fix

* Update greek indicators internal IV indicator only when not user provided

* Revert unnecessary changes

* Minor changes

* Cleanup
2024-07-30 10:15:21 -04:00
Ricardo Andrés Marino Rojas 97959d560a Add liquidate method overloads (#8210)
API Tests / 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
Report Generator Tests / build (push) Has been cancelled
Research Regression Tests / build (push) Has been cancelled
Python Virtual Environments / build (push) Has been cancelled
* First draft of the solution

* First draft of the tests

* Nit changes

* Nit change

* Add improvements

* Improve unit tests

* Regression algos

* Nit change

* Nit changes

* Improve unit tests

* Improve unit test

* Nit change

* Address reviews
2024-07-22 12:48:53 -03:00
Martin-Molinero 53c2a214a1 Improve indicator warmup (#8192)
API Tests / 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
Report Generator Tests / build (push) Has been cancelled
Research Regression Tests / build (push) Has been cancelled
Python Virtual Environments / build (push) Has been cancelled
* Improve indicator warmup

- Allow indicator warmup to handle multiple symbols, used for option
  greeks. Adding regression test
- Improve indicator history to handle specific T types. Adding unit test
- Remove period, and historical underlying volatility, from IV so
  simplify warmup behavior

* Address review, fix minor issues
2024-07-11 16:16:49 -03:00
Ricardo Andrés Marino Rojas 554a82527f Fix minor warnings (#8190)
* Fix CA1847 warnings and some CA1307 warnings

* Fix CA1823 and CS0169

* Fix CA1820 warnings

* Address requested changes
2024-07-10 14:17:27 -03:00
Ricardo Andrés Marino Rojas 8b312efd0c Fix CA1829 warning (#8188)
* Fix CA1829 warning

* Fix failing test
2024-07-10 14:08:28 -03:00
Jhonathan Abreu e0c90e8c04 Minor changes in option chain fetching algorithms (#8175) 2024-07-09 10:55:45 -03:00
Martin-Molinero 12644f8b2a Minor fixes for IndicatorHistory and IV (#8174)
* Minor fixes for IndicatorHistory and IV

- Minor fix for IndicatorHistory, use ScaledRaw data normalization mode
  for option indicators. Adding unit test
- Expand the IV expected upper range to 400%, given values can be higher
  than previous value of 200%
- Adjust IV to use smoothing function only when both option calculations
  succeed

* Updating regression algorithm expected greeks, minor change
2024-07-09 10:54:55 -03:00
Martin-Molinero 6c30157fab Remove universe selection on extended market dates (#8160)
- Remove universe selection on dates with extended market hours only
- Updating regression algorithms
- Expand date & time rules API to support specifying whether extended
  market hours only dates are desired or not
2024-07-08 11:58:50 -03:00
Louis Szeto 6185a4c6a4 Option Strategy Filters for Jelly Roll and Ladder (#8150)
* add option filter strategy

* unit test

* regression test
2024-07-05 16:31:38 -03:00
Ricardo Andrés Marino Rojas 16a737ee26 Fix most of CA1725 warnings (#8154)
* Fix CA1725 warning

* Address requested changes
2024-07-05 16:19:56 -03:00
Ricardo Andrés Marino Rojas 0a0c012ae9 Fix second half of the CA1051 warnings (#8140)
* Fix second half of the CA1051 warnings

* Address requested changes
2024-07-05 13:54:03 -03:00