...
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)
Thank you a lot
Pucio
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
{
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
Mladen
Do you have version where LSMA is excluded ? I mean on zero line is only EMA=34 ?
Best Regards
PucioThanks a lot, great great job and help.
Pucio
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.
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
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