Hi all,
I have an account also with CMLViz its a site for running backtests on option strategies. Lately, I wanted to see if I could make any money using bull call credit spread (or bull put credit spread) on moves of QQQ or whatever ticker.
But I can't get the quantconnect data version of the call contract to give the same results. Essentially for 1 year back, do sell 70 delta call and buy an 80 delta call on a given equity (QQQ in this example) and make money.
The CMLViz shows a profit % much higher. And the strikes are a little off despite the delta calculation. Not knowing what I am missing here. Performance should be 350% with 5 contracts.
I have attached only a subset of the above trades...
Date Description Size Symbol Expiration Strike Type Trade Price Profit/Loss Stock Price Adjusted Stock Price
6-Jan-2020 Open TechnicalOpen:Short Calls -10 QQQ Jan1720 212.5 Call $4.31 $215.56 $214.036-Jan-2020 OpenTechnicalOpen:LongCalls 10 ℚQ Jan1720 210.5 Call $5.94 $215.56 $214.03
17-Jan-2020 Close DaysToExpiration:Short Calls 10 QQQ Jan1720 212.5 Call $10.84 -$6530 $223.38 $221.817-Jan-2020 CloseDaysToExπration:LongCalls -10 ℚQ Jan1720 210.5 Call $12.91 $6970 $223.38 $221.8
21-Jan-2020 Open TechnicalOpen:Short Calls -10 QQQ Jan3120 220 Call $4.56 $223.28 $221.721-Jan-2020 OpenTechnicalOpen:LongCalls 10 ℚQ Jan3120 217.5 Call $6.63 $223.28 $221.7
31-Jan-2020 Close DaysToExpiration:Short Calls 10 QQQ Jan3120 220 Call $0.02 $4540 $219.07 $217.5231-Jan-2020 CloseDaysToExπration:LongCalls -10 ℚQ Jan3120 217.5 Call $1.74 -$4890 $219.07 $217.52
3-Feb-2020 Open TechnicalOpen:Short Calls -10 QQQ Feb1420 218 Call $6.2 $222.38 $220.83-Feb-2020 OpenTechnicalOpen:LongCalls 10 ℚQ Feb1420 214.5 Call $9.05 $222.38 $220.8
14-Feb-2020 Close DaysToExpiration:Short Calls 10 QQQ Feb1420 218 Call $16.48 -$10280 $234.64 $232.9814-Feb-2020 CloseDaysToExπration:LongCalls -10 ℚQ Feb1420 214.5 Call $19.99 $10940 $234.64 $232.98
18-Feb-2020 Open TechnicalOpen:Short Calls -10 QQQ Feb2820 231 Call $5.1 $234.73 $233.0718-Feb-2020 OpenTechnicalOpen:LongCalls 10 ℚQ Feb2820 229 Call $6.72 $234.73 $233.07
28-Feb-2020 Close DaysToExpiration:Short Calls 10 QQQ Feb2820 231 Call $5100 $205.8 $204.3428-Feb-2020 CloseDaysToExπration:LongCalls -10 ℚQ Feb2820 229 Call -$6720 $205.8 $204.34
23-Apr-2020 Open TechnicalOpen:Short Calls -10 QQQ May120 204 Call $9.25 $210.52 $209.4723-Apr-2020 OpenTechnicalOpen:LongCalls 10 ℚQ May120 199 Call $13.18 $210.52 $209.47
1-May-2020 Close DaysToExpiration:Short Calls 10 QQQ May120 204 Call $8.3 $950 $212.74 $211.681-May-2020 CloseDaysToExπration:LongCalls -10 ℚQ May120 199 Call $13.32 $140 $212.74 $211.68
4-May-2020 Open TechnicalOpen:Short Calls -10 QQQ May1520 208 Call $9.86 $215.22 $214.154-May-2020 OpenTechnicalOpen:LongCalls 10 ℚQ May1520 204 Call $13.02 $215.22 $214.15
15-May-2020 Close DaysToExpiration:Short Calls 10 QQQ May1520 208 Call $15.13 -$5270 $223.27 $222.1615-May-2020 CloseDaysToExπration:LongCalls -10 ℚQ May1520 204 Call $19.13 $6110 $223.27 $222.16
18-May-2020 Open TechnicalOpen:Short Calls -10 QQQ May2920 222 Call $7.9 $227.43 $226.318-May-2020 OpenTechnicalOpen:LongCalls 10 ℚQ May2920 217 Call $11.96 $227.43 $226.3
29-May-2020 Close DaysToExpiration:Short Calls 10 QQQ May2920 222 Call $11.44 -$3540 $233.36 $232.229-May-2020 CloseDaysToExπration:LongCalls -10 ℚQ May2920 217 Call $16.36 $4400 $233.36 $232.2
1-Jun-2020 Open TechnicalOpen:Short Calls -10 QQQ Jun1220 228 Call $8.4 $234.06 $232.91-Jun-2020 OpenTechnicalOpen:LongCalls 10 ℚQ Jun1220 223 Call $12.53 $234.06 $232.9
12-Jun-2020 Close DaysToExpiration:Short Calls 10 QQQ Jun1220 228 Call $8.33 $70 $235.88 $234.7112-Jun-2020 CloseDaysToExπration:LongCalls -10 ℚQ Jun1220 223 Call $13.27 $740 $235.88 $234.71
15-Jun-2020 Open TechnicalOpen:Short Calls -10 QQQ Jun2620 232 Call $9.16 $238.75 $237.5615-Jun-2020 OpenTechnicalOpen:LongCalls 10 ℚQ Jun2620 227.5 Call $12.66 $238.75 $237.56
26-Jun-2020 Close DaysToExpiration:Short Calls 10 QQQ Jun2620 232 Call $8.09 $1070 $240.22 $239.4426-Jun-2020 CloseDaysToExπration:LongCalls -10 ℚQ Jun2620 227.5 Call $12.68 $20 $240.22 $239.44
29-Jun-2020 Open TechnicalOpen:Short Calls -10 QQQ Jul1020 237 Call $8.33 $242.84 $242.0529-Jun-2020 OpenTechnicalOpen:LongCalls 10 ℚQ J10̲20 232.5 Call $11.79 $242.84 $242.05
10-Jul-2020 Close DaysToExpiration:Short Calls 10 QQQ Jul1020 237 Call $27.2 -$18870 $263.97 $263.1110-J-̲2020 CloseDaysToExπration:LongCalls -10 ℚQ J10̲20 232.5 Call $31.68 $19890 $263.97 $263.11
13-Jul-2020 Open TechnicalOpen:Short Calls -10 QQQ Jul2420 250 Call $12.14 $258.54 $257.713-J-̲2020 OpenTechnicalOpen:LongCalls 10 ℚQ J24̲20 243 Call $17.72 $258.54 $257.7
24-Jul-2020 Close DaysToExpiration:Short Calls 10 QQQ Jul2420 250 Call $5.44 $6700 $255.56 $254.7324-J-̲2020 CloseDaysToExπration:LongCalls -10 ℚQ J24̲20 243 Call $12.36 -$5360 $255.56 $254.73
27-Jul-2020 Open TechnicalOpen:Short Calls -10 QQQ Aug720 253 Call $9.98 $260.12 $259.2727-J-̲2020 OpenTechnicalOpen:LongCalls 10 ℚQ Aug720 248 Call $13.91 $260.12 $259.27
7-Aug-2020 Close DaysToExpiration:Short Calls 10 QQQ Aug720 253 Call $18.42 -$8440 $271.47 $270.597-Aug-2020 CloseDaysToExπration:LongCalls -10 ℚQ Aug720 248 Call $23.42 $9510 $271.47 $270.59
And now here is the QuantCOnnect version I coded from scratch... does terrible and results not same... as I said... something is off:
.ekz. INVESTOR
I can help troubleshoot. What is the specific behaviour / strategy you Backtested in CML?
You mentioned: "For 1 year back, do sell 70 delta call and buy an 80 delta call on a given equity (QQQ in this example) and make money"
But more details would help. Can you share a link to the CML backtest itself? I backtest on optionstack and ORATs, but I am going to be signing up for CML as well.
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.
.ekz. INVESTOR
Also, I think you meant Bullish Call debit spread. A call credit spread would be bearish.
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.
Goldie Yalamanchi
Yes sorry I meant a bullish debit spread (call).
Sure here is the link...
https://pro.trademachine.com//index.php?share_key=20210105234627_c0sMcX0x3dcs0YJhThe 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.
Goldie Yalamanchi
Yes I think there maybe issue with the strikes on CMLViz. Anyways I was just doing a one month membership with them... but if their data is no good whats the point. I am inclined to think that based on optionstack gave you the same results as QC.
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.
To unlock posting to the community forums please complete at least 30% of Boot Camp.
You can continue your Boot Camp training progress from the terminal. We hope to see you in the community soon!