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 |
|
Camilo1704
|
5b87075c22
|
order and costs in trade_log modified in sell_some_options exits
|
2020-03-19 18:48:41 -03:00 |
|
Camilo1704
|
87d34df284
|
sell_some_options fixed
|
2020-03-19 14:39:58 -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 |
|
Juan Pablo Amoroso
|
c6c7b16dcd
|
Changed the way self.current_cash is updated
|
2020-03-18 16:42:46 -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
|
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 |
|
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
|
bbfebab645
|
Fixed __init__ imports (solves unused import warning from flake8).
|
2020-03-04 17:08:39 -03:00 |
|
Javier Rodríguez Chatruc
|
262e2aad0d
|
Fixed total capital's first value being NaN
|
2020-03-04 15:51:51 -03:00 |
|
Javier Rodríguez Chatruc
|
0def0373b6
|
Balance now updates in batch on rebalancing days
|
2020-03-04 15:27:00 -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 |
|
Juan Pablo Amoroso
|
549b8f1a88
|
Refactoring Backtest class
|
2020-02-17 11:25:19 -03:00 |
|
Camilo1704
|
9dfe35ea94
|
update and rebalance changed
|
2020-02-14 16:01:43 -03:00 |
|
Juan Pablo Amoroso
|
fd0be624f9
|
Refactoring Backtest class
|
2020-02-12 12:20:19 -03:00 |
|
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 |
|