ATR[] tmp = new ATR[cacheATR == null ? 1 : cacheATR.Length + 1];
if (cacheATR != null)
cacheATR.CopyTo(tmp, 0);
tmp[tmp.Length - 1] = indicator;
cacheATR = tmp;
even I remove this one and compile it, NT always generate this array. Is this an indicator object ? I think this array cause a lot memory allocation when this indicator is running or being called from a strategy. This array code slows down NT when running this indicator. I believe all of NT indicators have this array code.
Comment