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

[amibroker] Multiple Param() example with RSI()



PureBytes Links

Trading Reference Links

Hello,

Here is an example using RSI().

//Multiple Ticker Parameters
//coded by Anthony Faragasso
//March 9,2003

//example using RSI()

pds=Param("pds",14,5,21,1);//all other tickers
pdsndx=Param("pdsNDX",14,3,17,1);//select your ticker
pdsdji=Param("pdsDJI",14,4,15,1);//select your ticker
pdsgspc=Param("pdsGSPC",14,3,21,1);//select your ticker

x=IIf(Name()=="^NDX",pdsNDX,IIf(Name()=="^DJI",pdsDJI,IIf(Name()=="^GSPC",pdsGSPC,pds)));

//check Names to match above.

x=LastValue(x);

y=RSI(LastValue(x));

Color=colorBlue;//select your line color

Plot(y,"x",color,styleLine);//plots RSI()
PlotGrid(30);
PlotGrid(70);
GraphXSpace=10;

Title="..."+Name()+ EncodeColor(Color)+" - RSI ( "+WriteVal(x,1)+" )
"+EncodeColor(colorBlack)+"= "+ WriteVal(y,1.2)+" %";

Best Wishes
Anthony


Send BUG REPORTS to bugs@xxxxxxxxxxxxx
Send SUGGESTIONS to suggest@xxxxxxxxxxxxx
-----------------------------------------
Post AmiQuote-related messages ONLY to: amiquote@xxxxxxxxxxxxxxx 
(Web page: http://groups.yahoo.com/group/amiquote/messages/)
--------------------------------------------
Check group FAQ at: http://groups.yahoo.com/group/amibroker/files/groupfaq.html 

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