Commit Graph

44 Commits

Author SHA1 Message Date
d27b0e301c Add ATR regime backtest filter 2024-07-29 11:52:10 -07:00
0c92789d26 Use the correct exit slippage when updating spread details 2024-05-22 07:38:53 -07:00
a804dcc7b1 Add VVIX regime filter for backtesting options 2024-05-12 05:07:29 -07:00
3926429751 Remove unused metrics collection code 2024-03-26 05:35:39 -07:00
663d4e13a3 Trivial formatting change 2024-03-25 13:21:53 -07:00
4532e2499f Utilize configurable entry and exit slippages provided by the client via the option spread strategies 2024-03-10 05:26:11 -07:00
50269972ae Add entry and exit slippage to option spread strategies so that they can ultimately be configured by the client 2024-03-10 05:23:26 -07:00
37c3ebe1fa Incorporate more realistic slippage into entries and exits 2024-03-07 12:58:59 -08:00
2ea84e8dcd Correctly update the closing price of each spread 2024-03-04 15:59:06 -08:00
16db358eaf Trivial indentation fix 2024-03-04 11:05:51 -08:00
311a0595f8 Remove logging basic configuration as 1) the log level defaults to warnings already and 2) this was causing issues downstream when importing backtesting logic in other packages as subsequent calls to set the basic configuration are ignored 2024-02-16 07:44:20 -08:00
d51bec8a46 Add helper methods to construct iron condor strategy name strings for ensuring consistency between backtest and trades tables 2024-02-15 08:18:15 -08:00
8379184b62 Remove unused import 2024-02-15 06:09:49 -08:00
4e250ef57f Ensure that provided dates are set to midnight in order to include all the data for the requested dates 2024-02-15 06:03:50 -08:00
788f238530 Query filters using datetime set to midnight regardless of what the caller provides as this is what is expected of the data 2024-02-13 14:28:27 -08:00
517e70b471 Remove unused import 2024-02-13 08:11:01 -08:00
bb8ab9f556 Remove unusued code for tracking total wins, win rate, and average premium received 2024-02-07 05:58:18 -08:00
21934e9e15 Add the current date to the volatility regime filter in order to support decisions on whether to trade prior to the market open 2024-02-06 09:17:18 -08:00
e02e831288 Add the ability to filter out days to trade by providing a list of backtest filters 2024-02-06 07:50:28 -08:00
4214ed5165 Expose backtest filter class to clients 2024-02-06 07:38:18 -08:00
e2781e5b9f Add volatility regime filter for filtering out trades on days when the prior close of VIX is in the 75th percentile 2024-02-06 07:30:24 -08:00
e688c3150f Add base backtest filter class 2024-02-06 07:27:45 -08:00
31c60d10e3 Move backtest result dataclass to its own file 2024-02-06 05:33:17 -08:00
f9a02978e4 Add helper methods to construct call and put spread strategies for credit and delta targeting 2024-02-04 05:56:28 -08:00
8670609517 Rename credit / delta targeting utilities 2024-02-04 05:44:47 -08:00
6726cfc2c2 Remove unnecessary print statement 2024-02-02 13:16:46 -08:00
b4a79cf3aa Prevent lookahead bias when determining the best performing entry times by not including the date being requested 2024-02-02 13:15:33 -08:00
477afffefa Add starting date parameter for which to retrieve the best entry times for the purpose of backtesting on historical data 2024-02-02 13:07:15 -08:00
e0d1783715 Add a method to retrieve the best performing entry times over the specified period of time 2024-02-02 10:43:37 -08:00
2335f6798c Capitalize spread field names for the sake of consistency 2024-02-02 07:54:06 -08:00
05288fc235 Removing comments as backtest is now successful over all dates and entry times in 2018 2024-02-01 06:14:00 -08:00
527bca9682 Remove bounding information from delta targeting strategy and instead use a fixed target 2024-02-01 05:56:47 -08:00
ea46e6dd13 Refactoring credit and delta targeting strike selection in order to prevent scenarios where an infinite loop is entered and assigning a default value to the current call and put spread prices 2024-01-31 14:51:28 -08:00
c56e7bf0bf Prevent backtests over periods where the market closes early 2024-01-31 13:46:50 -08:00
f0f6e02a12 Remove unnecessary code 2024-01-30 12:37:22 -08:00
98ce824d19 Remove unnecessary depenency on plotly as plotting logic was moved to another module 2024-01-30 11:19:28 -08:00
ab3f28e1e4 Remove plotting logic and instead depend on local plotting module 2024-01-30 11:17:46 -08:00
f223238bd5 Resolve issue where backtest results were incorrect when stopping out and perform backtests in parallel using multiprocessing 2024-01-30 08:49:18 -08:00
f940607dee Expose available entry times to clients 2024-01-30 08:42:03 -08:00
e4bb364e11 Add TODO for sanitizing the start and end dates 2024-01-19 07:57:39 -08:00
02763460cf Refactor strategy creation to enable clients to more easily perform backtests 2024-01-17 11:37:37 -08:00
93930bfea8 Add spread information to backtest result data frame 2024-01-16 06:32:27 -08:00
1b475175c0 Update backtest result data frame to conform to table schema 2024-01-15 11:32:00 -08:00
936b32f35f Local Python module setup and configuration 2024-01-10 05:18:42 -08:00