error: attempting to deserialize an empty stream
Author: iporkalov
Creation Date: 3/28/2013 5:45 AM
profile picture

iporkalov

#1
Hi. I'm new here, so please forgive my newbish question. I have tried to solve it myself with wealthscipt programming guide and searching the forum but no success.

Basically I want to use an external symbol csfb, which is a sentiment index. I have created the dataset myself via ASCII, it has date and close fields and works fine when the scale is set to daily.

However, when I try to use intraday scale, this code won't run with the attempting to deserialize an empty stream error.

CODE:
Please log in to see this code.


How do I make the daily updated external index usable for intraday trading?
Thanks.
profile picture

Eugene

#2
Welcome to the forums Ilya.

I think the script fails because Wealth-Lab couldn't find CSFB in intraday scale. Try using the overloaded call that allows to specify the DataSet that will be searched when your external symbol CSFB is requested:

CODE:
Please log in to see this code.

profile picture

iporkalov

#3
Yep, works now. Thanks.
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).