incorrect start position 2365 with Ehler transformation indicator

Back to topics list To post a new topic, please log in or register
avatar
249
Alberto_jazz 2016.06.30 14:19
 


Hi all, I have this error when I load the attached indicator on a median renko chart.

incorrect start position 2365 for Array/Minum (or Array/Maximum) function

Could you help me?

Thank you!

Attached files:
  ehlersqfisheritransformvhisto.mq4  (3.60 KB)
avatar
65
jamescater 2016.06.30 15:35 #
 
Alberto_jazz:


Hi all, I have this error when I load the attached indicator on a median renko chart.

incorrect start position 2365 for Array/Minum (or Array/Maximum) function

Could you help me?

Thank you!

for(i = limit-1; i >= 0; i--)


you should start your for loop from limit-1

avatar
12983
WHRoeder 2016.06.30 16:21 #
 
Prices[i] = iMA(NULL,0,1,0,MODE_SMA,PriceType,i);

Split it into two loops. One to fill Prices. The look back is zero.


double MaxH = Prices[ArrayMaximum(Prices,period,i)];
double MinL = Prices[ArrayMinimum(Prices,period,i)];
One for the rest. The look back is period.
Do your lookbacks correctly.
avatar
249
Alberto_jazz 2016.07.01 13:20 #
 
Thank you very much!
Back to topics list  

To add comments, please log in or register