I'm developing an indicator which calculates different things on multiple timeframes. Therefore I'm calling the Add method in the initialize method as described everywhere. Here the heavy reduced code:
protected override void Initialize() { try { Add(PeriodType.Day, 1); } catch (Exception e) { }
For example the standard value for variable lets create 5 dataseries. I can change this parameter of the indicator and add a sixt one. But then I cannot change it back to five or I cannot change it in the beginning to four dataseries as the initialize method gets called very early and has already created five dataseries.
As soon as I try to reduce it the chart keeps blank without any error or anything.
Can somebody help me how to approach this problem?
Thank you very much,
Araksor
Comment