GetExternalSymbol: NullReferenceException
Author: cchome2002
Creation Date: 5/11/2014 12:30 PM
profile picture

cchome2002

#1
Hi,

I have created a DataSet which contains two symbols, 000300.SS and 600350.SS. The streaming data provider will call the function: Subscribe(string symbol) to subscribe these two symbols. Every 10 seconds the provider will fetch the new data and call the function: base.UpdateMiniBar(quote, .open, high, low) to update both the quotes.

In my WS strategy, I use the following to get the external data in the charform of 000300.SS,
Bars bmBars = GetExternalSymbol("600350.SS", true);
But it doesn't work and the exception message is:

System.NullReferenceException:
WealthLab.Bars..ctor(Bars b)
WealthLab.TradingSystemExecutor.a(String A_0, Boolean A_1)
WealthLab.WealthScript.SetContext(String symbol, Boolean synchronize)
WealthLab.WealthScript.GetExternalSymbol(String symbol, Boolean synchronize)
WealthLab.Strategies.MyStrategy.Execute()

How can I get the external data?
profile picture

Eugene

#2
Hi Charlie Chen,

How are you using Wealth-Lab? Your free trial has expired on 04/28/2014.

QUOTE:
I have created a DataSet which contains two symbols, 000300.SS and 600350.SS. The streaming data provider will call the function: Subscribe(string symbol) to subscribe these two symbols. Every 10 seconds the provider will fetch the new data and call the function: base.UpdateMiniBar(quote, .open, high, low) to update both the quotes.

In my WS strategy, I use the following to get the external data in the charform of 000300.SS,
Bars bmBars = GetExternalSymbol("600350.SS", true);
But it doesn't work and the exception message is:

System.NullReferenceException:
WealthLab.Bars..ctor(Bars b)
WealthLab.TradingSystemExecutor.a(String A_0, Boolean A_1)
WealthLab.WealthScript.SetContext(String symbol, Boolean synchronize)
WealthLab.WealthScript.GetExternalSymbol(String symbol, Boolean synchronize)
WealthLab.Strategies.MyStrategy.Execute()

How can I get the external data?
profile picture

cchome2002

#3
This happened in April and I just have time to post the question.
Yes, the version is expired and this is another problem. Can I apply for extend the trial period or use another email to apply another trial version?
profile picture

Eugene

#4
QUOTE:
This happened in April and I just have time to post the question.

We might try to help out with this issue after you purchase a license:
Purchase Wealth-Lab Developer

QUOTE:
Can I apply for extend the trial period or use another email to apply another trial version?

No, especially considering the fact that your use of the product have already raised reasonable questions from the start. Please follow the link above to become a registered customer. Should you have an issue when making an order, please don't hesitate to contact us by email at info@wealth-lab.com.