PC-SPAN - Options on Futures | futures io social day trading
futures io futures trading


PC-SPAN
Updated: Views / Replies:79,067 / 603
Created: by ron99 Attachments:160

Welcome to futures io.

(If you already have an account, login at the top of the page)

futures io is the largest futures trading community on the planet, with over 100,000 members. At futures io, our goal has always been and always will be to create a friendly, positive, forward-thinking community where members can openly share and discuss everything the world of trading has to offer. The community is one of the friendliest you will find on any subject, with members going out of their way to help others. Some of the primary differences between futures io and other trading sites revolve around the standards of our community. Those standards include a code of conduct for our members, as well as extremely high standards that govern which partners we do business with, and which products or services we recommend to our members.

At futures io, our focus is on quality education. No hype, gimmicks, or secret sauce. The truth is: trading is hard. To succeed, you need to surround yourself with the right support system, educational content, and trading mentors – all of which you can find on futures io, utilizing our social trading environment.

With futures io, you can find honest trading reviews on brokers, trading rooms, indicator packages, trading strategies, and much more. Our trading review process is highly moderated to ensure that only genuine users are allowed, so you don’t need to worry about fake reviews.

We are fundamentally different than most other trading sites:
  • We are here to help. Just let us know what you need.
  • We work extremely hard to keep things positive in our community.
  • We do not tolerate rude behavior, trolling, or vendors advertising in posts.
  • We firmly believe in and encourage sharing. The holy grail is within you, we can help you find it.
  • 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.

-- Big Mike, Site Administrator

Reply
 160  
 
Thread Tools Search this Thread
 

PC-SPAN

  #591 (permalink)
Steubenville Ohio
 
Trading Experience: Intermediate
Platform: OX, OEC, RJO
Favorite Futures: Options on Futures
 
Posts: 264 since Sep 2012
Thanks: 30 given, 272 received


Kevalo View Post
@Dudetooth

First let me thank you for your great work on PC SPAN. It helped me a lot.

I changed the code as shown in your image above in an Excel 2016 64-bit Version. Unfortunately there is still the same "compile error: type mismatch" highlighting the expression „URLDownloadToFileA“.

Edit:
There is no problem running it on Excel 2016 32-bit.


@Kevalo,


Could you try editing the code as shown in this image and see if it works for the 64-bit?

Thanks


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

Reply With Quote
The following user says Thank You to Dudetooth for this post:
 
  #592 (permalink)
Germany
 
Trading Experience: Advanced
Platform: AgenaTrader, TWS
Broker/Data: IB, Saxo
Favorite Futures: Stocks, Options
 
Posts: 12 since Feb 2011
Thanks: 63 given, 3 received

@Dudetooth

I have changed the code in the 64-bit Version as shown in your image.

There is still a compilation error. This time It says „Sub or Function not defined“, again highlighting the expression "URLDownloadToFileA" as shown:
Private Function SaveWebFile(URL As String, LocalFilename As String) As Boolean
Dim lngRetVal As Long
lngRetVal = URLDownloadToFileA(0, URL, LocalFilename, 0, 0)
If lngRetVal = 0 Then SaveWebFile = True
End Function
BTW, how can I insert an image between the text lines? Copy and paste didn't work. And the import image function requires a URL.


Last edited by Kevalo; April 7th, 2019 at 08:56 AM.
Reply With Quote
 
  #593 (permalink)
Steubenville Ohio
 
Trading Experience: Intermediate
Platform: OX, OEC, RJO
Favorite Futures: Options on Futures
 
Posts: 264 since Sep 2012
Thanks: 30 given, 272 received



Kevalo View Post
@Dudetooth

I have changed the code in the 64-bit Version as shown in your image.

There is still a compilation error. This time It says „Sub or Function not defined“, again highlighting the expression "URLDownloadToFileA" as shown:
Private Function SaveWebFile(URL As String, LocalFilename As String) As Boolean
Dim lngRetVal As Long
lngRetVal = URLDownloadToFileA(0, URL, LocalFilename, 0, 0)
If lngRetVal = 0 Then SaveWebFile = True
End Function
BTW, how can I insert an image between the text lines? Copy and paste didn't work. And the import image function requires a URL.

@Kevalo,

If you don't mind trying, add an "A" to Private Declare PtrSafe Function URLDownloadToFile so it reads Private Declare PtrSafe Function URLDownloadToFileA … that last error might be a simple fix.

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



For the images, when you go to respond, click on the attach file:
Please register on futures.io to view futures trading content such as post attachment(s), image(s), and screenshot(s).


Browse for the image to upload. Once you click Upload and it is complete you can select Embed … wherever your cursor is in the message it will insert the image:
Please register on futures.io to view futures trading content such as post attachment(s), image(s), and screenshot(s).


You can move the html line "[IMG]https://futures.io/attachment.php?attachmentid=*****[/IMG]" to wherever you'd like the image to appear in your response.

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

Reply With Quote
The following user says Thank You to Dudetooth for this post:
 
  #594 (permalink)
Germany
 
Trading Experience: Advanced
Platform: AgenaTrader, TWS
Broker/Data: IB, Saxo
Favorite Futures: Stocks, Options
 
Posts: 12 since Feb 2011
Thanks: 63 given, 3 received


Dudetooth View Post
@Kevalo,

If you don't mind trying, add an "A" to Private Declare PtrSafe Function URLDownloadToFile so it reads Private Declare PtrSafe Function URLDownloadToFileA … that last error might be a simple fix.

@Dudetooth

No, I certainly don’t mind. I am very grateful to you and also @ron99 for your outstanding work here and your willingness to help with the 64-bit problem. I wished I could give back more but I am no programmer (not even close). Thank you also for your info about importing images.

I added an „A“ to URLDownloadToFile. The code in my Excel now looks as shown below:

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



Now there is again the old type mismatch compilation error (My Excel is the German version. The error message translates to „type mismatch“)

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

Reply With Quote
The following user says Thank You to Kevalo for this post:
 
  #595 (permalink)
Steubenville Ohio
 
Trading Experience: Intermediate
Platform: OX, OEC, RJO
Favorite Futures: Options on Futures
 
Posts: 264 since Sep 2012
Thanks: 30 given, 272 received


Kevalo View Post
No, I certainly don’t mind …
Now there is again the old type mismatch compilation error (My Excel is the German version. The error message translates to „type mismatch“)

@Kevalo,

Let's try this … about half-way through the Download module, find the function SaveWebFile and move it up just under the Option Explicit section and make the following changes:

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


Then let's see if it works.

Thanks.


Last edited by Dudetooth; April 8th, 2019 at 06:43 AM.
Reply With Quote
The following user says Thank You to Dudetooth for this post:
 
  #596 (permalink)
Germany
 
Trading Experience: Advanced
Platform: AgenaTrader, TWS
Broker/Data: IB, Saxo
Favorite Futures: Stocks, Options
 
Posts: 12 since Feb 2011
Thanks: 63 given, 3 received


Dudetooth View Post
@Kevalo,

Let's try this … about half-way through the Download module, find the function SaveWebFile and move it up just under the Option Explicit section and make the following changes:

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


Then let's see if it works.

Thanks.

@Dudetooth

No more compilation errors with those changes! However, no risk files can be downloaded. After starting the download the normal message „Saving … risk files“ changes to „Unable to download risk files from server“ after a few seconds.

I already checked my parameter settings and tried various dates. No download possible. The risk files can be downloaded on my wife’s system, on which a 32-bit version of Excel is installed, so there is no problem at CME.

Thanks!

Reply With Quote
The following user says Thank You to Kevalo for this post:
 
  #597 (permalink)
Steubenville Ohio
 
Trading Experience: Intermediate
Platform: OX, OEC, RJO
Favorite Futures: Options on Futures
 
Posts: 264 since Sep 2012
Thanks: 30 given, 272 received


Kevalo View Post
@Dudetooth

No more compilation errors with those changes! However, no risk files can be downloaded. After starting the download the normal message „Saving … risk files“ changes to „Unable to download risk files from server“ after a few seconds.

I already checked my parameter settings and tried various dates. No download possible. The risk files can be downloaded on my wife’s system, on which a 32-bit version of Excel is installed, so there is no problem at CME.

Thanks!

@Kevalo,

One last thing I can think of … let's drop the check of the 64-bit version on your machine. This is exactly how it is shown on Excel Forum (URLDownloadToFile (API + 64 bit version) [SOLVED]) and then you would need to make a small change to the function SaveWebFile (drop A so it reads URLDownloadToFile).
Please register on futures.io to view futures trading content such as post attachment(s), image(s), and screenshot(s).


If this doesn't work, I'm really at a loss.

Reply With Quote
The following user says Thank You to Dudetooth for this post:
 
  #598 (permalink)
Germany
 
Trading Experience: Advanced
Platform: AgenaTrader, TWS
Broker/Data: IB, Saxo
Favorite Futures: Stocks, Options
 
Posts: 12 since Feb 2011
Thanks: 63 given, 3 received

@Dudetooth

Thanks, Dudetooth, but I cannot find any info on how to drop the 64-bit check in your link. The moderator posted the code for the 64-bit conversion of the URLDownloadToFile Function, that was already included in your last changes. Have I overlooked something?

Reply With Quote
 
  #599 (permalink)
Steubenville Ohio
 
Trading Experience: Intermediate
Platform: OX, OEC, RJO
Favorite Futures: Options on Futures
 
Posts: 264 since Sep 2012
Thanks: 30 given, 272 received


Kevalo View Post
@Dudetooth

Thanks, Dudetooth, but I cannot find any info on how to drop the 64-bit check in your link. The moderator posted the code for the 64-bit conversion of the URLDownloadToFile Function, that was already included in your last changes. Have I overlooked something?

@Kevalo,

That link was just to the forum where someone had posted the solution to getting URLDownloadToFile working on a 64-bit version of Excel so you could see how they posted the solution.

The screenshot I included was showing proposed change to the code at the top of the Download module … if you change the code from looking like the pic in post #595 to the pic in post #597 you will remove the 64-bit check.


Last edited by Dudetooth; April 8th, 2019 at 11:45 AM. Reason: Post #s
Reply With Quote
 
  #600 (permalink)
Germany
 
Trading Experience: Advanced
Platform: AgenaTrader, TWS
Broker/Data: IB, Saxo
Favorite Futures: Stocks, Options
 
Posts: 12 since Feb 2011
Thanks: 63 given, 3 received



Dudetooth View Post
@Kevalo,

That link was just to the forum where someone had posted the solution to getting URLDownloadToFile working on a 64-bit version of Excel so you could see how they posted the solution.

The screenshot I included was showing proposed change to the code at the top of the Download module … if you change the code from looking like the pic in post #595 to the pic in post #597 you will remove the 64-bit check.

@Dudetooth

OK, got it. Was a misunderstanding on my side.

I changed the code accordingly but now there is a new compilation error because the variable "lngRetVal" is not defined.
How and where can it be defined? I think it should be working after that definition.

Thanks again!

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

Reply With Quote

Reply



futures io > > > > PC-SPAN




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

futures io is celebrating 10-years w/ over $18,000 in prizes!

Right now
 

$250 Amazon Gift Cards with our "Thanks Contest" challenge!

Right now
 

Show us your trading desks and win over $5,000 in prizes w/Jigsaw Trading

September
 

The Spirituality of Trading w/Dr Brett Steenbarger

Elite only
     

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 03:01 AM. (this page content is cached, log in for real-time version)

Copyright © 2019 by futures io, s.a., Av Ricardo J. Alfaro, Century Tower, Panama, +507 833-9432, info@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