Commit Graph
130 Commits
Author SHA1 Message Date
Javier Rodríguez Chatruc dfefb79198 Fixed a bug caused by using integer position instead of index in sell_some_options 2020-03-20 18:54:15 -03:00
Juan Pablo AmorosoandGitHub f504e1b5ed Merge pull request #70 from lambdaclass/organize-repo
Organized repo
2020-03-20 17:05:07 -03:00
Juan Pablo AmorosoandGitHub 61bcce5a67 Merge pull request #69 from lambdaclass/disaggregated-stock-qty
Disaggregated stock qty
2020-03-20 16:40:00 -03:00
Javier Rodríguez Chatruc 97c0ebe6cc Removed old run_benchmark file 2020-03-20 16:38:08 -03:00
Javier Rodríguez Chatruc de0fed75cd Modified test_backtest to keep only the balance columns used for the test 2020-03-20 15:04:58 -03:00
Camilo PlataandGitHub 7586609a08 Merge pull request #68 from lambdaclass/ci-notebook-test
Ci notebook test
2020-03-20 14:58:57 -03:00
Juan Pablo Amoroso a6c8a3f58d Removed obsolete test file. 2020-03-20 14:18:04 -03:00
Juan Pablo Amoroso 0e55dd51e5 Refactored pyfolio notebook 2020-03-20 13:35:30 -03:00
Juan Pablo Amoroso 82b6fc6b7b Flake8 changes:
- Ignore error W504 (break line on operator)
	- Ignore unused import in stats.py (used for pandas query)
2020-03-20 13:24:47 -03:00
Javier Rodríguez ChatrucandGitHub 8adde5bac6 Merge pull request #65 from lambdaclass/sell-options-fix
sell_some_options fixed
2020-03-20 12:36:15 -03:00
Javier Rodríguez Chatruc 3124aa8a56 Changed variable names to improve readability 2020-03-20 12:33:52 -03:00
Camilo1704 636b807be1 fixed exit cost in trade_log when exiting options 2020-03-20 11:58:23 -03:00
Javier Rodríguez Chatruc 0569f34e1f Balance now has stock qty disaggregated by symbol 2020-03-20 11:53:14 -03:00
Juan Pablo Amoroso 2789c206c9 Sample backtest notebook. 2020-03-20 11:20:45 -03:00
Juan Pablo Amoroso 5cc0aabf7c Removed unused imports 2020-03-20 11:20:45 -03:00
Juan Pablo AmorosoandGitHub a743a506b4 Merge pull request #66 from lambdaclass/better-example
merged_bt_example now has a more thorough explanation of the backtester
2020-03-20 11:18:41 -03:00
Camilo1704 5b87075c22 order and costs in trade_log modified in sell_some_options exits 2020-03-19 18:48:41 -03:00
Javier Rodríguez Chatruc 2ec5cff32e merged_bt_example now has a more thorough explanation of the backtester 2020-03-19 16:23:10 -03:00
Juan Pablo AmorosoandGitHub 63e307b0fa Merge pull request #58 from lambdaclass/global-test
Added global test
2020-03-19 16:14:43 -03:00
Juan Pablo Amoroso 0f1637fac0 Renamed test_data.csv to test_data_options.csv 2020-03-19 16:11:53 -03:00
Juan Pablo Amoroso e0272074da Added only options test 2020-03-19 15:11:23 -03:00
Camilo1704 87d34df284 sell_some_options fixed 2020-03-19 14:39:58 -03:00
Juan Pablo Amoroso ff70bf12eb Add constant price sma test 2020-03-19 14:36:11 -03:00
Juan Pablo AmorosoandGitHub 87ada8c0cb Merge pull request #64 from lambdaclass/fill-na-balance
update_balance now fills nan values with zero when computing options …
2020-03-19 13:43:30 -03:00
Javier Rodríguez Chatruc 4fdcbbfd63 update_balance now fills nan values with zero when computing options balance 2020-03-19 12:10:41 -03:00
Juan Pablo Amoroso 5eccfcad37 Removed unnecessary asserts 2020-03-19 11:52:24 -03:00
Javier Rodríguez ChatrucandGitHub 0b73e73b6a Merge pull request #59 from lambdaclass/pyfolio_example
Pyfolio example
2020-03-18 18:06:39 -03:00
Javier Rodríguez Chatruc 565931c062 Added tests for buy_stocks, current_stock_capital and sma 2020-03-18 18:04:06 -03:00
Juan Pablo Amoroso bb0a294c86 Added only cash test 2020-03-18 17:48:40 -03:00
Juan Pablo Amoroso 045e15e078 Merge branch 'master' into global-test 2020-03-18 17:46:48 -03:00
Javier Rodríguez ChatrucandGitHub 0de9bf630e Merge pull request #61 from lambdaclass/rebalance-fix
Changed the way self.current_cash is updated
2020-03-18 17:42:20 -03:00
Juan Pablo Amoroso c6c7b16dcd Changed the way self.current_cash is updated 2020-03-18 16:42:46 -03:00
Camilo1704 fc5dc145b4 fixed sma calculation 2020-03-18 14:54:49 -03:00
Juan Pablo Amoroso d8011a4418 Added Ivy portfolio data 2020-03-18 12:04:20 -03:00
Juan Pablo Amoroso 13557f9a54 Added only stocks test 2020-03-17 19:16:39 -03:00
Camilo1704 3bc8ad30df merged_bt_example with pyfolio plots 2020-03-17 17:34:59 -03:00
Juan Pablo Amoroso de05f055ae Merge branch 'master' into global-test 2020-03-17 17:21:51 -03:00
Javier Rodríguez ChatrucandGitHub c50025a21c Merge pull request #56 from lambdaclass/drop-entries-with-0-qty
Drop entries with 0 qty
2020-03-17 17:07:36 -03:00
Camilo1704 349253a410 pyfolio graphs added 2020-03-17 16:42:07 -03:00
Javier Rodríguez Chatruc 55356ff56d Added global test 2020-03-17 15:40:23 -03:00
Camilo1704 fff5455894 rebalancing days calculation with days in data 2020-03-17 15:01:16 -03:00
Javier Rodríguez Chatruc 36e46d3187 Various fixes 2020-03-17 10:51:36 -03:00
Juan Pablo Amoroso 21ee9134d2 Drop entry signals with qty == 0. _buy_stocks and _sell_some_options now update self.current_cash 2020-03-16 19:39:48 -03:00
Juan Pablo Amoroso 8f0c2a7523 Moved 2legs example to backtester/examples 2020-03-16 17:17:25 -03:00
Javier Rodríguez Chatruc a066915750 Fixed options capital not being added to cash if there were no entries in a rebalance day 2020-03-16 17:02:50 -03:00
Javier Rodríguez Chatruc 98ea3dd12b Fixed exit costs being computed incorrectly and filter tests not working 2020-03-16 12:12:49 -03:00
Camilo1704 e014840fb1 delete _sell_options & minor fix in signs 2020-03-13 18:23:11 -03:00
Camilo1704 240fab3d25 sign added in current_cash calculation 2020-03-13 11:52:17 -03:00
Javier Rodríguez Chatruc 53687030e9 Fixed sign issue in update_balance 2020-03-13 11:00:02 -03:00
Camilo1704 f23aa0ee01 rebalance modified 2020-03-12 19:00:53 -03:00