Invalid Benchmark Buy and Hold Symbol
Author: CarmaAdvisory
Creation Date: 4/22/2015 10:33 AM
profile picture

CarmaAdvisory

#1
Hi all,

I'm testing a strategy that requires a 2nd data series so I use the command GetExternalSymbol. If I use SPY it works fine:

Bars spy = GetExternalSymbol("SPY",true)

But if I replace SPY with other symbols (for example "QQQ") the following error message appears:

Invalid Benchmark Buy and Hold Symbol: QQQ

Where am I wrong?

Thanks
profile picture

Eugene

#2
According to the Open Issues list, it looks like some symbol (QQQ?) is null i.e. does not have data:

(182123) Invalid Benchmark Buy and Hold message for DataSetSymbols

When using SetConext in a DataSetSymbols loop, the dialog "Invalid Benchmark Buy and Hold Symbol:" is displayed when encountering a symbol with a null Bars object. This occurs even if Benchmark Buy & Hold is not enabled.

If on demand data update is disabled, try updating the DataSet and eliminate all of them with 0 bars.
profile picture

CarmaAdvisory

#3
Thank you Eugene. It works now.
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).