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

  #181 (permalink)
 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

Can someone tell me why numerous options have gaps in the strike prices listed in PC SPAN? For example, SBM4 Call Options. Above 21, there are only 2 options that show a SPAN entry and SPAN margin. The highest entry is 22 and it has a Delta of 5.82% (as of 3/14). I would think with the way Sugar has been moving there would be a lot of more activity on the Call side. Is it because there is no Open Interest?

On the put side, Span entries seem to correspond to only those strike prices that have Open Interest. Does SPAN only provide data for instruments that have Open Interest?

TIA.

Reply With Quote

Can you help answer these questions
from other members on NexusFi?
Trade idea based off three indicators.
Traders Hideout
REcommedations for programming help
Sierra Chart
NT7 Indicator Script Troubleshooting - Camarilla Pivots
NinjaTrader
MC PL editor upgrade
MultiCharts
Pivot Indicator like the old SwingTemp by Big Mike
NinjaTrader
 
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?
23 thanks
GFIs1 1 DAX trade per day journal
18 thanks
  #182 (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


mu2pilot View Post
Can someone tell me why numerous options have gaps in the strike prices listed in PC SPAN? For example, SBM4 Call Options. Above 21, there are only 2 options that show a SPAN entry and SPAN margin. The highest entry is 22 and it has a Delta of 5.82% (as of 3/14). I would think with the way Sugar has been moving there would be a lot of more activity on the Call side. Is it because there is no Open Interest?

On the put side, Span entries seem to correspond to only those strike prices that have Open Interest. Does SPAN only provide data for instruments that have Open Interest?

TIA.

Yes

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



ron99 View Post
Yes

How do you compute an expected ROI in such cases? Don't you sometimes sell options where you make up the entire OI? I sold 40 EW4H4 1420 Puts and I still make up all the OI. I don't remember how I came up with an expected ROI, but I know I wouldn't have entered it without something to go on. In cases where there is no OI in option/strike combinations near where you want to trade, how do you do the math?

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


mu2pilot View Post
How do you compute an expected ROI in such cases? Don't you sometimes sell options where you make up the entire OI? I sold 40 EW4H4 1420 Puts and I still make up all the OI. I don't remember how I came up with an expected ROI, but I know I wouldn't have entered it without something to go on. In cases where there is no OI in option/strike combinations near where you want to trade, how do you do the math?

I believe SPAN is calculated for all ES/EW contracts even without OI.

For example the ESk4p900 has zero OI but it does have a SPAN margin.

There usually are strikes close by to where I am trading. I don't think I have done an option when there wasn't.

Started this thread Reply With Quote
Thanked by:
  #185 (permalink)
BlueRoo
Brisbane, Queensland, Australia
 
Posts: 121 since Aug 2013
Thanks Given: 75
Thanks Received: 97

I don't know why but I could not get "Begin + Days" or "Begin - End" to fill the F Column with dates.

So I changed the procedure as follows:

Sub ChangeDate2() '140206*** New date tool for Historic tab
Dim startDate, endDate As Date
On Error GoTo GetOut
If ActiveSheet.Name = "Historic" Then

DefaultDate = Range("F3")
DefaultDate2 = Range("F3")
startDate = InputBox("Enter Beginning Date DD/MM/YYYY", "Beginning Date", DefaultDate)
endDate = InputBox("Enter Ending Date DD/MM/YYYY", "Ending Date", DefaultDate2)

lastrow = Range("F" & Rows.Count).End(xlUp).Row
Range("F3:F" & lastrow).ClearContents

dayDate = startDate
fRow = 3
Do Until dayDate = DateAdd("d", 1, endDate)

Range("F" & fRow) = Format(dayDate, "YYYY") & Format(dayDate, "MM") & Format(dayDate, "DD")



dayDate = DateAdd("d", 1, dayDate)
fRow = fRow + 1
Loop

End If
GetOut:
End Sub

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


BlueRoo View Post
I don't know why but I could not get "Begin + Days" or "Begin - End" to fill the F Column with dates.

I'm not sure which version you have, and I have been making some minor tweaks on mine since the last release, so I have attached the code I've been using that works in my spreadsheet.

One thing that I noticed is that you have removed any reference to Col A on the Historic tab. Starting at A6 I have the available dates that I have SPAN files for in my C:\Span4\Data folder (skipping weekends, holidays). The code was designed to simply gather those dates from Col A to copy over to Col F.

Hope this helps.


Attached Files
Elite Membership required to download: ChangeDates.txt
Reply With Quote
  #187 (permalink)
BlueRoo
Brisbane, Queensland, Australia
 
Posts: 121 since Aug 2013
Thanks Given: 75
Thanks Received: 97


Dudetooth View Post
I'm not sure which version you have, and I have been making some minor tweaks on mine since the last release, so I have attached the code I've been using that works in my spreadsheet.

One thing that I noticed is that you have removed any reference to Col A on the Historic tab. Starting at A6 I have the available dates that I have SPAN files for in my C:\Span4\Data folder (skipping weekends, holidays). The code was designed to simply gather those dates from Col A to copy over to Col F.

Hope this helps.



Yes it helps. As I download risk files my list of previous downloaded dates update. I have not coded it so that the user is informed whether or not the selected date range is within that of the downloaded history. I have started to code a data archive report that would present the user with a date range (with any missing dates within) for the downloaded risk files. I see now that F3 needs to have a date for the changedate code to work. I am working on the idea that:

1. The user needs to know the date range of the risk files downloaded to their nominated directory.
2. That a current list of downloaded dates for say the last 30 days is updated as each download occurrs.
3. That selection of any date range utilises the previous knowledge to inform the user if the selected date range is not represented by the risk files downloaded.

Where am I going with this...

1. I am using the XLS SPAN file within a "Shell" file I have been using to do option analysis.
2. I am interested in time series analysis and charting option prices, volatility and delta for 90 DTE to Expiry.

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


BlueRoo View Post
1. The user needs to know the date range of the risk files downloaded to their nominated directory.
2. That a current list of downloaded dates for say the last 30 days is updated as each download occurrs.
3. That selection of any date range utilises the previous knowledge to inform the user if the selected date range is not represented by the risk files downloaded.

-Once the dates are in Col A things have been working fine for me. The date in cell C5 is the last date in Col A, giving me the range of dates available. The issue would seem to be getting the initial listing of SPAN files in your C:\Span4\Data folder.

-One possible solution would be to have a macro that could query your C:\Span4\Data folder to grab the name of each SPAN file to populate the dates in Col A. Each time you download a SPAN file the code can add that date to the end of the list.

-The code is currently set so that if there isn't an exact match for the date you entered it will grab the next closest date. That way you don't have to look at a calendar to ensure you aren't trying a weekend.

Reply With Quote
  #189 (permalink)
BlueRoo
Brisbane, Queensland, Australia
 
Posts: 121 since Aug 2013
Thanks Given: 75
Thanks Received: 97

I have this code in my shell file. When I choose to set a date range for generate historic data, the getRiskFileDates returns the date range for saved risk files.




Function getRiskFileDates()
Set p = Workbooks("OptionAnalysis.xls").Sheets("Parameters")

With Application.FileSearch
.LookIn = "M:\Trading\Data\CME SPAN\RiskArrays\"
.SearchSubFolders = False
.Filename = "cme*.pa2"
If .Execute(SortBy:=msoSortByFileName, _
SortOrder:=msoSortOrderAscending) > 0 Then
numberOfFiles = .FoundFiles.Count
For i = 1 To .FoundFiles.Count
'MsgBox .FoundFiles.Count
Filename = .FoundFiles(i)
Length = Len(.FoundFiles(i))
dateInFileName = Mid(.FoundFiles(i), 41, 8) '.Filename

If i = 1 Then
startDate = convertDateCodeToDateProper(dateInFileName)
ElseIf i = numberOfFiles Then
endDate = convertDateCodeToDateProper(dateInFileName)
getRiskFileDates = startDate & " - " & endDate
End If

Next i
Else
MsgBox "There were no files found."
End If
End With
Continue:

End Function

Reply With Quote
  #190 (permalink)
BlueRoo
Brisbane, Queensland, Australia
 
Posts: 121 since Aug 2013
Thanks Given: 75
Thanks Received: 97


Selecting track spread allows the user to select the two legs of a spread through input boxes and then calculates the combined result. If there are several spreads in tracker it seems that this manual selection needs to be done for each one for the results of each spread to be updated. Here is some simple code that could automate this process by a single click.

The issue is that the calMargin code in XLS SPAN consistently seems to change the spread number of the last spread in Col F.

May I suggest that some type of automation as follows is added to the file and the issue of the renumbering of the last spread is addressed.

Private Sub cbTrackAllSpreads_Click()
Set t = Workbooks("OptionAnalysis.xls").Sheets("Tracker")
tRow = 3
Do Until t.Range("A" & tRow) = ""
If t.Range("F" & tRow) <> "" Then
If t.Range("F" & tRow) = t.Range("F" & tRow + 1) Then
putrow = tRow
callrow = tRow + 1
Range("A" & putrow & ",A" & callrow).Select
Call CalcMargin(3, 0)
tRow = tRow + 1
End If
End If
tRow = tRow + 1
Loop
End Sub

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