PureBytes Links
Trading Reference Links
|
/* 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);
Plot(0,"",7) ;
Title = "Ergodic SMI";
--- In amibroker@xxxxxxxxxxxxxxx, "geotrader358" <c_gt@xxxx> wrote:
>
> Hello All,
>
> I'm recovering from a crash and am trying to find AFL code for the
> following: StochasticRSI, Blau's Ergotic, Herrick Payoff Index
>
> I thought I had previously found them at the Amibroker Library.
>
> Any help appreciated.
>
> TIA,
>
> Charles Marchand
>
------------------------ 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/
|