Sync Issue with External Symbol
Author: gpetrie
Creation Date: 1/8/2011 9:59 PM
profile picture

gpetrie

#1
Hi,

I created an external data series with the following code. I copied all the PrintDebug results to excel and used the Excel Provider to create a new DataSet. I can display the resulting Chart in Wealth Lab 6.0 fine. However when I use the second set of code (below) to access and plot the data as an external symbol and sync it with the primary symbol I get an error that the "plotted DataSeries has fewer bars than the symbol being plotted." Seems my dates are not matching up.

Any thoughts/help would be appreciated.

Thanks,

Gene

C R E A T I O N C O D E

CODE:
Please log in to see this code.



A C C E S S C O D E

CODE:
Please log in to see this code.


profile picture

Eugene

#2
QUOTE:
Bars PercentOverSym = GetExternalSymbol("PctOvr", "PCTOVR", true);

What's that symbol? I mean, what kind of symbol are you trying to access by the "access code"? Is it something created by the "creation code"? Or is it an ASCII-exported something? The connection between the code snippets is not clear.

By the way, have you tried dropping the DataSet name parameter (i.e. "PCTOVR") from that call, was that successful?
CODE:
Please log in to see this code.
profile picture

gpetrie

#3
Thanks Eugene,

Problem was me. Created the symbol, "PctOver" and tried to access it as "PctOvr". All good now.

For what its worth, I am (mostly) using code you suggested from a post on 12/24 to build a dataset of the percentage of stocks over the moving average of an index. I added the PrintDebugs (1 for the header and 1 for each bar) to copy them into excel. With the data in a spreadsheet I can to avoid the long calculation every time I access it. I used the Excel Provider to create a new DataSet avoiding a CSV conversion.

Appreciate your guys patience with us rookies.

Gene
This website uses cookies to improve your experience. We'll assume you're ok with that, but you can opt-out if you wish (Read more).