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


PC-SPAN
Started: by ron99 Views / Replies:45,548 / 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

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


Dudetooth View Post
This one is 97/2003 compatible.

Thanks. I'm guessing there is no easy way with an old version of Excel to automatically go get and unzip the required SPAN files?

If you have any questions please send me a Private Message or use the futures.io "Ask Me Anything" thread
Reply With Quote
 
  #62 (permalink)
Elite Member
Qld, Australia
 
Futures Experience: Beginner
Platform: Excel/Hoadley/PC-SPAN
Broker/Data: OX
Favorite Futures: Options
 
Posts: 28 since Mar 2012
Thanks: 6 given, 39 received

This works fine for me in XL 2003:


Sub DownloadRiskArrayFiles()

On Error GoTo GetOut
Dim RetVal
Dim batchfile As String
Dim path As String
dateit = Range("SpanMacro!B2").Value 'Date in YYYYMMDD format
namecme = "cme." & dateit & ".s.pa2.zip"
namenyb = "nyb." & dateit & ".s.pa2.zip"
path = "C:\Span4\Data"

SaveWebFile "ftp://ftp.cmegroup.com/pub/span/data/cme/" & namecme, path & "\" & namecme
SaveWebFile "ftp://ftp.cmegroup.com/pub/span/data/nyb/" & namenyb, path & "\" & namenyb

Call UnZip(path & "\", path & "\" & namecme)
Call UnZip(path & "\", path & "\" & namenyb)

Kill path & "\" & namecme
Kill path & "\" & namenyb

Kill path & "\cme.s.pa2"
Kill path & "\nyb.s.pa2"
Name path & "\" & "cme." & dateit & ".s.pa2" As path & "\cme.s.pa2"
Name path & "\" & "nyb." & dateit & ".s.pa2" As path & "\nyb.s.pa2"

GetOut:
End Sub

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



spj77 View Post
This works fine for me in XL 2003:


Sub DownloadRiskArrayFiles()

On Error GoTo GetOut
Dim RetVal
Dim batchfile As String
Dim path As String
dateit = Range("SpanMacro!B2").Value 'Date in YYYYMMDD format
namecme = "cme." & dateit & ".s.pa2.zip"
namenyb = "nyb." & dateit & ".s.pa2.zip"
path = "C:\Span4\Data"

SaveWebFile "ftp://ftp.cmegroup.com/pub/span/data/cme/" & namecme, path & "\" & namecme
SaveWebFile "ftp://ftp.cmegroup.com/pub/span/data/nyb/" & namenyb, path & "\" & namenyb

Call UnZip(path & "\", path & "\" & namecme)
Call UnZip(path & "\", path & "\" & namenyb)

Kill path & "\" & namecme
Kill path & "\" & namenyb

Kill path & "\cme.s.pa2"
Kill path & "\nyb.s.pa2"
Name path & "\" & "cme." & dateit & ".s.pa2" As path & "\cme.s.pa2"
Name path & "\" & "nyb." & dateit & ".s.pa2" As path & "\nyb.s.pa2"

GetOut:
End Sub

Thanks
I will give this a try.

If you have any questions please send me a Private Message or use the futures.io "Ask Me Anything" thread
Reply With Quote
 
  #64 (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

For new traders in this thread, when I get a chance I will make a post and put in the Quick Summary a step by step list of what you have to do to get Dudetooth's system running. It will give you a fast, free! calculator of SPAN margins.

You will need some batch files and the spreadsheet.

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

 

ron99 View Post
For NG you have this line
stk1 = stk1 * 1000

Other ones have 10 or 100 instead of 1000. Or some don't have that line at all. What determines which multiplier you use?

I glean option and futures quotes from Barchart's website, so all of those calculations are made to convert an option strike as it appears on Barchart's site to be compatible with what is seen in the risk arrays.

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


ron99 View Post
Here's the code for silver to add to the macro for the spreadsheet in post #45.

Thanks for the code. I will get this into the next build for sure. I will also look to have DTE calculated and the download ability. I am also thinking I may have the simple spread calculation in it as well (and a 97 version for kevinkdog).

Is there anything else worth looking to add?

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


Dudetooth View Post
Thanks for the code. I will get this into the next build for sure. I will also look to have DTE calculated and the download ability. I am also thinking I may have the simple spread calculation in it as well (and a 97 version for kevinkdog).

Is there anything else worth looking to add?

Nothing I can think of right now.

You have been a HUGE help to many of us. Thank you.

Here is how I added my macro buttons. I was going to add them above your stuff but I didn't want to have to redo all the cell references in the macros. This is OK. But if you have a better idea that would be good.

If you don't want all of them on there that is OK. The Download Risk Arrays is the one that is needed with the date cell. I can add mine where needed later.

Please register on futures.io to view futures trading content such as post attachment(s), image(s), and screenshot(s).


I left a row below them for titles of columns when I do ROI calculations and other things.

Reply With Quote
The following user says Thank You to ron99 for this post:
 
  #68 (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

Margin Without PC-SPAN v2

Here's an update with some recommendations / upgrades built in.

1) Download file (there is an Excel 97/2003 version available) and unzip.

2) Open spreadsheet and follow the instructions on the Setup tab.

New features:
-Setup tab with instructions and ability to change default path
-Ability to download CME and NYB risk arrays (download, unzip, rename)
-DTE based on the date of the downloaded risk arrays
-7 new commodities programmed
-Spreads: simple 2-legged intra-commodity spreads can be calculated

I did some quick tests and everything seems to be working ... please let me know if you find any bugs.

Thanks to ron99 for helping with the new commodity programming.

****Updated: Minor fixes ... already.
I've got the SaveWebFile and Unzip macros in there (missed them first time around) and 97 version has TrailingMinusNumbers issue taken care of. Thanks ron99 and kevinkdog for the troubleshooting I missed.

Attached Files
Register to download File Type: zip Margin Without PC-SPANv2.zip (44.1 KB, 38 views)
Register to download File Type: zip Margin Without PC-SPAN-97v2.zip (39.8 KB, 21 views)

Last edited by Dudetooth; November 28th, 2013 at 09:19 AM. Reason: Fix minor bugs
Reply With Quote
The following 5 users say Thank You to Dudetooth for this post:
 
  #69 (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

I tried the 97 version, and it seems to work well!

Thanks Dudetooth!


I have a handful of other instruments I want to add, and if/when I am successful I will post the code here (probably by Saturday)...

If you have any questions please send me a Private Message or use the futures.io "Ask Me Anything" thread
Reply With Quote
 
  #70 (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

Great Tool


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


Please register on futures.io to view futures trading content such as post attachment(s), image(s), and screenshot(s).

If you have any questions please send me a Private Message or use the futures.io "Ask Me Anything" thread
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 07:39 AM.

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