I would like to execute a very simple strategy with an automated program, which will trade for me without me having to be remember to physically do it 4 times a month:
Buy ticker SPY on the 27th of every month (on open) and sell it on the 5th (on close) , then buy it again on the 12th (on open) and sell it on the 18th (on close). If these dates fall on weekends / holidays adjust accordingly (I can manually write out the exact dates for the next 20 years myself). I also want the program to calculate the amount of shares to be bought automatically based on my available capital and the current price of SPY.
I contacted some API developers that IB recommended on their website and the quotes I was getting were in the thousands. This is cost prohibitive for me as I'm only looking to employ $20k into the strategy. It's been frustrating for me, because this seems like such a simple task, but I can't seem to find a cheap way of accomplishing it.
I'd be grateful for any feedback you guys may have.
Buy ticker SPY on the 27th of every month (on open) and sell it on the 5th (on close) , then buy it again on the 12th (on open) and sell it on the 18th (on close). If these dates fall on weekends / holidays adjust accordingly (I can manually write out the exact dates for the next 20 years myself). I also want the program to calculate the amount of shares to be bought automatically based on my available capital and the current price of SPY.
I contacted some API developers that IB recommended on their website and the quotes I was getting were in the thousands. This is cost prohibitive for me as I'm only looking to employ $20k into the strategy. It's been frustrating for me, because this seems like such a simple task, but I can't seem to find a cheap way of accomplishing it.
I'd be grateful for any feedback you guys may have.
