I added in properties :
[Browsable(false)]
[XmlIgnore]
public Series<double> TimerSignal
{
get { return Values[0]; }
}
and I placed the following in the body of the text:
TimerSignal[0] =barTimeLeft.Seconds;
Print(" Secs Left "+TimerSignal[0]);
With this I am printing the bar countdown on the Output screen and it is this countdown that I wish to pick up in my strategy.
My problem is that when I deploy the indicator I get the following error message :2022-03-15 13:04:08:004|3|4|Indicator 'MyBarTimer': Error on calling 'OnStateChange' method: Object reference not set to an instance of an object.
Can someone tell me what the problem is?
Comment