I have an indicator applied to a 1 minute chart and I added a second time frame : 50 ticks. (Add(PeriodType.Tick,50)).
Now I get an Object reference not set to an instance of an Object error..
I think that it must be because I am really initiating variables with the BarsInProgress = 0 ( which if I am not mistaken is the Chart setup (1 minute) but the BarsInProgress == 1 the 50 ticks period gets run before BarsInProgress == 0.
Am I on the right track ? if yes how could I solve this problem ?
Thanks
Bernard

Comment