GetBackgroundColor(bar);
Author: riosstocks
Creation Date: 7/27/2009 8:33 PM
profile picture

riosstocks

#1
When I use the following in a strategy it will work for a single selected symbol.
Color mycolor = tPane.GetBackgroundColor(bar);

When I select a dataset I get the following error for every symbol including the first symbol.
Error processing symbol T Object reference not set to an instance of an object.

I am plotting a synthetic symbol along with the symbol if this might be related.
However eliminating that Color line gets rid of the errors.

Thanks!
profile picture

Eugene

#2
This happens because tPane is null inside a Multi-Symbol Backtest. We'll need to investigate if this is working by design or not.
profile picture

Eugene

#3
Thanks for the heads-up. The error shouldn't happen. Could you create a support ticket for tracking purposes? Putting a link to this thread would be enough. Thanks in advance.
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).