Back

Pre-Coding Logic - Call option entry and exit

I am looking to start with coding the following strategy.

Wait for condition: 10 Period EMA crosses above 30 Period SMA
Place a limit order to buy to open a call option at 1 strike OTM on SPY at the mark price.
Wait for condition: Profit is 50 %
Place a trailing stop limit order to sell to close a call option on SPY at the mark price.

Assistance is greatly appreciated.
Update Backtest








Ted, here's a template for you to work with. However, I know you are aware that QC does not as yet support options, so much of it is blank.
1


Wow!

When will we be able to test option functionality?
0

Thanks for sharing the template Paul! @Ted - We'll notify the forums when options trading is supported, sorry there's no ETA at this time.
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.


Any new info on options trading?

I would like to find a programmer that could help me develop an options strategy to trade through QC on interactive brokers? Is that possible with your platform? What would the potential costs be?
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