Commit Graph
27 Commits
Author SHA1 Message Date
Javier Rodríguez Chatruc bc3b4729af Summary's largest loss can no longer be negative 2020-01-23 17:50:14 -03:00
Javier Rodríguez Chatruc d6783a5fc0 Added unit test for backtester 2020-01-22 17:24:22 -03:00
Javier Rodríguez Chatruc 3a5a527325 Fixed exit_candidates return value sometimes not having the correct index 2020-01-16 12:45:51 -03:00
Javier Rodríguez Chatruc 20d06f83f7 Fixed avg P&L giving incorrect values 2020-01-14 15:32:25 -03:00
Javier Rodríguez Chatruc 8af11e5f6a Improved formatting in summary method 2020-01-14 14:35:26 -03:00
Javier Rodríguez Chatruc 89c18c6bd8 Strategy now immediately exits when there are missing contracts with the cost imputed 2020-01-10 19:04:55 -03:00
Javier Rodríguez Chatruc 29b31113d4 Accumulated returns now start at 1 instead of 0 2020-01-08 16:24:49 -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
Juan Pablo Amoroso dd667440f4 Fixed backtester's method 2020-01-07 14:42:15 -03:00
Javier Rodríguez Chatruc b7576e87c7 Replaced straddle class with the more general strangle and moved 'date' column to 'totals' index 2020-01-07 10:58:42 -03:00
Javier Rodríguez Chatruc bd268cc23c Strategy now chooses to buy/sell as many contracts as initial capital allows 2020-01-06 12:35:12 -03:00
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
Javier Rodríguez Chatruc 3f39b36005 Added straddle class, monthly iteration example in demo and progress bar 2019-12-27 18:28:37 -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 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 b1a0596afb Added conditions checking to Strategy 2019-11-26 17:18:26 -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 5ae3b91424 Added first draft of backtester 2019-05-13 15:35:59 -03:00