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 188,781 views
    2. thumb_up 317 thanks given
    3. group 75 followers
    1. forum 610 posts
    2. attach_file 159 attachments




 
 

PC-SPAN

 
vp62
Moscow Russia
 
Posts: 7 since Oct 2012
Thanks Given: 113
Thanks Received: 0

Thank you, Dudetooth and Ron!
I manually downloaded cme.s.pa2 from CME site and renamed the nyb.20131210.s.pa2 to nyb.s.pa2. Now it seems to work OK!
I can edit VBA only following step by step instructions.


Can you help answer these questions
from other members on NexusFi?
The space time continuum and the dynamics of a financial …
Emini and Emicro Index
Build trailing stop for micro index(s)
Psychology and Money Management
NexusFi Journal Challenge - April 2024
Feedback and Announcements
Futures True Range Report
The Elite Circle
ZombieSqueeze
Platforms and Indicators
 
 
 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

After reading what vp62 did, I checked the CME website and realized that there is a file named cme.s.pa2.zip that is the current file without the date in it. There is also an unzipped version too. cme.s.pa2

I did not know that.

Started this thread
 
 Dudetooth 
Steubenville Ohio
 
Experience: Intermediate
Platform: OX, OEC, RJO
Trading: Options on Futures
Posts: 266 since Sep 2012
Thanks Given: 30
Thanks Received: 274


Does anyone happen to know what CME uses net delta for? This goes back to Kevin's observation that the delta seems too high for currencies when calculated by PC-SPAN. The delta in the risk arrays is referred to composite delta by CME. Depending on the market, the composite delta is multiplied by a scaling factor to create the net delta. I'm wondering if this net delta can be ignored when we are looking at finding the delta of a single position or simple spread.

 
 Dudetooth 
Steubenville Ohio
 
Experience: Intermediate
Platform: OX, OEC, RJO
Trading: Options on Futures
Posts: 266 since Sep 2012
Thanks Given: 30
Thanks Received: 274

Here's the latest spreadsheet with a few updates (just in time for the Holidays):
  • Added Aus Dollar, Brit Pound, Can Dollar, Soybean Meal, Soybeal Oil, Copper, T-Bills, T-Notes, Eurodollars (see Setup tab in spreadsheet for all commodities supported).
  • Modified the selection process so that you can now calculate for multiple options. Click + drag or ctrl + click to select your option(s). Run multiple calculations without running the entire portfolio or running each one at a time. The process will seem a little backwards at first: now you select the option(s) first and then click the button. 'Add to Portfolio' and Delete Selection' use the same selection method allowing you to use that feature on multiple options. Selection for the Spread Risk is done the old way (click button first and then select option).
  • No longer displaying the SPAN IM, SPAN MM and Total MM, just showing Total IM.
  • Now displaying the 'composite delta' for the individual option. As noted earlier in conversations, EC, JY, S, W, and C have their delta multiplied by a certain factor when run through PC-SPAN. From what I have been able to gather this is called 'net delta' by CME and is used when calculating for the offsetting of positions within a portfolio. 'Net delta' shouldn't really be a factor when analyzing individual options.
  • Added ROI to the calculated fields with the ability to adjust the multiple of IM you want held for that position.
  • Tried to streamline code to run a little faster by stopping Excel from making unnecessary calculations while running the code and grabbing more from the risk arrays rather than making calculations (a lot of what we need is right in the arrays).
  • Tried to trap most of the errors so that they cause the code to simply exit, except when running Portfolio Risk (errors will skip current line and continue). So if you calculate for an option and no data is populated it is likely that the option was not found (wrong month or strike).
  • Added some basic portfolio tools to track trades and delete old calculations.
  • Old pa2 files and their zips are deleted by default so you don't get a build-up in your folder.

I'm just supplying the 97/2003 version .xls to make things simpler.

I've run a couple of tests using options for each commodity that can be calculated in the spreadsheet at this time and I am pretty sure I have most of the bugs worked out. I've noticed that Total IM may be off from what is reported in PC-SPAN, but with the discrepancies I saw it was less than $1. As usual, please let me know if you find any issues and I will try to get them fixed.

Merry Christmas!

Margin Without PC-SPANv3.xls

 
 ItalianBmT 
Java/IN
 
Experience: Beginner
Platform: TOS
Trading: gold
Posts: 13 since Nov 2013
Thanks Given: 2
Thanks Received: 0

Dudetooth,

How is the spreadsheet you developed different from the pc-span software created by the exchange? Is the spreadsheet able to calculate able to compute span margins without the pc-span software installed? Thanks.

 
 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

You don't need PC-SPAN to use Dudetooth's spreadsheet. And it works far easier than PC-SPAN.

Started this thread
 
 mu2pilot 
Dallas, TX
 
Experience: Advanced
Platform: T4, Zaner360, TOS
Broker: DeCarley Trading
Trading: Options
Posts: 104 since Sep 2013
Thanks Given: 134
Thanks Received: 52


ItalianBmT View Post
Dudetooth,

How is the spreadsheet you developed different from the pc-span software created by the exchange? Is the spreadsheet able to calculate able to compute span margins without the pc-span software installed? Thanks.

Like Ron said, you don't need the PC-SPAN software installed, BUT you DO need the PC-Span risk files. You'll notice in the spreadsheet a data field in the upper left corner of the spreadsheet next to the "Download Risk Arrays" button. You enter the most recent trading date (at least after 6pm Chicago time) and click on "Download Risk Arrays" button. This downloads the PC-Span risk files. Once you have that you should be able to use the spreadsheet to figure SPAN margins.

 
 Dudetooth 
Steubenville Ohio
 
Experience: Intermediate
Platform: OX, OEC, RJO
Trading: Options on Futures
Posts: 266 since Sep 2012
Thanks Given: 30
Thanks Received: 274


ItalianBmT View Post
Dudetooth,

How is the spreadsheet you developed different from the pc-span software created by the exchange? Is the spreadsheet able to calculate able to compute span margins without the pc-span software installed? Thanks.

The spreadsheet also differs from PC-SPAN in that it is limited in what it can calculate. It cannot compute margin for complex spreads and for entire portfolios. The setup tab in the spreadsheet takes you step by step through what the spreadsheet can do.

 
 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

I made a copy of Margin without PC SPAN for just ES weeklies and changed CalcRisk to look for 3 digits in con1 and added the product codes for EW and each weekly contract like EW1. I added a space after the 2 digit symbols and that worked OK for them. So ES and CL are working.

But it is not working for EW or EW1. It just comes back with the ES option not the EW or EW1 option.

ElseIf con1 = "ES " Then
str1 = "CMEES ES OOF" & cp1
str1 = str1 & "201" & yr1 & umo1 & " 201" & yr2 & omo1
strSearch = str1 & " " & Application.WorksheetFunction.Text(stk1, "0000000")
strSearch2 = "3 SP"
strSearch3 = "4 SP"
strSearch4 = "B CMEES OOF201" & yr1 & umo1 & " 201" & yr2 & omo1
imm2 = 1
v1 = 0.5
ElseIf con1 = "EW " Then
str1 = "CMEEW ES OOF" & cp1
str1 = str1 & "201" & yr1 & umo1 & " 201" & yr2 & omo1
strSearch = str1 & " " & Application.WorksheetFunction.Text(stk1, "0000000")
strSearch2 = "3 SP"
strSearch3 = "4 SP"
strSearch4 = "B CMEEW OOF201" & yr1 & umo1 & " 201" & yr2 & omo1
imm2 = 1
v1 = 0.5
ElseIf con1 = "EW1" Then
str1 = "CMEEW1 ES OOF" & cp1
str1 = str1 & "201" & yr1 & umo1 & " 201" & yr2 & omo1
strSearch = str1 & " " & Application.WorksheetFunction.Text(stk1, "0000000")
strSearch2 = "3 SP"
strSearch3 = "4 SP"
strSearch4 = "B CMEEW1 OOF201" & yr1 & umo1 & " 201" & yr2 & omo1
imm2 = 1
v1 = 0.5

Note the code above does not show the correct number of spaces in lines. If you click on quote that shows the correct number of spaces in lines in this code.

Is it a mistake with this part of the code or somewhere else? If I use the PC SPAN program the EW & EW1 work OK with the same disk array.

Started this thread
 
 Dudetooth 
Steubenville Ohio
 
Experience: Intermediate
Platform: OX, OEC, RJO
Trading: Options on Futures
Posts: 266 since Sep 2012
Thanks Given: 30
Thanks Received: 274



ron99 View Post
I made a copy of Margin without PC SPAN for just ES weeklies ...

Can you give a few examples of options you were looking to calculate (month/strike)?


 



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