Camilo1704
|
0096f09b7c
|
Selling calls monthly example added
|
2020-01-16 12:54:18 -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 |
|
Camilo1704
|
1fb73502d4
|
Selling puts monthly example added
|
2020-01-16 12:43:05 -03:00 |
|
Camilo1704
|
9d206b2a9a
|
Long (ATM) straddle example added
|
2020-01-16 10:50:49 -03:00 |
|
Camilo1704
|
1716d39cd8
|
Iron Condor example added
|
2020-01-16 10:28:57 -03:00 |
|
Camilo1704
|
913873c039
|
Short ATM straddle example added
|
2020-01-15 19:03:54 -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
|
90421fba07
|
Renamed 'demos' as 'examples' and added call/put selling strategy to examples
|
2020-01-14 12:27:22 -03:00 |
|
Javier Rodríguez Chatruc
|
86345d896a
|
Demo vega plots now render on jupyter notebook
|
2020-01-13 15:07:35 -03:00 |
|
Javier Rodríguez Chatruc
|
ebafcd97d9
|
Updated backtester demo
|
2020-01-13 12:45:07 -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
|
94ef7a2c01
|
Improved returns chart tooltip
|
2020-01-10 18:18:04 -03:00 |
|
Juan Pablo Amoroso
|
ab7d8dc637
|
Fixed charts
|
2020-01-10 17:43:28 -03:00 |
|
Juan Pablo Amoroso
|
6068af240f
|
Data cleanup v2. Removes ~%12 of the contracts
|
2020-01-10 13:54:35 -03:00 |
|
Javier Rodríguez Chatruc
|
0ab496e173
|
Changed returns_histogram and monthly_returns_heatmap to work with bt.balance
|
2020-01-09 12:38:03 -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 |
|
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
|
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
|
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 |
|