NexusFi: Find Your Edge


Home Menu

 





PC-SPAN


Discussion in Options

Updated
      Top Posters
    1. looks_one Dudetooth with 218 posts (213 thanks)
    2. looks_two ron99 with 116 posts (55 thanks)
    3. looks_3 CafeGrande with 30 posts (4 thanks)
    4. looks_4 BlueRoo with 24 posts (5 thanks)
      Best Posters
    1. looks_one Dudetooth with 1 thanks per post
    2. looks_two SMCJB with 1 thanks per post
    3. looks_3 ron99 with 0.5 thanks per post
    4. looks_4 BlueRoo with 0.2 thanks per post
    1. trending_up 190,268 views
    2. thumb_up 317 thanks given
    3. group 75 followers
    1. forum 610 posts
    2. attach_file 159 attachments




 
Search this Thread

PC-SPAN

  #91 (permalink)
 kevinkdog   is a Vendor
 
Posts: 3,662 since Jul 2012
Thanks Given: 1,892
Thanks Received: 7,351

@Dudetooth -

Is there a way to enhance the error tracking for cases where the option is listed but has no open interest? Here is an example - the 3rd one in the list has no open interest (the first 2 have some open interest):

HOF4 HOF4 P 2.49 -1
HOF4 HOF4 P 2.5 -1
HOF4 HOF4 P 2.51 -1



The problem is once the macro stops, if you try running "portfolio" again, no results are given. You actually have to exit the spreadsheet, and start over. I'm guessing the first time through it is writing something "bad" to the temp sheet, and then when you re-run, no results are obtained.

Thanks!

Follow me on Twitter Reply With Quote

Can you help answer these questions
from other members on NexusFi?
Increase in trading performance by 75%
The Elite Circle
Trade idea based off three indicators.
Traders Hideout
Better Renko Gaps
The Elite Circle
How to apply profiles
Traders Hideout
REcommedations for programming help
Sierra Chart
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Just another trading journal: PA, Wyckoff & Trends
34 thanks
Tao te Trade: way of the WLD
24 thanks
My NQ Trading Journal
14 thanks
HumbleTraders next chapter
11 thanks
GFIs1 1 DAX trade per day journal
11 thanks
  #92 (permalink)
 ron99 
Cleveland, OH
 
Experience: Advanced
Platform: QST
Broker: QST, DeCarley Trading, Gain
Trading: Options on Futures
Posts: 3,081 since Jul 2011
Thanks Given: 980
Thanks Received: 5,785


kevinkdog View Post
@Dudetooth -

Is there a way to enhance the error tracking for cases where the option is listed but has no open interest? Here is an example - the 3rd one in the list has no open interest (the first 2 have some open interest):

HOF4 HOF4 P 2.49 -1
HOF4 HOF4 P 2.5 -1
HOF4 HOF4 P 2.51 -1



The problem is once the macro stops, if you try running "portfolio" again, no results are given. You actually have to exit the spreadsheet, and start over. I'm guessing the first time through it is writing something "bad" to the temp sheet, and then when you re-run, no results are obtained.

Thanks!

I was having same problem. Dudetooth sent me this correction that works OK.

To fix the issue you are having with the portfolio sub:
1) Go into the 'PortfolioRisk' sub and delete/hide the 'On Error GoTo GetOut' and the 'GetOut:' lines.
2) Go into the 'CalcRisk' sub and add 'Worksheets(tab1).Select' right under the 'GetOut:' line.

Started this thread Reply With Quote
Thanked by:
  #93 (permalink)
 Dudetooth 
Steubenville Ohio
 
Experience: Intermediate
Platform: OX, OEC, RJO
Trading: Options on Futures
Posts: 266 since Sep 2012
Thanks Given: 30
Thanks Received: 274



kevinkdog View Post
I have been playing around with currencies in the SPAN spreadsheet. Here is what I have found:

1. In the spreadsheet, the delta calculations for Euro (6E) and Yen (6J) are double what they actually are. This can be corrected easily in the code (by changing code to d1=1). @Dudetooth - can you verify this?

2. For settlement dates, the Options Express Trade Calculator gives the options expiration date as 3 days before the SPAN settlement date. This is true for all currencies I looked at (BP, EC, CD, AD, JY). So, if you are used to calculating ROI based on OEX date, the SPAN spreadsheet ROI will be lower.

For ROI calculations, I believe you want to use options expiration date, not settlement date. Can someone confirm my thinking?


3. I have added the following currencies: BP, AD, CD. Code is below:

Kevin,

Thanks for the code for the other currencies ... they'll make it to the next build.

I'm not seeing the issue with delta that you were seeing. I haven't added the news currencies to the code yet, so I just calculated a couple EC and JY options with the current code to see what the differences were (I did not change the d1 variable either).

SPAN's results:


Spreadsheet's results:


Sorry, I'm not seeing the discrepancies.

With the settlement dates I was looking at the Feb and Mar options for EC and JY.

From OX Options Quotes:
Euro FX February 2014 Options (66 days to expiration) Expiration Date: 2/7/2014
Euro FX March 2014 Options (94 days to expiration) Expiration Date: 3/7/2014

From CME's Product Calendar:


The Spreadsheet is reflecting the settlement date from the risk arrays. I looked at product calendars for CL, NG, GC, EC, JY, LC, LH on CME and KC and SB on ICE, and the only options I saw that had a last trade date that was different than the settlement was LH, so as far as I know only LH ROI would be affected (there may be others I didn't check yet).

Reply With Quote
  #94 (permalink)
 Dudetooth 
Steubenville Ohio
 
Experience: Intermediate
Platform: OX, OEC, RJO
Trading: Options on Futures
Posts: 266 since Sep 2012
Thanks Given: 30
Thanks Received: 274


kevinkdog View Post
@Dudetooth -

Is there a way to enhance the error tracking for cases where the option is listed but has no open interest? Here is an example - the 3rd one in the list has no open interest (the first 2 have some open interest):

HOF4 HOF4 P 2.49 -1
HOF4 HOF4 P 2.5 -1
HOF4 HOF4 P 2.51 -1



The problem is once the macro stops, if you try running "portfolio" again, no results are given. You actually have to exit the spreadsheet, and start over. I'm guessing the first time through it is writing something "bad" to the temp sheet, and then when you re-run, no results are obtained.

Thanks!

I think you would need a different risk array.
S=*Settlement*cycle*–Settle*prices*for*all*products*with*OI*
C= Complete*cycle*–All*settle*price*for*all*products

So you'd want to download the cme.20131203.c.pa2.zip file ... code would need to change from s.pa2 to c.pa2, but that would be fairly easy. That file is about 3x the size of the s.pa2 (~150mb worth of text unzipped) ... not sure how much that will slow things down.

Reply With Quote
  #95 (permalink)
 kevinkdog   is a Vendor
 
Posts: 3,662 since Jul 2012
Thanks Given: 1,892
Thanks Received: 7,351

@Dudetooth -

Try this one, based on 12/2/2013 settlement data:




this shows delta>100, which can't be.

Follow me on Twitter Reply With Quote
  #96 (permalink)
 Dudetooth 
Steubenville Ohio
 
Experience: Intermediate
Platform: OX, OEC, RJO
Trading: Options on Futures
Posts: 266 since Sep 2012
Thanks Given: 30
Thanks Received: 274


kevinkdog View Post
@Dudetooth -

Try this one, based on 12/2/2013 settlement data:




this shows delta>100, which can't be.

I know that in-the-money options should be no greater than 100, but PC-SPAN says the same thing as the spreadsheet:


Just saying that I don't think it is the spreadsheet miscalculating ... at least not in this case.

Reply With Quote
  #97 (permalink)
 kevinkdog   is a Vendor
 
Posts: 3,662 since Jul 2012
Thanks Given: 1,892
Thanks Received: 7,351


Dudetooth View Post
I know that in-the-money options should be no greater than 100, but PC-SPAN says the same thing as the spreadsheet:


Just saying that I don't think it is the spreadsheet miscalculating ... at least not in this case.



Very interesting! I would say that PC SPAN is wrong then, since delta can never be greater than 1.

Follow me on Twitter Reply With Quote
  #98 (permalink)
 kevinkdog   is a Vendor
 
Posts: 3,662 since Jul 2012
Thanks Given: 1,892
Thanks Received: 7,351


Dudetooth View Post
Kevin,

Thanks for the code for the other currencies ... they'll make it to the next build.

I'm not seeing the issue with delta that you were seeing. I haven't added the news currencies to the code yet, so I just calculated a couple EC and JY options with the current code to see what the differences were (I did not change the d1 variable either).

SPAN's results:


Spreadsheet's results:


Sorry, I'm not seeing the discrepancies.

With the settlement dates I was looking at the Feb and Mar options for EC and JY.

From OX Options Quotes:
Euro FX February 2014 Options (66 days to expiration) Expiration Date: 2/7/2014
Euro FX March 2014 Options (94 days to expiration) Expiration Date: 3/7/2014

From CME's Product Calendar:


The Spreadsheet is reflecting the settlement date from the risk arrays. I looked at product calendars for CL, NG, GC, EC, JY, LC, LH on CME and KC and SB on ICE, and the only options I saw that had a last trade date that was different than the settlement was LH, so as far as I know only LH ROI would be affected (there may be others I didn't check yet).


Yes, you are correct. I had the incorrect date in Cell A1 - that date did not match the risk array date. My bad!

Follow me on Twitter Reply With Quote
  #99 (permalink)
 Dudetooth 
Steubenville Ohio
 
Experience: Intermediate
Platform: OX, OEC, RJO
Trading: Options on Futures
Posts: 266 since Sep 2012
Thanks Given: 30
Thanks Received: 274


kevinkdog View Post
I'm not sure what is going on then. Here is an example. The DTE in the spreadsheet shows 3 days difference. As of yesterday, the spreadsheet shows DTE=70, when it was actually 67 days to expiration.

The spreadsheet calculated by subtracting the date entered in A1 (the date of the risk file to download) from the settlement date in the risk file. So if you had Friday's date in A1 and did your calculation on Monday the spreadsheet would show 70 days where OX would be adjusting to Monday's date and giving you 67 days.

Perhaps that is what is going on.

Reply With Quote
Thanked by:
  #100 (permalink)
 Dudetooth 
Steubenville Ohio
 
Experience: Intermediate
Platform: OX, OEC, RJO
Trading: Options on Futures
Posts: 266 since Sep 2012
Thanks Given: 30
Thanks Received: 274




I read through some of their material when I was researching the script language, but I somehow missed this part. With everything spelled out like this, I think you could eventually get Excel to do everything that PC-SPAN does.

Reply With Quote




Last Updated on September 23, 2021


© 2024 NexusFi™, s.a., All Rights Reserved.
Av Ricardo J. Alfaro, Century Tower, Panama City, Panama, Ph: +507 833-9432 (Panama and Intl), +1 888-312-3001 (USA and Canada)
All information is for educational use only and is not investment advice. There is a substantial risk of loss in trading commodity futures, stocks, options and foreign exchange products. Past performance is not indicative of future results.
About Us - Contact Us - Site Rules, Acceptable Use, and Terms and Conditions - Privacy Policy - Downloads - Top
no new posts