Commit Graph
125 Commits
Author SHA1 Message Date
Javier Rodríguez Chatruc 1bda04d30b Updated example notebooks 2020-03-25 10:54:25 -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
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
Javier Rodríguez Chatruc e16dc77508 Fixed update balance not working if there were multiple contracts on the inventory 2020-03-04 18:48:57 -03:00
Juan Pablo Amoroso a846c7af54 Fix strategy's __init__ imports 2020-03-04 17:12:21 -03:00
Juan Pablo Amoroso bbfebab645 Fixed __init__ imports (solves unused import warning from flake8). 2020-03-04 17:08:39 -03:00
Juan Pablo Amoroso 2a9484b4be Moved summary method to backtester.statistics 2020-03-04 16:03:51 -03:00
Javier Rodríguez Chatruc 262e2aad0d Fixed total capital's first value being NaN 2020-03-04 15:51:51 -03:00