I understand that indexes are not supported in Wealth-Data.
But - I can get index values though Yahoo.
Can I combine the index from Yahoo and the individual shares from Wealth-Data?
How would that be done?
Size:
Color:
Could you please rephrase? I don't understand what this means: "Can I combine the index from Yahoo and the individual shares from Wealth-Data?"
Size:
Color:
In my strategy I have a line like this:
CODE:
Please log in to see this code.
That works if Yahoo is the provider as it is their symbol for the S&P500 index..
When I shift it to Wealth-Data (which is great at giving information about individual stocks) it fails.
I am trying to somehow get prices for the S&P500 index into my strategy.
Size:
Color:
Got it. There's overloaded call that accepts the DataSet name (Yahoo's in your case), pointing WL at the right symbol. Give this a try:
CODE:
Please log in to see this code.
Size:
Color:
Thanks, Eugene.
Unfortunately, I got a
Runtime error: Object reference not set to an instance of an object.
Size:
Color:
It works just fine.
Double check everything.
p.s. More insight:
Errors | Strategy > Object reference not set to an instance of an object
Size:
Color:
Size:
Color:
More:
I have this code:
CODE:
Please log in to see this code.
The response is:
QUOTE:
Runtime error: Object reference not set to an instance of an object
In short, I don't think I can access any data that's in spxbars.
Size:
Color:
Already replied in post #6 above.
Size:
Color:
Hi there again, this is the complete source code. The only line that gives the error message is the PrintDebug.
Any idea of what's wrong with it?
CODE:
Please log in to see this code.
Size:
Color:
Yes, ideas for your troubleshooting are in the Wiki link in post #6.
Size:
Color: