Back

Credit spread strategy

Hello all,

I am new to the automated trading world and writing code. My goal is to develop an algorithm that trades options credit spreads. I have been manually trading this strategy for about a year, The problem is I still have a full time job and the strategy needs close attention.

I would like the ability to have the algo enter trades. It would also need the ability to turn this feature off and be attached to a manually entered trade. The present strategy is to enter trades after the open and close all trades before market close. I have been trading SPY and the overnight gaps are dangerous.
The criteria would be:
1. Determine the direction of the underlying. Bullish would enter a put credit. Bearish would enter a call credit spread.
2. Enter trades after an adjustable time. The first hour is too volatile.
3. A short position delta of A. This determines probability of profit.
4. A spread of B points
5. The credit is => the number of days till expiration (15%roi for 15dte)
6. I also look at open interest and find the highest. That is where the smart money is and a great indicator of what is going to happen.

Once the credit spread is filled, the algo will monitor the long and short positions. The short position will immediately have a trailing stop order of Ycents placed on it. I have been using .20 cents for the first hour and then adjust to .1-.12 cents for the rest of the day. If price goes in my favor the short will lose value and eventually be stopped out for a profit. If price does not go in my favor the short will get stopped out thus minimizing loss. When this occurs, a tight trailing stop is placed on the long position. If price continues in the right direction the long will get stopped out. If price reverses the long will gain value and either increase profit for the spread or reduce the loss.

Finding the right trailing stop values has been a challenge. Getting stopped out and maximizing profit is a fine line. Other ideas for exiting the trades are encouraged!

If the trade goes my way and does not get stopped out. the algo will close the trade at a determined percentage of max profit.

I currently use Interactive Brokers to trade so the algo should be compatible with IB. I am open to suggestions on where to use it.
Update Backtest








Hi Terry, you looking for someone to code the strategy?
0

I am looking for some help. I am new to writing code and have countless hours looking at different ways to approach it. Does this look like a viable project?
0

Reasonable enough. Happy to collaborate to get you up to a reasonable level of competence if you like, but I've got my own full time job. Still, that gives me an hour in the morning and an hour in the evening while I'm on the train to help you out (UK time), and possibly some other small windows of time on occasion.

Cheers,
Paul
0

Thanks Paul! Any help would be greatly appreciated. What language do you prefer? I am in Phoenix AZ.
0

:-). Been a C# dev for the last 12 years, and although I can code other languages, they just don't come as naturally, tho if you'd prefer python or F#, I shouldn't have too much trouble getting up to speed.

Not sure whether we can chat thru QC while we collaborate on the project, but we'll find a way. I'll drop you a line here when I get on the train this evening.
0

on the train now.
shoot me an email at ps AT x10k.com when you get a chance, and we'll try and get together on a project
0

Did you all find a good way to code this? It seems very interesting! Would enjoy learning more about it if either of you have any desire to share..
0

I'm not opposed to sharing. Paul has started the basics here on QC but they do not support options yet. I have been exploring using the sample java app that comes with the TWS API. I am total newb to writing code but am determined to see this work! Drop me a line todell95747 AT gmail .com
0

hi, i know its been a while since this started. i am curious if this strategy was ever coded. if so please share.

0

Update Backtest





0

The material on this website is provided for informational purposes only and does not constitute an offer to sell, a solicitation to buy, or a recommendation or endorsement for any security or strategy, nor does it constitute an offer to provide investment advisory services by QuantConnect. In addition, the material offers no opinion with respect to the suitability of any security or specific investment. QuantConnect makes no guarantees as to the accuracy or completeness of the views expressed in the website. The views are subject to change, and may have become unreliable for various reasons, including changes in market conditions or economic circumstances. All investments involve risk, including loss of principal. You should consult with an investment professional before making any investment decisions.


Loading...

This discussion is closed