Juan Pablo Amoroso
|
5eccfcad37
|
Removed unnecessary asserts
|
2020-03-19 11:52:24 -03:00 |
|
Javier Rodríguez Chatruc
|
53687030e9
|
Fixed sign issue in update_balance
|
2020-03-13 11:00:02 -03:00 |
|
Juan Pablo Amoroso
|
a846c7af54
|
Fix strategy's __init__ imports
|
2020-03-04 17:12:21 -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
|
5477004184
|
Added Stock as a top level import
|
2020-02-14 18:41:43 -03:00 |
|
Juan Pablo Amoroso
|
65740b5fcc
|
Fixed imports
|
2020-02-11 15:34:10 -03:00 |
|
Juan Pablo Amoroso
|
4191824b9e
|
Moved enums to a single module
|
2020-02-11 15:22:43 -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
|
d1298903fc
|
Fixed exit costs being calculated before imputing missing contracts
|
2020-01-13 10:40:21 -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 |
|
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
|
bc88387dc5
|
Updated demo notebook to work with the recent changes
|
2020-01-07 14:38:11 -03:00 |
|
Javier Rodríguez Chatruc
|
7cf17ec307
|
Removed straddle from __init__ file
|
2020-01-07 11:00:43 -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
|
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 |
|
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
|
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
|
2c59fe7a91
|
First working version of backtester. See notebook demo in /backtester/demos
|
2019-06-07 11:42:00 -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
|
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
|
8a26e32d0f
|
Working on Strategy implementation. Added Historical Options Data handler.
|
2019-05-30 15:36:53 -03:00 |
|
Juan Pablo Amoroso
|
5ae3b91424
|
Added first draft of backtester
|
2019-05-13 15:35:59 -03:00 |
|