Commit Graph
27 Commits
Author SHA1 Message Date
Juan Pablo Amoroso 5eccfcad37 Removed unnecessary asserts 2020-03-19 11:52:24 -03:00
Camilo1704 fc5dc145b4 fixed sma calculation 2020-03-18 14:54:49 -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 65a8ca1d76 Refactored Strategy and Backtest classes. Moved entry and exit signal filters to Backtest. 2020-03-04 14:20:58 -03:00
Javier Rodríguez Chatruc b64043dae3 Fixed a few things and added a notebook example of merged bt 2020-03-02 12:21:27 -03:00
Camilo1704 9dfe35ea94 update and rebalance changed 2020-02-14 16:01:43 -03:00
Juan Pablo Amoroso 2b04e2d76a Added Tiingo datahandler 2020-02-11 15:26:04 -03:00
Juan Pablo Amoroso 29561e2b0c Moved initial capital to Backtest constructor. Fixed Schema fields 2020-02-06 18:32:39 -03:00
Juan Pablo Amoroso 3de145c5bf Added daily/monthly balance (pd.DataFrame that keeps track of the value of current positions) 2020-01-08 16:11:45 -03:00
Javier Rodríguez Chatruc 6a40398665 Fixed monthly data iterator to return correct dates and moved data cleanup notebook to 'backtester/demos/' 2020-01-07 16:27:26 -03:00
Juan Pablo Amoroso 59f16bac08 Fixed monthly iteration. Changed default enter and exit profit thresholds to math.inf 2019-12-27 13:05:11 -03:00
Juan Pablo Amoroso 0df2236355 Filter contracts already in inventory. Added monthly iteration 2019-12-26 14:52:45 -03:00
Juan Pablo Amoroso 2723b7809c Filter now returns a pd.Series of booleans 2019-12-18 10:31:52 -03:00
Juan Pablo Amoroso b1a0596afb Added conditions checking to Strategy 2019-11-26 17:18:26 -03:00
Javier Rodríguez Chatruc 5fa8ae97c8 Added strangle and option for reading csv 2019-11-08 10:53:48 -03:00
Juan Pablo Amoroso 2c59fe7a91 First working version of backtester. See notebook demo in /backtester/demos 2019-06-07 11:42:00 -03:00
Juan Pablo Amoroso 1a27d150db Improved field composition. 2019-06-04 16:33:46 -03:00
Juan Pablo Amoroso 096878dddb Added ability to combine fields to create complex filters. 2019-06-04 15:49:02 -03:00
Juan Pablo Amoroso 35fc06d723 Added method to allow iteration over dates. Data object passes unimplemented method calls to underlying pd.DataFrame. 2019-06-04 15:46:27 -03:00
Juan Pablo Amoroso 1b4846b652 Added apply_filter method to datahandler. Fixed schema updates for __setitem__ calls 2019-05-31 16:11:08 -03:00
Juan Pablo Amoroso a0eb881d50 Added membership check (*in*) to Schema 2019-05-31 16:08:57 -03:00
Juan Pablo Amoroso 20d45677b6 Now using attribute notation to build filters and brackets to get schema mappings 2019-05-31 11:20:05 -03:00
Juan Pablo Amoroso 8a26e32d0f Working on Strategy implementation. Added Historical Options Data handler. 2019-05-30 15:36:53 -03:00
Juan Pablo Amoroso a3b49bfceb Fixed filter composition with or. Now takes account of operator precedence 2019-05-30 12:27:36 -03:00
Juan Pablo Amoroso 16436dc124 Added tests for filter. Added pytest dependency. 2019-05-30 11:42:52 -03:00
Juan Pablo Amoroso 5a4085a816 Working on data handlers. Added Schema class for validation and Filter class to build querys 2019-05-28 18:24:34 -03:00
Juan Pablo Amoroso 5ae3b91424 Added first draft of backtester 2019-05-13 15:35:59 -03:00