Smoothed Fisher Transform of RSI - Problem with EA-calculation

 

I am working with an EA, using Smoothed Fisher Transform of RSI, developed by Vervoort.

In the calculation I have met a problem, which I maybe has looked into so long that I am completely blinded. In the calculation of Rainbow Indicator (as part of the Fisher Transform), the following problem arised:

........... 

  for (i = limit; i >= 0; i--)
      {
      rainbow[i] = (5 * wma0[i] + 4 * wma1[i] + 3 * wma2[i] + 2 * wma3[i] + wma4[i] + wma5[i] + wma6[i] + wma7[i] + wma8[i] + wma9[i]) / 20;
      }  


..........

 

Gives rainbow[i]=0.  

Why is rainbow[i] = 0, - when all the wma's [i] has a value   ????

See my complete EA attached
  

Best regards Hazzabo 

Files:
 
Hazzabo:

I am working with an EA, using Smoothed Fisher Transform of RSI, developed by Vervoort.

In the calculation I have met a problem, which I maybe has looked into so long that I am completely blinded. In the calculation of Rainbow Indicator (as part of the Fisher Transform), the following problem arised:

........... 

  for (i = limit; i >= 0; i--)
      {
      rainbow[i] = (5 * wma0[i] + 4 * wma1[i] + 3 * wma2[i] + 2 * wma3[i] + wma4[i] + wma5[i] + wma6[i] + wma7[i] + wma8[i] + wma9[i]) / 20;
      }   

Please edit your post . . . 

 

Use SRC 

 

Your array,  rainbow,  has a size of 0 elements . . .

double ema0[], ema1[],    rainbow[]
 
RaptorUK:

Please edit your post . . . 

 

 

 

Your array,  rainbow,  has a size of 0 elements . . .

 

Thanx a lot...
Reason: