Hi.I have my iCustom indicator. When I run my Expert include my indicator I got the message : "indicator is too slow, 3323 ms. rewrite the indicator, please"What should I do to solve this problem
int counted = IndicatorCounted();
int lookback = ... // iMA(period) has look back of period.
// buffer[i+2] has look back of 2
// use maximum of all.
for(int iBar = Bars - MathMax(lookback, counted); iBar >= 0; --iBar) ...