PC-SPAN (Page 6) - Options on Futures | futures.io
futures.io futures trading
 

Go Back   futures.io

> Futures Trading, News, Charts and Platforms > Traders Hideout > Options on Futures


PC-SPAN
Started:October 23rd, 2013 (09:36 AM) by ron99 Views / Replies:41,565 / 403
Last Reply:November 19th, 2016 (08:49 AM) Attachments:100

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
 100  
 
Thread Tools Search this Thread

PC-SPAN

Old November 25th, 2013, 04:43 PM   #51 (permalink)
Market Wizard
OH
 
Futures Experience: Advanced
Platform: QST
Broker/Data: QST, DeCarley Trading, Gain
Favorite Futures: Options on Futures
 
Posts: 2,327 since Jul 2011
Thanks: 634 given, 3,905 received


Dudetooth View Post
I can add these symbols to the to-do list if you'd like.

I have mostly figured out how to add them myself. I added DA, CT & CC (Cocoa). I see that the added ones need to be in alphabetical order.

I see v1 is the factor to change price to dollars.

What is imm2?
What is stk1 used for?
What is d1?

But then I ran into a problem. I mistakenly tried to get a misspelled symbol to calculate. The program was stuck in a loop. I hit Esc twice and told it to end process. Now it won't work for any contract.

Edit: I went back to my saved original file and have things working again.


Last edited by ron99; November 25th, 2013 at 05:14 PM.
Reply With Quote
     

Old November 25th, 2013, 04:56 PM   #52 (permalink)
Market Wizard
OH
 
Futures Experience: Advanced
Platform: QST
Broker/Data: QST, DeCarley Trading, Gain
Favorite Futures: Options on Futures
 
Posts: 2,327 since Jul 2011
Thanks: 634 given, 3,905 received

Am I correct that expiration date or DTE is not available in the disk arrays?

Reply With Quote
     

Old November 25th, 2013, 05:10 PM   #53 (permalink)
Market Wizard
OH
 
Futures Experience: Advanced
Platform: QST
Broker/Data: QST, DeCarley Trading, Gain
Favorite Futures: Options on Futures
 
Posts: 2,327 since Jul 2011
Thanks: 634 given, 3,905 received


I am having problems adding SI, HO to the macro.

Got LN (Hogs) to work.

I'm guessing my stk1 is wrong or my v1 is wrong.

On the Single Position button the popup box says Select Row so I was trying to select the whole row. I changed the macro so it says "Select Cell in Option Row".

Reply With Quote
     

Old November 25th, 2013, 06:30 PM   #54 (permalink)
Elite Member
Steubenville Ohio
 
Futures Experience: Intermediate
Platform: OX, OEC, RJO
Favorite Futures: Options on Futures
 
Posts: 179 since Sep 2012
Thanks: 24 given, 198 received


kevinkdog View Post
Can you save a version in Excel 97 format? I am still way behind the times...

This one is 97/2003 compatible.

Attached Files
Register to download File Type: zip Margin without PC-SPAN-97.zip (26.2 KB, 22 views)
Reply With Quote
     
The following user says Thank You to Dudetooth for this post:
     

Old November 25th, 2013, 06:58 PM   #55 (permalink)
Elite Member
Steubenville Ohio
 
Futures Experience: Intermediate
Platform: OX, OEC, RJO
Favorite Futures: Options on Futures
 
Posts: 179 since Sep 2012
Thanks: 24 given, 198 received

Futures Edge on FIO

Are you a NinjaTrader user?

 

ron99 View Post
What is imm2?

When I found the line in the risk arrays that held the short option minimum I noticed that there were a few that didn't seem to work until I multiplied them by 2 (for currencies) and 5 (for grains) ... perhaps related to the size of the mini-contracts.


ron99 View Post
What is stk1 used for?

That is the strike of the option.


ron99 View Post
What is d1?

I found a similar issue with the delta that I found with SOM, but just with the currencies. Multiplying by 2 created the correct delta. Again, no idea why, but it works.

Reply With Quote
     

Old November 25th, 2013, 07:01 PM   #56 (permalink)
Elite Member
Steubenville Ohio
 
Futures Experience: Intermediate
Platform: OX, OEC, RJO
Favorite Futures: Options on Futures
 
Posts: 179 since Sep 2012
Thanks: 24 given, 198 received


ron99 View Post
Am I correct that expiration date or DTE is not available in the disk arrays?

I'm not sure. I did a quick look, but didn't see anything. Have you ever seen the DTE displayed in any of the reports that PC-SPAN creates? If it's in a report we should be able to extract it.

****Good news ... I think I found it. There are lines in the risk array that appear to that the date that the option expires, so we should be in luck.


Last edited by Dudetooth; November 25th, 2013 at 07:25 PM. Reason: Just found some info
Reply With Quote
     

Old November 25th, 2013, 07:08 PM   #57 (permalink)
Elite Member
Steubenville Ohio
 
Futures Experience: Intermediate
Platform: OX, OEC, RJO
Favorite Futures: Options on Futures
 
Posts: 179 since Sep 2012
Thanks: 24 given, 198 received


ron99 View Post
I am having problems adding SI, HO to the macro ... I'm guessing my stk1 is wrong or my v1 is wrong.

It is possible. Not sure when I'll get a chance to work the code for those. You can try stepping through the code in the VBA editor (F8 key) to see where it gets hung up. If it just that the search is not grabbing anything then it might be something like the strike.


ron99 View Post
On the Single Position button the popup box says Select Row so I was trying to select the whole row. I changed the macro so it says "Select Cell in Option Row".

I can see where that would be confusing. It is easy to understand when I am writing it ... doesn't always translate properly to others. I'll change that in the next build.

Reply With Quote
     

Old November 25th, 2013, 08:21 PM   #58 (permalink)
Market Wizard
OH
 
Futures Experience: Advanced
Platform: QST
Broker/Data: QST, DeCarley Trading, Gain
Favorite Futures: Options on Futures
 
Posts: 2,327 since Jul 2011
Thanks: 634 given, 3,905 received


Dudetooth View Post
I'm not sure. I did a quick look, but didn't see anything. Have you ever seen the DTE displayed in any of the reports that PC-SPAN creates? If it's in a report we should be able to extract it.

****Good news ... I think I found it. There are lines in the risk array that appear to that the date that the option expires, so we should be in luck.

I was thinking if I had the expiration date then I could then have your spreadsheet calculate monthly ROI when it does the margin.

Reply With Quote
     

Old November 25th, 2013, 08:40 PM   #59 (permalink)
Market Wizard
OH
 
Futures Experience: Advanced
Platform: QST
Broker/Data: QST, DeCarley Trading, Gain
Favorite Futures: Options on Futures
 
Posts: 2,327 since Jul 2011
Thanks: 634 given, 3,905 received


Dudetooth View Post
That is the strike of the option.

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?

Reply With Quote
     

Old November 25th, 2013, 08:58 PM   #60 (permalink)
Market Wizard
OH
 
Futures Experience: Advanced
Platform: QST
Broker/Data: QST, DeCarley Trading, Gain
Favorite Futures: Options on Futures
 
Posts: 2,327 since Jul 2011
Thanks: 634 given, 3,905 received


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

ElseIf con1 = "SI" Then
stk1 = stk1 * 100
str1 = "CMXSO SI OOF" & cp1
str1 = str1 & "201" & yr1 & umo1 & " 201" & yr2 & omo1
strSearch = str1 & " " & Application.WorksheetFunction.Text(stk1, "0000000")
strSearch2 = "3 CX-SI"
strSearch3 = "4 CX-SI"
imm2 = 1
v1 = 0.5


Hogs

ElseIf con1 = "LN" Then
stk1 = stk1 * 10
str1 = "CMELN LN OOF" & cp1
str1 = str1 & "201" & yr1 & umo1 & " 201" & yr2 & omo1
strSearch = str1 & " " & Application.WorksheetFunction.Text(stk1, "0000000")
strSearch2 = "3 LN"
strSearch3 = "4 LN"
imm2 = 1
v1 = 0.4


Cocoa

If con1 = "CC" Then
stk1 = stk1 * 100
str1 = "NYBCC CC OOF" & cp1
str1 = str1 & "201" & yr1 & umo1 & " 201" & yr2 & omo1
strSearch = str1 & " " & Application.WorksheetFunction.Text(stk1, "0000000")
strSearch2 = "3 CC"
strSearch3 = "4 CC"
imm2 = 1
v1 = 10


Cocoa needs to be first in front of CL. I added Else in front of the If to start the CL code.

Cotton

ElseIf con1 = "CT" Then
stk1 = stk1 * 100
str1 = "NYBCT CT OOF" & cp1
str1 = str1 & "201" & yr1 & umo1 & " 201" & yr2 & omo1
strSearch = str1 & " " & Application.WorksheetFunction.Text(stk1, "0000000")
strSearch2 = "3 CT"
strSearch3 = "4 CT"
imm2 = 1
v1 = 5


Heating Oil

ElseIf con1 = "HO" Then
stk1 = stk1 * 10000
str1 = "NYMOH HO OOF" & cp1
str1 = str1 & "201" & yr1 & umo1 & " 201" & yr2 & omo1
strSearch = str1 & " " & Application.WorksheetFunction.Text(stk1, "0000000")
strSearch2 = "3 NY-HO"
strSearch3 = "4 NY-HO"
imm2 = 1
v1 = 4.2


RB

ElseIf con1 = "RB" Then
stk1 = stk1 * 10000
str1 = "NYMOB RB OOF" & cp1
str1 = str1 & "201" & yr1 & umo1 & " 201" & yr2 & omo1
strSearch = str1 & " " & Application.WorksheetFunction.Text(stk1, "0000000")
strSearch2 = "3 NY-RB"
strSearch3 = "4 NY-RB"
imm2 = 1
v1 = 4.2


These need to be added in alphabetical order.

Reply With Quote
     
The following 2 users say Thank You to ron99 for this post:
     

Reply



futures.io > Futures Trading, News, Charts and Platforms > Traders Hideout > Options on Futures > PC-SPAN

Thread Tools Search this Thread
Search this Thread:

Advanced Search



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

Al Brooks: Stop Losing when a Good Trade goes Bad, Correcting Mistakes

Elite only
 

Trading Technologies: ADL hands-on

Dec 13

Normal webinar schedule resumes after the holidays

January

Ernie Chan: Risk Management

Elite only

Dedicated Trading Servers: Advantages/Disadvantages w/sam028

Elite only

An Afternoon with FIO member Massive I

Elite only

Leo Murphy: TBA

Elite only
     

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


All times are GMT -4. The time now is 03:40 AM.

Copyright © 2016 by futures.io. 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.
 
no new posts
Page generated 2016-12-09 in 0.13 seconds with 20 queries on phoenix via your IP 50.16.17.16