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

[amibroker] Re: New file uploaded to amibroker



PureBytes Links

Trading Reference Links


The  new RSI_EMAs may be

*fast when o/b, slow when o/s
*fast when o/s, slow when o/b
*always fast
*always slow
and match to the trading style.

t=Param("t",10,10,30,5); 
y=RSI(t)/100;RSIema1=C;RSIema2=C;
for(i=t;i<BarCount;i++)
{
RSIema1[i]=y[i]*C[i]+(1-y[i])*RSIema1[i-1];
RSIema2[i]=(1-y[i])*C[i]+y[i]*RSIema2[i-1];
}
Plot(C,"C",1,8);
Plot(RSIema1,"RSI_ema1",colorRed,1);//fast when o/b, slow when o/s
Plot(RSIema2,"RSI_ema2",colorBrightGreen,1);//fast when o/s, slow 
when o/b
Plot(IIf(RSI(t)>50,RSIema1,RSIema2),"fast",colorYellow,8);//always 
fast
Plot(IIf(RSI(t)<50,RSIema1,RSIema2),"slow",colorBlue,8);//always slow
//Plot(RSI(t),"RSI",2,styleOwnScale);

Dimitris
--- In amibroker@xxxxxxxxxxxxxxx, "DIMITRIS TSOKAKIS" <TSOKAKIS@xxxx> 
wrote:
> 
> The respective StochD-adjustable EMA is also interesting.
> 
> //The StochD-adjustable EMA, by D. Tsokakis, Oct2004
> t=Param("t",10,10,30,5); 
> y=StochD(t)/100;StochD_ema1=C;StochD_ema2=C;
> for(i=t+6;i<BarCount;i++)
> {
> StochD_ema1[i]=y[i]*C[i]+(1-y[i])*StochD_ema1[i-1];
> StochD_ema2[i]=(1-y[i])*C[i]+y[i]*StochD_ema2[i-1];
> }
> Plot(C,"C",1,8);
> Plot(StochD_ema1,"StochD_ema1",colorRed,1);
> Plot(StochD_ema2,"StochD_ema2",colorBrightGreen,1);
> //Plot(StochD(t),"StochD",colorWhite,styleOwnScale);
> 
> --- In amibroker@xxxxxxxxxxxxxxx, amibroker@xxxxxxxxxxxxxxx wrote:
> > 
> > 
> > Hello,
> > 
> > This email message is a notification to let you know that
> > a file has been uploaded to the Files area of the amibroker 
> > group.
> > 
> >   File        : /RSIema.txt 
> >   Uploaded by : dtsokakis <TSOKAKIS@xxxx> 
> >   Description : Two RSI-adjustable EMAs 
> > 
> > You can access this file at the URL:
> > http://groups.yahoo.com/group/amibroker/files/RSIema.txt 
> > 
> > To learn more about file sharing for your group, please visit:
> > http://help.yahoo.com/help/us/groups/files
> > 
> > Regards,
> > 
> > dtsokakis <TSOKAKIS@xxxx>





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