Commit Graph

69 Commits

Author SHA1 Message Date
5d75d0d635 Remove time zone information from entry time in order to facilitate database lookups where the timestamp is stored without this information 2024-02-26 08:14:16 -08:00
4c167a6d81 Add class for representing the information necessary to identify an iron condor trade in the trades table 2024-02-25 05:45:52 -08:00
013b6c6e8a Trivial formatting changes 2024-02-24 05:38:44 -08:00
03ef60b303 Rename slippage calculation method 2024-02-24 05:14:31 -08:00
61811a97a9 Add script for computing the average slippage incurred for a given trading day 2024-02-23 14:09:36 -08:00
73d3a6145a Ensure that all options in the chain are returned in the string representation 2024-02-22 13:15:15 -08:00
815fdfd043 Remove limit price logging as limit orders are not currently being used 2024-02-22 12:36:57 -08:00
4c0c72446a Remove excessive tick-by-tick logging 2024-02-22 12:27:36 -08:00
2a79d0aec2 Utilize the new trades table utility to insert records upon iron condor trade entry 2024-02-22 12:23:59 -08:00
c1dfb8f432 Add utility for interacting with the trades table 2024-02-22 12:23:26 -08:00
ffc281fcc2 Round exit slippage calculation as well 2024-02-21 13:02:36 -08:00
b26c4068ac Fix broken entry slippage calculation 2024-02-21 08:51:12 -08:00
f3c99b3aa0 Ensure that entry slippage is always a positive number 2024-02-21 08:50:32 -08:00
09ba7dfed3 Round entry slippage to 3 decimal places when inserting into the trades table 2024-02-21 08:44:58 -08:00
5807aa076c Log exit slippage incurred when stopping out of a trade 2024-02-21 08:35:27 -08:00
0f12e6932c Add entry slippage to call and put spread details before insertion into the trades table 2024-02-20 14:33:31 -08:00
df932568b4 Track the spread mid prices and use them to obtain a more accurate measure of slippage 2024-02-20 08:46:00 -08:00
c723cc3ecc Trivial removal of an unused variable 2024-02-19 14:32:00 -08:00
353df04d64 Trivial formatting change 2024-02-19 14:31:09 -08:00
577aa73ec3 Refactor order submission to utilize new IBKR client 2024-02-19 14:29:49 -08:00
6426fd2f63 Update stop loss order submission based on recent changes to the IBKR client 2024-02-19 12:51:39 -08:00
e91cbb696b Simplify IBKR client creation by removing optional host and port input parameters 2024-02-19 08:53:18 -08:00
cfdfb1421f Retrieve strategy name from trade results table 2024-02-17 05:56:42 -08:00
aedbedc40f Another trivial formatting change 2024-02-14 12:35:38 -08:00
a72d8aa0ab Trivial formatting change 2024-02-14 12:34:34 -08:00
c05bed04b9 Pass the entry time to the iron condor trade processes 2024-02-14 08:29:37 -08:00
786364a8af Filter trading days according to the current volatility regime 2024-02-13 14:30:22 -08:00
9b6405dc30 Add example of options chain usage 2024-02-13 12:19:30 -08:00
97c5bd982f Trivial change to utilize existing expiration variable when retrieving the options chain 2024-02-13 10:51:42 -08:00
9ce9067e5d Provide the entry time to the iron condor entry script in order to be explicit about the expected entry time of each trade 2024-02-13 10:50:50 -08:00
b5168bd92d Select short strikes based on target credit 2024-02-13 08:49:02 -08:00
a0f4b62f65 Implement a string representation of the options chain 2024-02-13 08:36:20 -08:00
7119af4e34 Retrieve entry times from environment variables 2024-02-13 08:13:51 -08:00
afd33102bd Add helper utility for retrieving and interacting with an options chain 2024-02-08 03:22:31 -08:00
632294a89a Convert option type to a enum 2024-02-08 03:22:07 -08:00
02cfa6d7cc Convert datetime back to date when looking up the profit from the backtest table 2024-02-03 06:04:58 -08:00
e64357bcd4 Update trade report following changes made to backtest and trade tables 2024-02-03 06:00:07 -08:00
3aed5afc94 Strip seconds, microseconds, and time zone information from the trade entry time when inserting records into the table in order to facilitate joins against the backtest table where this information is not present 2024-02-03 05:40:06 -08:00
8edef67e2b Remove entry time from strategy name when inserting records into the trades table 2024-02-03 05:18:36 -08:00
d285a33dd0 Utilize the new utility method in options-backtesting for retrieving the best performing entry times 2024-02-02 10:48:05 -08:00
fe99cae735 Add log files to .gitignore so they don't accidentally get committed 2024-02-01 05:03:23 -08:00
768cc6de53 Initial commit of daily trade report script 2024-01-31 09:49:14 -08:00
730ff1079f Sort entry times 2024-01-29 08:44:37 -08:00
7dcdbcfa75 Update requirements 2024-01-29 08:42:12 -08:00
1cc6d303f5 Retrieve options chain from TradeStation as opposed to IBKR 2024-01-29 08:41:17 -08:00
cd473ded8a Prevent scheduling trades for entry time that have already elapsed 2024-01-29 08:39:58 -08:00
5766a49164 Insert records into trades table once orders have been filled 2024-01-25 07:18:53 -08:00
32744f80cc Determine entry times by comparing recent backtests 2024-01-19 13:19:13 -08:00
21bf4c92f5 Monitor the price of each spread and perform stop outs when necessary 2023-12-15 14:48:47 -08:00
1cc0c7867f Verify connection to IBKR before scheduling trade entry jobs 2023-12-13 06:39:58 -08:00