Function parameters won't work correctly

eros

Board Regular
Joined
May 6, 2011
Messages
90
Hi eveyone,


My question seems to be unique, so far I have failed to find a solution.


I call a function from an Excel sheet which gets live data from a stock server. My Function parameters are bid, ask, number of shares sold, number of shares bought, and several other relevant data. The thing here is that, for a function to run, just a single change in any of these parameters is sufficient. However, I need to make sure that, before my function runs, all relevant data to be updated first for each transaction. Therefore, the function does not work as I expect it to do. For verification purposes I am trying to count no of shares bought and sold in a day but my function misses up to 40 % of transactions. It must have been called eventhough not all the parameters are updated for a complete transaction and hence results in erroneous output.


Is there anyone who faced the same problem and, more importantly, has a solution? The Excel sheet is updated from the server dozens of times a second for several stocks. Eventhough I try it with just one share, the failure ratio is as much as 40%.


Many thanks in advance.
 

Excel Facts

Create a Pivot Table on a Map
If your data has zip codes, postal codes, or city names, select the data and use Insert, 3D Map. (Found to right of chart icons).
I will follow up the thread from the other forum as referenced to above so that no double effort for the same issue.
 
Upvote 0

Forum statistics

Threads
1,214,940
Messages
6,122,352
Members
449,080
Latest member
Armadillos

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top