Commit Graph

60 Commits

Author SHA1 Message Date
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
0fe6181e7c Add iron condor trade scheduler script 2023-12-07 08:12:50 -08:00
b13e5d1525 Add logging to iron condor entry script 2023-12-07 08:04:57 -08:00
bb8ad7c23e Rename iron condor scripts 2023-12-01 12:47:46 -08:00
80a782aefc Remove usage of double quotes 2023-11-30 09:31:48 -08:00
9a316b85dc Add example script for entering an iron condor on IBKR 2023-11-28 13:27:42 -08:00
2a30a791bf Add pycache directory to gitignore 2023-11-28 13:24:43 -08:00
599b219870 Re-order dependencies 2023-11-28 13:23:13 -08:00
ec4067deb6 Submit stop limit order following successful fill 2023-09-22 08:06:26 -07:00
034769ffc0 Determine the fill price of each spread 2023-09-20 11:48:26 -07:00