PC-SPAN - Options on Futures | futures.io
futures io futures trading


PC-SPAN
Started: by ron99 Views / Replies:45,550 / 421
Last Reply: Attachments:103

Welcome to futures io.

Welcome, Guest!

This forum was established to help traders (especially futures traders) by openly sharing indicators, strategies, methods, trading journals and discussing the psychology of trading.

We are fundamentally different than most other trading forums:
  • We work extremely hard to keep things positive on our forums.
  • We do not tolerate rude behavior, trolling, or vendor advertising in posts.
  • We firmly believe in openness and encourage sharing. The holy grail is within you, it is not something tangible you can download.
  • We expect our members to participate and become a part of the community. Help yourself by helping others.


You'll need to register in order to view the content of the threads and start contributing to our community. It's free and simple, and we will never resell your private information.

-- Big Mike

Reply
 103  
 
Thread Tools Search this Thread
 

PC-SPAN

  #271 (permalink)
Elite Member
Steubenville Ohio
 
Futures Experience: Intermediate
Platform: OX, OEC, RJO
Favorite Futures: Options on Futures
 
Posts: 187 since Sep 2012
Thanks: 25 given, 212 received


Mo111 View Post
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.

I apologize. I almost have to re-learn my old code when I go back through it and I got that one messed up.

The issue was in the option value function. It was fine with v3 and v4b was off, but it wasn't just as simple as cut and paste from one to the other (the structure changed), so replace the function optionvalue with the code in the attached text file.

I gave it a quick check and it seemed to work, but let me know if you find any other issues.

Attached Files
Register to download File Type: txt optionvalue.txt (977 Bytes, 18 views)
Reply With Quote
 
  #272 (permalink)
Elite Member
Cleveland Ohio/United States
 
Futures Experience: Advanced
Platform: Tradestation
Broker/Data: various
Favorite Futures: futures
 
Posts: 2,236 since Jul 2012
Thanks: 1,046 given, 4,078 received

10/3 Data

Is anyone else having a problem with 10/3 data from CME in @Dudetooth 's spreadsheet? I can get ICE data to work, but not 10/3 CME data.

If you have any questions please send me a Private Message or use the futures.io "Ask Me Anything" thread
Reply With Quote
 
  #273 (permalink)
Market Wizard
Cleveland, OH
 
Futures Experience: Advanced
Platform: QST
Broker/Data: QST, DeCarley Trading, Gain
Favorite Futures: Options on Futures
 
Posts: 2,452 since Jul 2011
Thanks: 672 given, 4,161 received
Forum Reputation: Legendary



kevinkdog View Post
Is anyone else having a problem with 10/3 data from CME in @Dudetooth 's spreadsheet? I can get ICE data to work, but not 10/3 CME data.

The CME file I downloaded for 10/3 works OK in PC-SPAN but I am getting incorrect IMs in Dudetooth's spreadsheet.

Reply With Quote
The following user says Thank You to ron99 for this post:
 
  #274 (permalink)
Trading for Fun
St Paul, MN, USA
 
Futures Experience: Advanced
Platform: Abacus
Broker/Data: RJO, Interactive Brokers
Favorite Futures: Commodity Futures & Options
 
Posts: 193 since Jan 2014
Thanks: 112 given, 182 received


kevinkdog View Post
Is anyone else having a problem with 10/3 data from CME in @Dudetooth 's spreadsheet? I can get ICE data to work, but not 10/3 CME data.

Same thing. The two files download OK and if I "track select" or "scan select" ICE contracts the application works fine. If I include CME contracts the "calculating - please wait" window displays for a long time and eventually Excel will freeze ("not responding") and must be force closed. The Excel detail window called it "AppHangB1"

Reply With Quote
The following user says Thank You to CafeGrande for this post:
 
  #275 (permalink)
Elite Member
Steubenville Ohio
 
Futures Experience: Intermediate
Platform: OX, OEC, RJO
Favorite Futures: Options on Futures
 
Posts: 187 since Sep 2012
Thanks: 25 given, 212 received

Futures Edge on FIO

What value do you place on the webinars on FIO?

 

kevinkdog View Post
Is anyone else having a problem with 10/3 data from CME in @Dudetooth 's spreadsheet? I can get ICE data to work, but not 10/3 CME data.

I don't know if the data is messed up in the zipped file, but it seems to be missing the carriage-return character at the end of the lines (if you open it in notepad, all the data is run together as one continuous line). PC-SPAN must be coded to read the data even without the carriage-return character, but my code looks to read each line.

ftp://ftp.cmegroup.com/pub/span/data/cme/cme.s.pa2

Sorry about this, but downloading the cme.s.pa2 has the same issue. What I originally did was open the link in my browser where it was displayed with the line breaks. I copied that and pasted it into notepad and saved it as my pa2. I assumed that downloaded the cme.s.pa2 would work and just realized now that it had the same issue.


Last edited by Dudetooth; October 4th, 2014 at 03:26 PM. Reason: Additional info
Reply With Quote
The following 2 users say Thank You to Dudetooth for this post:
 
  #276 (permalink)
Trading for Fun
St Paul, MN, USA
 
Futures Experience: Advanced
Platform: Abacus
Broker/Data: RJO, Interactive Brokers
Favorite Futures: Commodity Futures & Options
 
Posts: 193 since Jan 2014
Thanks: 112 given, 182 received

^^ The revised method worked for me.

- let the whole thing download in a browser window
- CTRL A, CTRL C, open a notepad, CTRL V
- save notepad in SPAN4 > DATA folder, make sure it's saved as "all files" and the correct file extension (.pa2) will magically appear (the default save mode might be .txt, which won't work).

Thanks, DudeTooth!

Reply With Quote
The following user says Thank You to CafeGrande for this post:
 
  #277 (permalink)
Elite Member
Steubenville Ohio
 
Futures Experience: Intermediate
Platform: OX, OEC, RJO
Favorite Futures: Options on Futures
 
Posts: 187 since Sep 2012
Thanks: 25 given, 212 received

10/3 CME Data

A little more clarification on the issue with Friday's CME data.

Normally, the pa2 files have a Windows encoding for line breaks ... the characters CrLf:
Please register on futures.io to view futures trading content such as post attachment(s), image(s), and screenshot(s).


Friday's data appears to have had a Unix encoding, using only Lf to designate the line breaks:
Please register on futures.io to view futures trading content such as post attachment(s), image(s), and screenshot(s).


PC-SPAN is apparently fine with just Lf, but VBA needs to see the CrLf. This issue appears to have been a big enough of a deal to prompt CME to replace all of Friday's pa2 files with updated ones that have the CrLf encoding in place. This should indicate that we're not likely to see this happen again, but if it does the following code can fix it for you.

In the Functions module add this routine:

Sub FixLf(FileName As String) 'code to replace vbLf with vbCrLf if CME's pa2 files switch to unix code
Dim buff
On Error Resume Next
Open FileName For Input As #1
buff = Input$(LOF(1), #1)
Close #1

If InStr(buff, vbCrLf) = 0 Then
buff = Replace$(buff, vbLf, vbCrLf)
End If

Open FileName For Output As #1
Write #1, buff
Close #1
On Error GoTo 0
End Sub


In the Sub download_risk_files() add these lines right before the end of the sub where you see the line "GetOut:" so your last 5 lines look like this:

Call FixLf(path & "\cme." & dateit & ".s.pa2")
Call FixLf(path & "\nyb." & dateit & ".s.pa2")
GetOut:
Unload Wait
End Sub


You can load this code now if you want. It will check your downloaded pa2 for CrLf encoding. If it is present it leaves things alone, but if it can't find any CrLf it will assume that Lf is being used and change all Lf encoding to CrLf.

Reply With Quote
The following 5 users say Thank You to Dudetooth for this post:
 
  #278 (permalink)
Elite Member
tennessee/USA
 
Futures Experience: Intermediate
Platform: Quotetracker, TOS
Broker/Data: OX TOS
Favorite Futures: ES
 
Posts: 83 since Aug 2014
Thanks: 267 given, 8 received

SPAN

I am trying to figure out how to use Dudetooth's program to calculate margin without SPAN program installed, when I click the link on the summary page to get Risk array: it is something like this, there is no pa2 anywhere. What I have done:
1: downloaded his latest program: XLS-SPAN(04b)
2: Built a path C:\SPAN4\DATA on my computer

Please help if anyone knows where is the pa2 file, thanks!




Index of /pub/span/data/
Name Size Date Modified
[parent directory]
asxcl/ 10/24/14, 3:35:00 AM
asxclf/ 10/24/14, 1:35:00 AM
bfx/ 10/24/14, 2:05:00 PM
bmdc/ 10/24/14, 6:25:00 AM
bourseafr/ 10/24/14, 1:34:00 PM
bse/ 5/17/14, 12:36:00 PM
cbt/ 8/17/09, 12:00:00 AM
cce/ 4/27/12, 12:00:00 AM
ccl/ 4/27/12, 12:00:00 AM
ccx/ 12/26/13, 12:00:00 AM
cdc/ 10/23/14, 5:14:00 PM
cee/ 10/24/14, 9:31:00 AM
cfe/ 10/23/14, 6:12:00 PM
clearing/ 1/2/07, 12:00:00 AM
cme/ 10/24/14, 11:33:00 AM
cmx/ 4/27/12, 12:00:00 AM
dgc/ 10/24/14, 7:21:00 AM
difx/ 10/23/14, 6:54:00 AM
ecc/ 10/24/14, 12:45:00 PM
elx/ 10/23/14, 6:17:00 PM
eus/ 9/24/10, 12:00:00 AM
hkf/ 10/24/14, 9:08:00 AM
ice/ 10/23/14, 6:21:00 PM
jcch/ 10/24/14, 2:44:00 AM
jsc/ 10/24/14, 1:54:00 AM
kcb/ 12/26/13, 12:00:00 AM
kdpw/ 10/24/14, 12:17:00 PM
kel/ 10/22/14, 11:44:00 AM
lch/ 5/15/14, 6:01:00 AM
liffe/ 10/24/14, 1:55:00 PM
lme/ 10/23/14, 3:52:00 PM
mat/ 10/24/14, 12:40:00 PM
mcx/ 10/24/14, 2:14:00 PM
mcx-sx/ 9/15/14, 11:03:00 PM
mge/ 10/23/14, 4:04:00 PM
micex/ 12/26/13, 12:00:00 AM
nocc/ 12/26/13, 12:00:00 AM
nos/ 5/15/14, 6:01:00 AM
nse/ 10/20/14, 1:21:00 AM
nyb/ 10/23/14, 5:15:00 PM
nyl/ 10/23/14, 5:34:00 PM
nym/ 4/27/12, 12:00:00 AM
nzf/ 12/26/13, 12:00:00 AM
nzx/ 10/24/14, 12:14:00 AM
ocx/ 10/23/14, 6:17:00 PM
ose/ 12/26/13, 12:00:00 AM
pbt/ 2/15/14, 12:00:00 AM
pnx/ 4/27/12, 12:00:00 AM
sdco/ 10/24/14, 7:49:00 AM
sfe/ 12/26/13, 12:00:00 AM
smx/ 10/24/14, 1:35:00 PM
smxcc/ 3/15/14, 12:00:00 AM
taifex/ 10/24/14, 1:55:00 AM
takas/ 10/24/14, 10:15:00 AM
tcc/ 2/12/14, 12:00:00 AM
test_exch/ 10/28/13, 12:00:00 AM
tif/ 10/24/14, 2:04:00 AM
tse/ 3/15/13, 12:00:00 AM
wce/ 10/23/14, 4:05:00 PM
xeu/ 9/24/10, 12:00:00 AM
xma/ 10/23/14, 8:49:00 PM
xny/ 10/23/14, 6:17:00 PM

Reply With Quote
 
  #279 (permalink)
Elite Member
Steubenville Ohio
 
Futures Experience: Intermediate
Platform: OX, OEC, RJO
Favorite Futures: Options on Futures
 
Posts: 187 since Sep 2012
Thanks: 25 given, 212 received


daydayup8 View Post
I am trying to figure out how to use Dudetooth's program to calculate margin without SPAN program installed, when I click the link on the summary page to get Risk array: it is something like this, there is no pa2 anywhere. What I have done:
1: downloaded his latest program: XLS-SPAN(04b)
2: Built a path C:\SPAN4\DATA on my computer

Please help if anyone knows where is the pa2 file, thanks!

daydayup8,

Did you grab the XLS-SPAN from post #2? I lost track, but I know that I did get the latest patched file linked on post #2.

Did you go through the instructions on the Setup tab? Section 2 covers downloading the pa2 files. All you need to do is enter the date (YYYYMMDD format, like 20141024) in cell G1 on the Scanner tab and then click the Download Risk button. It goes out and finds the right web address and downloads the pa2 files to your C:\SPAN4\DATA folder.

Once that is done then you can scan for trades or enter positions on the Tracker tab to follow their progress from day to day. I think that the Setup tab instructions cover all of that and there should be some example positions on the Tracker tab to show you how to set them up.

I hope this helps ... if not, just let me know.

Reply With Quote
 
  #280 (permalink)
Elite Member
tennessee/USA
 
Futures Experience: Intermediate
Platform: Quotetracker, TOS
Broker/Data: OX TOS
Favorite Futures: ES
 
Posts: 83 since Aug 2014
Thanks: 267 given, 8 received


Yes, I printed out the Setup tab and did as told step by step, but nothing came out except something like program flashing/shining then disappeared from my screen, it was fast and I could see what was that.
I am not good at computers/codes, I've finished reading this whole thread and tried to understand what you guys were talking about, most of posts are pretty hard to understand. Luckily and thanks to your hard work, there is a program to use without installing PC SPAN, but I just could use it. Frustrated...


Dudetooth View Post
daydayup8,

Did you grab the XLS-SPAN from post #2? I lost track, but I know that I did get the latest patched file linked on post #2.

Did you go through the instructions on the Setup tab? Section 2 covers downloading the pa2 files. All you need to do is enter the date (YYYYMMDD format, like 20141024) in cell G1 on the Scanner tab and then click the Download Risk button. It goes out and finds the right web address and downloads the pa2 files to your C:\SPAN4\DATA folder.

Once that is done then you can scan for trades or enter positions on the Tracker tab to follow their progress from day to day. I think that the Setup tab instructions cover all of that and there should be some example positions on the Tracker tab to show you how to set them up.

I hope this helps ... if not, just let me know.


Reply With Quote

Reply



futures io > > > > PC-SPAN

Thread Tools Search this Thread
Search this Thread:

Advanced Search



Upcoming Webinars and Events (4:30PM ET unless noted)

PTMC Protrader Platform First Look w/Sergey Sokolov

Elite only

Spring Grains Outlook w/Sean Lusk @ Walsh Trading

Elite only

FIO Video Journal Challenge featuring NinjaTrader ($2,000+ of prizes)

April

Process above all else w/Anthony Crudele @ Futures Radio Show

Elite only

Machine Learning - Quantitative Trading w/Martin Froehler @ Quantiacs

Elite only

Market Dynamics w/Peter Davies @ Jigsaw Trading

Elite only

Ask Me Anything w/Patrick Rooney @ Trading Technologies

Apr 18

Ask Me Anything w/FuturesTrader71

Apr 19

Machine Learning w/Kris Longmore

Elite only

Market Analysis w/Dave Forss

Apr 25

Introducing iSystems with Stage 5 Trading

Apr 27
     

Similar Threads
Thread Thread Starter Forum Replies Last Post
Current PC Specs tderrick Tech Support 45 October 28th, 2012 03:40 PM
Any PC Gamers in here? forrestang Off-Topic 61 October 10th, 2012 02:37 PM
Virtual PC setup how? boze man Tech Support 5 September 8th, 2012 03:59 PM
I need PC help Boomer34 Tech Support 5 January 22nd, 2012 02:28 PM
PC Question NMTrader Off-Topic 0 July 12th, 2009 10:56 PM


All times are GMT -4. The time now is 08:02 AM.

no new posts
Page generated 2017-03-25 in 0.15 seconds with 20 queries on phoenix via your IP 54.158.187.118