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

Re: [amibroker] Ergodic CCI



PureBytes Links

Trading Reference Links


I got this formula that you could adapt...

//ERGODIC SMI

/* William Blau's "Ergodic SMI" */

f0 = Param("StochMtn",8,1,1000,1);
f1 = Param("EMA 1",3,1,1000,1);
f2 = Param("EMA 2",1,1,1000,1);
f3 = Param("Signal",4,1,1000,1);

StMtm = Close - 0.5*(IIf(f0==1,H,HHV(Close,f0))+IIf(f0==1,L,LLV(Close,f0)));
Numer = EMA(EMA(StMtm,f1),f2);
Denom = 0.5 *
EMA(EMA(IIf(f0==1,H,HHV(Close,f0))-IIf(f0==1,L,LLV(Close,f0)),f1),f2);

SMI = 100*(Numer / Denom);
SMI_SignalLine = 100*(MA(Numer,f3) / MA(Denom,f3));

Plot(SMI,"SMI("+f0+","+f1+","+f2+")",colorYellow,styleLine);
Plot(SMI_SignalLine ,"SMI SignalLine ("+f3+")",colorBlue,styleLine);

VarLowExtreme = LLV(SMI,10);
Plot(VarLowExtreme,"",colorGreen,styleThick);

VarLowExtreme2 = LLV(SMI,50);
Plot(VarLowExtreme2,"",colorDarkGreen,styleDots);

VarHighExtreme = HHV(SMI,10);
Plot(VarHighExtreme,"",colorRed,styleThick);

VarHighExtreme2 = HHV(SMI,50);
Plot(VarHighExtreme2,"",colorDarkRed,styleDots);

Title = "Ergodic SMI";




binjobingo a écrit :
>  
> 
> Can anyone please post the formula for Ergodic CCI.It is used heavily in 
> Metatrader forums
> 
> pq=3
> pr=8
> ps=5
> trigger=3
> 
> I tried to Write the afl by comparing with Ergodic TSI but could not get 
> the desired result
> 
> Regards
> 
> 



------------------------------------

**** IMPORTANT PLEASE READ ****
This group is for the discussion between users only.
This is *NOT* technical support channel.

TO GET TECHNICAL SUPPORT send an e-mail directly to 
SUPPORT {at} amibroker.com

TO SUBMIT SUGGESTIONS please use FEEDBACK CENTER at
http://www.amibroker.com/feedback/
(submissions sent via other channels won't be considered)

For NEW RELEASE ANNOUNCEMENTS and other news always check DEVLOG:
http://www.amibroker.com/devlog/

Yahoo! Groups Links

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

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/amibroker/join
    (Yahoo! ID required)

<*> To change settings via email:
    mailto:amibroker-digest@xxxxxxxxxxxxxxx 
    mailto:amibroker-fullfeatured@xxxxxxxxxxxxxxx

<*> 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/