All CCI into All WoodieCCI. A Coder needed

 

Hello,

Here is All CCI indicator created by mladen. If any Coder would add next CCI we can have All WoodieCCI indicator. Nice would be to have also histograms.

Pucio

Files:
allcci.gif  19 kb
 

...

All Woodies CCI

This version is without the yellow separating bar in order to show ema positions too (not enough buffers, linuxser knows the best how much pain caused him to sacrifice something - he decided to sacrifice the EMA, I decided to sacrifice the yellow bar)

Files:
 

Thank you a lot

Pucio

 

...

Just in case : the "yellow bar" version - EMA excluded

 

mladen

Nice work as usual....

 

Mladen,

Thank you, great job

Pucio

 

Question

Mladen

Do you have version where LSMA is excluded ? I mean on zero line is only EMA=34 ?

Best Regards

Pucio

 

Change the SetLsma in the "yellow bar" version (starts at line 398) from

void SetLsma(int i)

{

double ma1=iMA(NULL,0,LSMAPeriod,0,MODE_SMA ,LSMAPrice,i);

double ma2=iMA(NULL,0,LSMAPeriod,0,MODE_LWMA,LSMAPrice,i);

double lsmaValue = 3.0*ma2-2.0*ma1;

buffer5 = EMPTY_VALUE;

buffer6 = EMPTY_VALUE;

if (Close > lsmaValue) buffer5 = 0.00;

if (Close < lsmaValue) buffer6 = 0.00;

}

[/php]to

[php]void SetLsma(int i)

{

double emaValue = iMA(NULL,0,LSMAPeriod,0,MODE_EMA,LSMAPrice,i);

buffer5 = EMPTY_VALUE;

buffer6 = EMPTY_VALUE;

if (Close > emaValue) buffer5 = 0.00;

if (Close < emaValue) buffer6 = 0.00;

}

that will show you you ema instead of lsma

PS: use LSMAPeriod and LSMAPrice to set parameters for the EMA (otherwise replace every occurrence of LSMAPeriod with EMAPeriod and LSMAPrice with EMAPrice if you want it to be "absolutely logical" )

regards

mladen

Pucio:
Mladen

Do you have version where LSMA is excluded ? I mean on zero line is only EMA=34 ?

Best Regards

Pucio
 

Thanks a lot, great great job and help.

Pucio

 
mladen:
All Woodies CCI This version is without the yellow separating bar in order to show ema positions too (not enough buffers, linuxser knows the best how much pain caused him to sacrifice something - he decided to sacrifice the EMA, I decided to sacrifice the yellow bar)

And still causing pain specially for thus who WE are amateurs coders and the simple way is to buffering all. . Let's wait MQL5.

 

That`s great !

Let`s beat the market.

Files:
1.jpg  15 kb