The exception is object reference not set to an instance of an object in TradingDay from Community Components
It happens when there is bar data from another provider. Try Wealth-Data with Yahoo.
CODE:
Please log in to see this code.
Size:
Color:
This is by design. ^NDX is not a valid Wealth-Data symbol. It's Yahoo specific.
Size:
Color:
QUOTE:
^NDX is not a valid Wealth-Data symbol. It's Yahoo specific.
Correct. That's my intention. SetContext searches datasets alphabetically to find the symbol given. I routinely build backtests with symbols from different datasets and sometimes different providers.
Everything works as expected except subject function. Above is a simplification of a larger strategy to demonstrate the exception. Please give it a try.
If it truly is by WL design please give references to help me understand what else will not work. My main issue has been unavailable dividends. Thanks for you help.
Size:
Color:
That TradingDay function from Community Components queries the Bars.MarketInfo.Holidays property. The Bars.MarketInfo object is null for the secondary symbol. As WL 6.9 is no longer developed and there's no possibility to fix anything in the thick client, we will have to live with this (until WL7 of course).
CODE:
Please log in to see this code.
Size:
Color:
QUOTE:
Bars.MarketInfo object is null for the secondary symbol
Good to know limitation. I'll write a workaround in the catch. Thanks for testing.
Size:
Color:
Glad to help you figure out the source of error.
Size:
Color: