In my Strategy, I called it using the following code:
private Nick201 nicky;
protected override void OnStartUp()
{[INDENT]if (nicky == null)[INDENT]nicky = Nick201(1,161000,6,LogicTypes.HATick,2,93000,TimeFrames.IntraDay);
[/INDENT][/INDENT]}
Error on calling 'OnBarUpdate' method for indicator 'Nick201' on bar 104: Object reference not set to an instance of an object.
I've managed to isolate the error to this offending block of code in Nick201 indicator (NOT the strategy):
private IText textObject;
protected override void OnBarUpdate()
{[INDENT]........
IdentifyTSP();
[/INDENT][INDENT]..........
[/INDENT]}
void IdentifyTSP()
{[INDENT]..........
textObject = (IText) DrawObjects["5615obj"];
textObject.TextColor = Color.White;
..........
[/INDENT]}
I'm a little perplexed as to why the indicator would run without a hitch (and redraws nicely), yet the strategy calling the indicator kicks out a reference error. Any help would be appreciated.
Thanks!

Comment