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 189,999 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

  #261 (permalink)
Mo111
Detroit MI/USA
 
Posts: 21 since Jan 2014
Thanks Given: 12
Thanks Received: 10


Dudetooth View Post
Mo111,

Thanks for finding this error ... the 4b version was not adding the short option minimum for both legs ... $86 is correct. You won't normally see this unless you are very far out of the money (which these are) and then the short option minimum is greater than the risk scenarios so that it becomes the basis of the initial margin. I've fixed this issue and have re-posted the spreadsheet.

Dudetooth, Thanks for the updated excel sheet - Now im running into a different error. When I try to download the current days files, I get a "sub function not defined":



Does this have to do with the updated virus definitions/scanner?

Reply With Quote

Can you help answer these questions
from other members on NexusFi?
The choice of instruments to trade
Psychology and Money Management
Trade idea based off three indicators.
Traders Hideout
Exit Strategy
NinjaTrader
NT7 Indicator Script Troubleshooting - Camarilla Pivots
NinjaTrader
Better Renko Gaps
The Elite Circle
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Diary of a simple price action trader
31 thanks
My NQ Trading Journal
21 thanks
Just another trading journal: PA, Wyckoff & Trends
17 thanks
Tao te Trade: way of the WLD
13 thanks
HumbleTraders next chapter
9 thanks
  #262 (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


Mo111 View Post
Does this have to do with the updated virus definitions/scanner?

I doubt it. The last version I posted had the fix for the virus scanners (uses a different routine to download files). I just tried to download the PA2 files using that spreadsheet and received no errors. I suspect that your pc had a hiccup. Try a reboot and then try the download again. Let me know if that doesn't fix the issue.

Reply With Quote
  #263 (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



CafeGrande View Post
Would it take a lot of work to add the Kansas City (KE) wheat contract to your application?

CafeGrande,

Not much at all.

Add these lines of code to the Function P34Bstring:

Case "KW", "KE"
strS(0) = "P CBTKW OOF"
strS(1) = "3 KCW 1001"
strS(2) = "4 KCW 01"
strS(3) = "B CBTKW OOF"
strS(4) = "82CBTKW KW FUT"


And add these lines of code to the Function T8string:

Case "KW", "KE"
str5 = "82CBTKW KW OOF"


I'm not sure if the spacing as displayed are correct, so I attached a text file with the code for the two functions.

I gave it a quick test and it seemed to work ... let me know if there are any issues.

Attached Files
Elite Membership required to download: Function Code.txt
Reply With Quote
  #264 (permalink)
cubcub
Boston MA
 
Posts: 5 since Apr 2014
Thanks Given: 1
Thanks Received: 0

Thank you, it worked.


Dudetooth View Post
There is no issues with Win7 64bit, but it could be Win8 security ... found this referring to error 2502 and 2503:

Windows 8 has increased security measures which prevent standard users from installing 3rd party applications. If you see error 2502 or 2503 while installing, that means your account does not have administrator permissions to install software.

Solution 1:

Make sure your Windows account has the highest level of security permissions. Refer to Windows documentation for your operating system on how to do this.

Solution 2:

Run the installation file "As Administrator":

1. Find the installation file on your computer. Normally you have the option to save or run an installation file when downloading from the Internet. If you do not know where the file was downloaded, check the Downloads folder in File Explorer.

2. Right-click the file and select Run As Administrator* from the pop-up menu.


Reply With Quote
  #265 (permalink)
CafeGrande
St Paul, MN, USA
 
Posts: 200 since Jan 2014
Thanks Given: 131
Thanks Received: 207


Dudetooth View Post
CafeGrande,

Add these lines of code to the Function P34Bstring:

....

I'm not sure if the spacing as displayed are correct, so I attached a text file with the code for the two functions.

I gave it a quick test and it seemed to work ... let me know if there are any issues.


It worked! I didn't break anything!

Thanks for adding the .txt file. That helped this novice to know what to look for.

Reply With Quote
  #266 (permalink)
 daydayup8 
tennessee/USA
 
Experience: Intermediate
Platform: Quotetracker, TOS
Broker: OX TOS
Trading: ES
Posts: 83 since Aug 2014
Thanks Given: 267
Thanks Received: 8

I didn't find it in the quick summary link, thanks!
Sorry to bother you, I reviewed a few pages of this thread and did not find the link to buy the program.
it looks like the real challenge for me now is to figure out how to use the SPAN:-(

Edit1, I found the link!
Edit2: This link does not show the price for $10.00, it is risk manager for $3000.00, I still need help.

https://www.cmegroup.com/clearing/risk-management/span-purchase.html



ron99 View Post
We will use this thread to discuss working with the CME PC-SPAN program.


Reply With Quote
  #267 (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

It looks like CME finally redid PC-SPAN and now calls it CME CORE (Clearing Online Risk Engine). It's free.

https://www.cmegroup.com/clearing/cme-core-cme-clearing-online-risk-engine.html

I haven't looked at it in detail. Just watched some of the videos. Someone needs to check it out in detail.

Started this thread Reply With Quote
Thanked by:
  #268 (permalink)
Mo111
Detroit MI/USA
 
Posts: 21 since Jan 2014
Thanks Given: 12
Thanks Received: 10


Dudetooth View Post
I doubt it. The last version I posted had the fix for the virus scanners (uses a different routine to download files). I just tried to download the PA2 files using that spreadsheet and received no errors. I suspect that your pc had a hiccup. Try a reboot and then try the download again. Let me know if that doesn't fix the issue.

Hi Dudetooth - thanks for all your help. So I figured out what the issue was. I was getting the same error as before for "64-bit code" and I did your modification you mentioned here, which got rid of the error but then it deleted the download function for the spa files. Anyways a quick google search brought me here, and all I did was add the word "PtrSafe" before the declare statements and it worked great.

The previous error with margin calculation of the CL contracts is fixed! Thanks

Now I'm facing two other issues with the new sheet. First, I'm getting a different SPAN margin calculation for my 6E contracts from the prior version: (scan date for both is 9/3/2014)

4b version says $455:



prior version says $461:





The second issue is I'm using the tracking page to track trades in three separate accounts - which have the same contracts but different quantities. When I use the track all button, it states the same position IM for ALL of them (its only correct for with the account with the most contracts). Example below where the Position IM is the same for all three - when its only correct for only 21 contracts:





Thank you in advance for your help!

Reply With Quote
  #269 (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


Mo111 View Post
Now I'm facing two other issues with the new sheet.

Mo111,

With your first issue:
$461 per spread is the correct amount. If I remember correctly (and not get too far in the weeds), the reason for the difference in price is that when I made the XLSv3 I did not have it coded properly for the cabinet value. The XLSv4b is grabbing the cabinet value as it is defined in the PA2 file. Since you are using Total Margin the value of the options are added in to the initial margin.

For your second issue:
That is a known issue when running Track All, but I believe I have a work-around for you.
-Replace the TrackAll code in your spreadsheet with the code from the attached text file.
-For any position that you have multiple lines with the same option month and same strike, give it a unique spread number in column F, then when the code is run it will treat it separately and you should see the different results.


Attached Files
Elite Membership required to download: TrackAll.txt
Reply With Quote
  #270 (permalink)
Mo111
Detroit MI/USA
 
Posts: 21 since Jan 2014
Thanks Given: 12
Thanks Received: 10



Dudetooth View Post
Mo111,

With your first issue:
$461 per spread is the correct amount.

The Track all code worked great!! Thank you! This is going to save me lots of time!

As for the margin for that spread did you mean to say $455 is the correct amount? I got $455 with v4b and $461 with v3.

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