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,716 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

  #71 (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
This is a great tool, @Dudetooth ! Thanks for putting it together.


I was running some Lean Hog calcs, and the price seems to be wrong for some of them. Everything else looks OK. Can you check this? I don;t know if it is an error in the SPAN file, but the OEX margin calculator seems to give the right price.

Thanks



At 87 the price goes to over 1.000 and to 4 digits from less than 1.000 and only 3 digits.

EDIT I noticed that on the Temp worksheet cell A12 has this statement
=IF(U5>1000,5,U5)

That is where the 5 is coming from. I don't know why that is there. Cell U5 does have the correct price.

Started this thread Reply With Quote
Thanked by:

Can you help answer these questions
from other members on NexusFi?
REcommedations for programming help
Sierra Chart
Better Renko Gaps
The Elite Circle
How to apply profiles
Traders Hideout
ZombieSqueeze
Platforms and Indicators
PowerLanguage & EasyLanguage. How to get the platfor …
EasyLanguage Programming
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Spoo-nalysis ES e-mini futures S&P 500
29 thanks
Just another trading journal: PA, Wyckoff & Trends
25 thanks
Tao te Trade: way of the WLD
24 thanks
Bigger Wins or Fewer Losses?
21 thanks
GFIs1 1 DAX trade per day journal
16 thanks
  #72 (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 was running some Lean Hog calcs, and the price seems to be wrong for some of them.

You're welcome ... glad it is a help.

Got the issue:
1- Go to the Temp page, cell A12
2- Replace the formula with this one: =IF(U5>9999990,5,U5)

SPAN is odd that when an option is cabinet: they give it a value of 9999999 instead of 0. This is just how the spreadsheet takes care of that. Before Lean Hogs were added the formula =IF(U5>1000,5,U5) would have handled it, but this will work better. I have only tested this on cabinet positions in ES and EC (should work in other currencies) ... not really sure if there are other markets that have cabinet positions.

Reply With Quote
Thanked by:
  #73 (permalink)
 kevinkdog   is a Vendor
 
Posts: 3,663 since Jul 2012
Thanks Given: 1,892
Thanks Received: 7,357



Dudetooth View Post
You're welcome ... glad it is a help.

Got the issue:
1- Go to the Temp page, cell A12
2- Replace the formula with this one: =IF(U5>9999990,5,U5)

SPAN is odd that when an option is cabinet: they give it a value of 9999999 instead of 0. This is just how the spreadsheet takes care of that. Before Lean Hogs were added the formula =IF(U5>1000,5,U5) would have handled it, but this will work better. I have only tested this on cabinet positions in ES and EC (should work in other currencies) ... not really sure if there are other markets that have cabinet positions.

Thanks! What is a cabinet position? Does that mean a zero price?

Follow me on Twitter Reply With Quote
  #74 (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
Thanks! What is a cabinet position? Does that mean a zero price?

Cabinet is zero at OX but it is half a tick at most other firms. LH, LC, ES have cabinet positions. Probably others.

Started this thread Reply With Quote
Thanked by:
  #75 (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
Thanks! What is a cabinet position? Does that mean a zero price?

From CME's site:
Cabinet Price
Nominal price for liquidating deep-out-of-the-money options contracts. Defined as the lowest possible tradable price for this option, and is determined within the Clearing System. Trades on options done at a price equal to zero are considered cabinet trades.


On statements I get from RJO they will list positions as cabinet when they get to a point where they are practically worthless. Not sure if they can still be traded at that point.


Reply With Quote
Thanked by:
  #76 (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 is possible to trade at cabinet. I have done it.

Started this thread Reply With Quote
Thanked by:
  #77 (permalink)
 enderqa 
Chicago, IL
 
Experience: Beginner
Platform: RTrader
Trading: CL
Posts: 15 since Apr 2013
Thanks Given: 9
Thanks Received: 1

Dudetooth,

Thanks for developing this software. Can you describe for me your algorithm for finding the Margin in the cme settlement's file, (such as: cme.20131129.s.pa2.zip). I don't use Excel, and I want to write my own Python program that can extract the information myself. (I'll post it here after I'm done so others can use it.)

I know that the file itself, when unzipped is a normal text file. However there are a number of fields per line. From reading the thread it seems that you pull the maintenance margin from the file and then calculate the initial margin using the options price information. Is that correct?

Thanks in advance.

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


enderqa View Post
Can you describe for me your algorithm for finding the Margin in the cme settlement's file, (such as: cme.20131129.s.pa2.zip) ... From reading the thread it seems that you pull the maintenance margin from the file and then calculate the initial margin using the options price information. Is that correct?

I'd gather that you are looking for a step-by-step on how this is done within the spreadsheet. That will take me a little bit to jot down in a narrative form to show you where the data is within risk arrays and explain the process. If you give me some time, I'll see what I can come up with.

Even though you don’t use Excel, if you can look through the spreadsheet and its VBA code some of the process may make sense with your ability to program in Python.

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


enderqa View Post
From reading the thread it seems that you pull the maintenance margin from the file and then calculate the initial margin using the options price information. Is that correct?

He takes the IM & MM and adds the option price to get Total IM & Total MM.

Started this thread Reply With Quote
  #80 (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


I just noticed that PC-SPAN uses the settlement date and not the expiration or last trade date.

For example, LHG4 options expiration or last trade date is 2/14/14. Settlement date is 2/19/14.

So the DTE in our spreadsheet uses the 2/19 not the 2/14.

I also just noticed that QST lists 2/14 as the expiration date but OX lists 2/19. Futures last trading day is 2/14.

Started this thread 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