[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[amibroker] Re: EMA CCI



PureBytes Links

Trading Reference Links

Dear Stephane

Thank you very much! I will try it!

Rgs,

Janco

--- In amibroker@xxxxxxxxxxxxxxx, "s.carrasset" <s.carrasset@xxxx> 
wrote:
> Hello,
> 
> that's the formula of cci, change it as you want
> function MeanDev( array, mean, range )
> {
>   result = 0;
> 
>    for( i = range ; i < BarCount; i++ )
>    {
>       result[ i ] = 0;
>       // the mean is not 'moving' over the range (outside the loop)
>       tm = mean[ i ];
>       for( j = 0; j < range; j++ )
>       {
>         result[ i ] = result[ i ] + abs( array[ i - j ] - tm );
>       }
>    
>     result[ i ] = result[ i ]/range;
>   }
>  
>   return result;
> }
> 
> n = 20;
> 
> SMATP = MA(Avg,n);//1,2
> 
> MD = MeanDev( Avg, SMATP, n );
> 
> CCIx = (Avg - SMATP) / (0.015 * MD);//5,6,7
> 
> Plot(CCIx,"CCIx",colorGreen,styleLine);
> 
> Plot(CCI(n),"CCI",colorRed,styleLine);
> 
> stephane
> janco0202 wrote:
> 
> > Dear Fellows,
> >
> > If I don't understand wrong, Lambert's CCI uses SMA in its 
formula. 
> > How can I transform the CCI, so that it uses EMA and not SMA?
> >
> > Thank you in advance for your time.
> >
> > Best regards,
> >
> > Janco
> >
> >
> >
> > Check AmiBroker web page at:
> > http://www.amibroker.com/
> >
> > Check group FAQ at: 
> > http://groups.yahoo.com/group/amibroker/files/groupfaq.html
> >
> >
> > *Yahoo! Groups Sponsor*
> > ADVERTISEMENT
> > click here 
> > 
<http://us.ard.yahoo.com/SIG=1291h62tu/M=295196.4901138.6071305.30011
76/D=groups/S=1705632198:HM/EXP=1096388870/A=2128215/R=0/SIG=10se96mf
6/*http://companion.yahoo.com> 
> >
> >
> >
> > -----------------------------------------------------------------
-------
> > *Yahoo! Groups Links*
> >
> >     * To visit your group on the web, go to:
> >       http://groups.yahoo.com/group/amibroker/
> >        
> >     * To unsubscribe from this group, send an email to:
> >       amibroker-unsubscribe@xxxxxxxxxxxxxxx
> >       <mailto:amibroker-unsubscribe@xxxxxxxxxxxxxxx?
subject=Unsubscribe>
> >        
> >     * Your use of Yahoo! Groups is subject to the Yahoo! Terms of
> >       Service <http://docs.yahoo.com/info/terms/>.
> >
> >
> >
> >
> > __________ NOD32 1.878 (20040927) Information __________
> >
> > This message was checked by NOD32 antivirus system.
> > http://www.nod32.com
> 
> 
> 
> 
> [Non-text portions of this message have been removed]



------------------------ Yahoo! Groups Sponsor --------------------~--> 
$9.95 domain names from Yahoo!. Register anything.
http://us.click.yahoo.com/J8kdrA/y20IAA/yQLSAA/GHeqlB/TM
--------------------------------------------------------------------~-> 

Check AmiBroker web page at:
http://www.amibroker.com/

Check group FAQ at: http://groups.yahoo.com/group/amibroker/files/groupfaq.html 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/amibroker/

<*> To unsubscribe from this group, send an email to:
    amibroker-unsubscribe@xxxxxxxxxxxxxxx

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/