195 Commits

Author SHA1 Message Date
Javier Rodríguez Chatruc da655f7ab6 Changed summary method because of merge inconsistency 2020-01-06 11:09:47 -03:00
Javier Rodríguez Chatruc e383397c20 Added a first version of a summary 2019-12-30 18:48:33 -03:00
Juan Pablo Amoroso 32b7d7a974 Keep record of initial capital 2019-12-30 18:43:07 -03:00
Juan Pablo Amoroso d2963f812b Moved demo notebook to ./backtester/demos/ 2019-12-30 18:42:15 -03:00
Javier Rodríguez Chatruc 3f39b36005 Added straddle class, monthly iteration example in demo and progress bar 2019-12-27 18:28:37 -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 0bbeb18d35 Increase max_line_length for formatter 2019-12-27 13:03:54 -03:00
Javier Rodríguez Chatruc 2aef5ca5a8 Added notebooks for data cleanup and demo 2019-12-26 15:57:16 -03:00
Juan Pablo Amoroso 0df2236355 Filter contracts already in inventory. Added monthly iteration 2019-12-26 14:52:45 -03:00
Javier Rodríguez Chatruc 461ea8da52 Removed code to manage possible missing contracts and changed trade log structure to resemble the inventory 2019-12-19 16:06:16 -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 2c5100cd86 Refactored filter_exits method in Strategy. Moved date iteration to Backtester 2019-12-17 10:13:47 -03:00
Javier Rodríguez Chatruc 9ff866e1d9 Fixed capital showing incorrect values in trade log 2019-12-03 18:44:14 -03:00
Javier Rodríguez Chatruc 1fe8851554 Fixed a few things and added exit price thresholds as user input 2019-12-02 11:22:15 -03:00
Javier Rodríguez Chatruc 182f24d874 Changed inventory to a dataframe and added exit filter by price 2019-11-28 10:43:27 -03:00
Juan Pablo Amoroso c60ddb0e99 Added calculation of total costs for signals. Moved check of 0 priced options to StrategyLeg 2019-11-27 17:59:02 -03:00
Juan Pablo Amoroso 0b0fb7e87e Fixed option flip operator 2019-11-27 10:41:34 -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 435a7cadc0 Fixed bug when checking for contracts in exit signals. Updated demo notebook 2019-06-07 17:24:52 -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 8edc657bc3 Added more tests for Filter and Field classes. 2019-06-04 17:39:14 -03:00
Juan Pablo Amoroso c2b8f4adba Strategy class implements run method that yields dataframes with entry and exit signals for each time period in data. 2019-06-04 16:41:45 -03:00
Juan Pablo Amoroso d790c8e6ff Moved Order enum to signal module. Created Signal (ENTRY | EXIT) enum. 2019-06-04 16:39:30 -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 a6dd0a1e86 Removed unused legacy code. 2019-06-04 15:43:50 -03:00
Juan Pablo Amoroso f953826b80 Created StrategyLeg class from previous OptionContract. Option enums moved to separate module 2019-05-31 16:14:51 -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 7914c72158 Added pytables dependency to handle HDF5 files 2019-05-30 15:37:31 -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 b1e6589ee6 Increased verbosity of pytest 2019-05-30 14:02:31 -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
Federico Carrone 5d1005d26e Merge pull request #18 from lambdaclass/contributing
Contributing doc
2019-05-17 21:43:00 +00:00
Juan Pablo Amoroso 36fde6b769 First draft of contribution document 2019-05-16 18:26:47 -03:00
Juan Pablo Amoroso 22011b7cd1 Added flake8 and yapf dependencies 2019-05-16 14:18:12 -03:00
Juan Pablo Amoroso 9af977a031 Added alert system 2019-05-13 17:28:34 -03:00
Juan Pablo Amoroso 5ae3b91424 Added first draft of backtester 2019-05-13 15:35:59 -03:00
Juan Pablo Amoroso 34925b8bee Added data_scraper 2019-05-13 15:28:23 -03:00
Federico Carrone 6b0f7e2d32 Initial commit 2019-05-08 11:48:05 -03:00