Indicators: Woodies CCI - page 2

 
is this indicator available for MT4 please ?
 
DuongGia #:

Hi Mladen.

I see lsma display is not the same as other woodiescci indicators that I have.

For example: 3 images below are LSMA 25. But picture 3 is different from images 1 and 2.

Can you explain?


Hello, I am not a programmer, but seems to me that there is really an issue with the LSMA line. I just added to a chart the originals LSMA and SMA and visually seems that the dots they represents a 25 SMA, instead of a 25 LSMA.

I am wrong in something?

Files:
EURUSDH1.png  62 kb
 

I finally understood the problem, the formula of the LSMA is correct, but the buffers at line 193 are inverted.
Just change:

double lsma=3.0*LsmaMABuffer1[i]-2.0*LsmaMABuffer2[i];

with:

double lsma=3.0*LsmaMABuffer2[i]-2.0*LsmaMABuffer1[i];


and the LSMA will be plotted correctly :)
Reason: