PureBytes Links
Trading Reference Links
|
I got this from somewhere, I don't remember where. It may or may not
be right.
Barry
Title = "Ergodic SMI";
/* William Blau's "Ergodic SMI" */
f0 = Param("StochMtn",8,1,100,1); // max = 1000 oniginally on all
and I reduced it to 100
f1 = Param("EMA 1",3,1,100,1);
f2 = Param("EMA 2",5,1,100,1);
f3 = Param("Signal",4,1,100,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+")",colorBrown, 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);
Plot(0,"",7) ;
--- In amibroker@xxxxxxxxxxxxxxx, "mueller_motorsports"
<rmuell24@xxxx> wrote:
>
> Does anybody have the AFL for the Stochastic Momentum Indicator,
or
> SMI?
>
> Thanks
> Randy
>
------------------------ Yahoo! Groups Sponsor --------------------~-->
Try Online Currency Trading with GFT. Free 50K Demo. Trade
24 Hours. Commission-Free.
http://us.click.yahoo.com/RvFikB/9M2KAA/U1CZAA/GHeqlB/TM
--------------------------------------------------------------------~->
Please note that this group is for discussion between users only.
To get support from AmiBroker please send an e-mail directly to
SUPPORT {at} amibroker.com
For other support material please check also:
http://www.amibroker.com/support.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/
|