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,195 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

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


MGBRoadster View Post
My Avast antivirus has an alert:

Object: C:\...\XLS-SPAN.xls
Infection: MO97: Downloader-DF
Process: C:Program Files (x86)Microsoft Office\Office14\EXCEL.EXE

I've been using XLS-SPAN for several months without any problems, so I guess this is a false positive. Does anybody know what's happening here?


Thanks,

Chris

I came across this over the weekend as well. I tracked it down to the SaveWebFile function ... I think that the process it uses ("MSXML2.XMLHTTP") is causing the hit for the anti-virus software. I submitted a copy to a couple of sites to have it checked just to be sure.

In the mean time, you can get the spreadsheet operational again by doing the following:
-Delete the SaveWebFile function, should be in the Functions module
-Add the following code to the top of the Funtion module:

Private Declare Function URLDownloadToFileA Lib "urlmon" (ByVal pCaller As Long, _
ByVal szURL As String, ByVal szFileName As String, ByVal dwReserved As Long, _
ByVal lpfnCB As Long) As Long

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 DownloadFile = True
End Function


This method of downloading the PA2 file does not seem to cause any grief with the anti-virus software and should be all the editing that is needed (not sure which version of the spreadsheet you have). If it doesn't work, just let me know which version you are using and I should be able to get it fixed up for you.

Hope this helps.

Note: If Avast keeps auto-deleting your file (placing it in the virus chest) you can turn Avast off temporarily, restore the spreadsheet, edit the code, and then turn Avast back on.

Update...

Sorry, small mistake ... code should look like this:

Private Declare Function URLDownloadToFileA Lib "urlmon" (ByVal pCaller As Long, _
ByVal szURL As String, ByVal szFileName As String, ByVal dwReserved As Long, _
ByVal lpfnCB As Long) As Long

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

Reply With Quote
Thanked by:

Can you help answer these questions
from other members on NexusFi?
Increase in trading performance by 75%
The Elite Circle
ZombieSqueeze
Platforms and Indicators
NT7 Indicator Script Troubleshooting - Camarilla Pivots
NinjaTrader
Trade idea based off three indicators.
Traders Hideout
MC PL editor upgrade
MultiCharts
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Just another trading journal: PA, Wyckoff & Trends
27 thanks
Tao te Trade: way of the WLD
23 thanks
Diary of a simple price action trader
22 thanks
My NQ Trading Journal
14 thanks
GFIs1 1 DAX trade per day journal
9 thanks
  #252 (permalink)
 
Big Mike's Avatar
 Big Mike 
Manta, Ecuador
Site Administrator
Developer
Swing Trader
 
Experience: Advanced
Platform: Custom solution
Broker: IBKR
Trading: Stocks & Futures
Frequency: Every few days
Duration: Weeks
Posts: 50,440 since Jun 2009
Thanks Given: 33,207
Thanks Received: 101,599

Use the site:

https://www.virustotal.com/

And it will test the file against a bunch of engines, and you can make an informed decision about false positives.

Mike

We're here to help: just ask the community or contact our Help Desk

Quick Links: Change your Username or Register as a Vendor
Searching for trading reviews? Review this list
Lifetime Elite Membership: Sign-up for only $149 USD
Exclusive money saving offers from our Site Sponsors: Browse Offers
Report problems with the site: Using the NexusFi changelog thread
Follow me on Twitter Visit my NexusFi Trade Journal Reply With Quote
  #253 (permalink)
MGBRoadster
Lancashire UK
 
Posts: 52 since Jan 2013
Thanks Given: 42
Thanks Received: 32



Dudetooth View Post
In the mean time, you can get the spreadsheet operational again by doing the following:
-Delete the SaveWebFile function, should be in the Functions module
-Add the following code to the top of the Funtion module:

... code should look like this:

Private Declare Function URLDownloadToFileA Lib "urlmon" (ByVal pCaller As Long, _
ByVal szURL As String, ByVal szFileName As String, ByVal dwReserved As Long, _
ByVal lpfnCB As Long) As Long

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

Sorry Dudetooth - old guy here, I've never used Visual basic before

I've gone to the Functions page and deleted the section of text that contains SaveWebfile, and added your new code at the top of the page. I get a
"Compile error: Only comments may appear after the End Sub, End Function or End Property"

and the following text is highlighted:
" Private Declare Function GetWindowLong _
Lib "user32.dll" _
Alias "GetWindowLongA" _
(ByVal hwnd As Long, _
ByVal nIndex As Long) As Long "

I'm not sure how to find out which version of the spreadsheet I have, so I tried downloading the latest version from the first page of this thread. I had the same issue again, but when I try to download it now I get a "The file is corrupt and cannot be opened" error.

I'm probably making an obvious mistake.

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


MGBRoadster View Post
Sorry Dudetooth - old guy here, I've never used Visual basic before.

I'll get a patched version of the spreadsheet out for you.

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

Here is a patched version of the last XLS-SPAN that uses a different download method that is not throwing false positives with the anti-virus.

I did check the code with the VirusTotal that Big Mike suggested. Off 53 anti-virus programs, the code caused hits on four, including Avast. After the code used to save web files was switched out with the code used in the attached spreadsheet only one anti-virus still showed a hit ... TheHacker. From a quick search online it seems as though TheHacker has a bit of a history with false positives.

I also submitted the file to Avast. They recommended that I try updating my version of Avast and virus definitions to alleviate the false positive.

Just wanted to share what I found.

Attached Files
Elite Membership required to download: XLS-SPAN (04b) - Update.xls
Reply With Quote
  #256 (permalink)
Mo111
Detroit MI/USA
 
Posts: 21 since Jan 2014
Thanks Given: 12
Thanks Received: 10


Dudetooth View Post
Here is a patched version of the last XLS-SPAN that uses a different download method that is not throwing false positives with the anti-virus.

I did check the code with the VirusTotal that Big Mike suggested. Off 53 anti-virus programs, the code caused hits on four, including Avast. After the code used to save web files was switched out with the code used in the attached spreadsheet only one anti-virus still showed a hit ... TheHacker. From a quick search online it seems as though TheHacker has a bit of a history with false positives.

I also submitted the file to Avast. They recommended that I try updating my version of Avast and virus definitions to alleviate the false positive.

Just wanted to share what I found.

Hi Dudetooth,

I've been using your excel sheet here - and decided to move over to the 04b excel sheet as the "track all" feature would save me a lot of time with each of my spreads/strangles.

I'm getting different calculations for margin though between the two excel files - heres an example of my CL strangle:

version 3 sheet - $86 margin:



version 4b - $53 margin:



All of the settings on the first sheet are the same: path, Total IM, commissions, save dates. Also, the scan date is the same 8/29/2014.

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


Mo111 View Post
I'm getting different calculations for margin though between the two excel files

Mo111,

Thanks for finding this error ... the 4b version was not adding the short option minimum for both legs ... $86 is correct. You won't normally see this unless you are very far out of the money (which these are) and then the short option minimum is greater than the risk scenarios so that it becomes the basis of the initial margin. I've fixed this issue and have re-posted the spreadsheet.

Attached Files
Elite Membership required to download: XLS-SPAN (04b) - Update.xls
Reply With Quote
  #258 (permalink)
cubcub
Boston MA
 
Posts: 5 since Apr 2014
Thanks Given: 1
Thanks Received: 0

Hello everyone,

I use win8 64 bit. I have downloaded pc-span 4.5 from CME yet can't install it. The message says unexpected error with the package?? error code 2502 and 2503.


Anyone could help? Thank you!!!

Attached Thumbnails
Click image for larger version

Name:	2502.JPG
Views:	125
Size:	18.4 KB
ID:	154736   Click image for larger version

Name:	2503.JPG
Views:	147
Size:	18.3 KB
ID:	154737  
Reply With Quote
  #259 (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


cubcub View Post
Hello everyone,

I use win8 64 bit. I have downloaded pc-span 4.5 from CME yet can't install it. The message says unexpected error with the package?? error code 2502 and 2503.


Anyone could help? Thank you!!!


There is no issues with Win7 64bit, but it could be Win8 security ... found this referring to error 2502 and 2503:

Windows 8 has increased security measures which prevent standard users from installing 3rd party applications. If you see error 2502 or 2503 while installing, that means your account does not have administrator permissions to install software.

Solution 1:

Make sure your Windows account has the highest level of security permissions. Refer to Windows documentation for your operating system on how to do this.

Solution 2:

Run the installation file "As Administrator":

1. Find the installation file on your computer. Normally you have the option to save or run an installation file when downloading from the Internet. If you do not know where the file was downloaded, check the Downloads folder in File Explorer.

2. Right-click the file and select Run As Administrator* from the pop-up menu.

Reply With Quote
Thanked by:
  #260 (permalink)
CafeGrande
St Paul, MN, USA
 
Posts: 200 since Jan 2014
Thanks Given: 131
Thanks Received: 207


DudeTooth -

I have a selfish request unrelated to the issue immediately above.

Would it take a lot of work to add the Kansas City (KE) wheat contract to your application? It doesn't have the liquidity of the Chicago contract, but now that they're both under the CME umbrella, that may change.

No rush ... I can keep tabs on my KE positions elsewhere, but if it fits into a future release, great!

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