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

  #461 (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


TFOpts View Post
A review of the compatibilty with XLS-SPAN is still ongoing. One thing Ron found was that by changing the name from ccl to cme he was able to scan in the data into XLS-SPAN but was not able to use the tracking functionality of the tool.

Small code fix from what I can tell in order to get Track to work with the older PA2 files.

1) Go to Class Modules COption

2) Find:

Public Property Let OptContract(Value As String)
pOptContract = Value
If pCSVPA2 = "CSV" Then
pType8Opt = pOptContract & pOptType & pStrike '"50,201" & Right(pOptContract, 1) & conv2num(Mid(pOptContract, Len(pOptContract) - 1, 1)) & "00," & pOptType & "," & pStrike
Else
pType8Opt = pType8O & pOptType & "201" & Right(pFutContract, 1) & conv2num(Mid(pFutContract, Len(pFutContract) - 1, 1)) _
& " 201" & Right(pOptContract, 1) & conv2num(Mid(pOptContract, Len(pOptContract) - 1, 1)) & " " & pStrike
End If
End Property


3) And replace with:

Public Property Let OptContract(Value As String)
pOptContract = Value
Dim tempdate As String
If pCSVPA2 = "CSV" Then
pType8Opt = pOptContract & pOptType & pStrike '"50,201" & Right(pOptContract, 1) & conv2num(Mid(pOptContract, Len(pOptContract) - 1, 1)) & "00," & pOptType & "," & pStrike
Else
If Left(pDatePA2, 3) & Right(pFutContract, 1) >= Left(pDatePA2, 4) Then
tempdate = Left(pDatePA2, 3) & Right(pFutContract, 1)
Else
tempdate = Left(pDatePA2, 2) & Mid(pDatePA2, 3, 1) + 1 & Right(pFutContract, 1)
End If
pType8Opt = pType8O & pOptType & tempdate & conv2num(Mid(pFutContract, Len(pFutContract) - 1, 1)) _
& " " & tempdate & conv2num(Mid(pOptContract, Len(pOptContract) - 1, 1)) & " " & pStrike
End If
End Property


I'll continue to troubleshoot any other issues that come from these older PA2 files.

Reply With Quote
Thanked by:

Can you help answer these questions
from other members on NexusFi?
How to apply profiles
Traders Hideout
Pivot Indicator like the old SwingTemp by Big Mike
NinjaTrader
Trade idea based off three indicators.
Traders Hideout
MC PL editor upgrade
MultiCharts
REcommedations for programming help
Sierra Chart
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Spoo-nalysis ES e-mini futures S&P 500
34 thanks
Just another trading journal: PA, Wyckoff & Trends
30 thanks
Tao te Trade: way of the WLD
24 thanks
Bigger Wins or Fewer Losses?
23 thanks
GFIs1 1 DAX trade per day journal
21 thanks
  #462 (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

How will XLS-SPAN know the difference between ESH8 for 2008 and 2018?

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



ron99 View Post
How will XLS-SPAN know the difference between ESH8 for 2008 and 2018?

I looks at the year of the PA2 file. With the 20080501.s.pa2 it takes the digit for the decade (0) and combines it with the single digit for the year of the contract (8). That year (08) should be >= the year of the PA2 file or it adds to the decade. That should work when we get 2009 PA2 files with 2010 contract data.

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

@Dudetooth when I make the change above, Track quits working for me even for 2017 contracts. When I change it back to the way it was before the change, it works again for 2017 contracts but not 2008 contracts.

I copied from the post above and pasted it on top of old part. Do I need to compile VBS project? Or just save changes? Are the indents necessary?

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

@ron99,

You should just have to hit save, in either the VBA editor or in Excel itself.

I did a quick check with 20170524's PA2 and it was working for me.

I'm not sure if something gets messed up when copying and pasting the code to the forum, but I uploaded it just to be safe and so you could compare.

Attached Files
Elite Membership required to download: XLS-SPAN (05b).zip
Reply With Quote
Thanked by:
  #466 (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


Dudetooth View Post
@ron99,

You should just have to hit save, in either the VBA editor or in Excel itself.

I did a quick check with 20170524's PA2 and it was working for me.

I'm not sure if something gets messed up when copying and pasting the code to the forum, but I uploaded it just to be safe and so you could compare.

I downloaded this version and then copied and pasted the macro and everything works OK.

I found the problem. When copy and pasting to forum it lost some spaces between quotes.


Your post with macro changes was missing the spaces.

Started this thread Reply With Quote
Thanked by:
  #467 (permalink)
TFOpts
Los Angeles, CA
 
Posts: 64 since May 2017
Thanks Given: 49
Thanks Received: 136

@Dudetooth,

Do you know if the SPAN files include margin requirements on the underlying futures (instead of just on options)? If yes, would it required extensive modifications to XLS-SPAN to extract this information?

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


TFOpts View Post
@Dudetooth,

Do you know if the SPAN files include margin requirements on the underlying futures (instead of just on options)? If yes, would it required extensive modifications to XLS-SPAN to extract this information?

XLS-SPAN does give margin for futures. Just put a "F" in the C/P column and nothing in strike column.

Started this thread Reply With Quote
Thanked by:
  #469 (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


TFOpts View Post
@Dudetooth,

Do you know if the SPAN files include margin requirements on the underlying futures (instead of just on options)? If yes, would it required extensive modifications to XLS-SPAN to extract this information?

Just to add to ron99's comment, the futures contact have the same 16 risk scenarios that the options do, so futures can be added to a spread with options to calculate margin.

Reply With Quote
Thanked by:
  #470 (permalink)
uuu1965
Riga Latvia
 
Posts: 107 since Jan 2013
Thanks Given: 441
Thanks Received: 72


@Dudetooth
Sorry, I forgot how to get simple futures price, f.e. CLQ7

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