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

Re: [amibroker] Here it is : Multiple Param() for Tickers



PureBytes Links

Trading Reference Links

Bob,

Thank you....Here is an example using the RSI() function.

//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)+" %";

Anthony

Bob Jagow wrote:

>  Works great, Anthony.
>
> Thanks,
> Bob
>
> -----Original Message-----
> From: Anthony Faragasso [mailto:ajf1111@xxxxxxxx]
> Sent: Sunday, March 09, 2003 5:10 PM
> To: amibroker@xxxxxxxxxxxxxxx
> Subject: [amibroker] Here it is : Multiple Param() for Tickers
>
>
> Hello Group
>
> Here is a sample  code that you should be able to build on  for
> multiple
> Param()'s.
>
> I have used a moving average as an example....First, insert your
> selected
> tickers and Parameter values.....load into Indicator builder and click
>
> apply
> ...then right click on the chart and select parameters......
>
> Let me know.
>
> Anthony
>
> //Multiple Ticker Parameters
> //coded by Anthony Faragasso
> //March 9,2003
>
> pds=Param("pds",5,5,35,1);//This setting is for all other tickers
> pdsndx=Param("pdsNDX",3,3,10,1);//Special ticker
> pdsdji=Param("pdsDJI",4,4,28,1);//Special ticker
> pdsgspc=Param("pdsGSPC",3,3,35,1);//Special ticker
>
>
> =MA(C,IIf(Name()=="^NDX",pdsNDX,IIf(Name()=="^DJI",pdsDJI,IIf(Name()==
>
> ^GSPC",pdsGSPC,pds))) );
> //Check the names above to match your selected tickers
> Plot(C,"close",colorBlack,styleCandle);
> Plot(x,"x",colorYellow,styleLine);
>
> 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/
>
>
>
>                    Yahoo! Groups Sponsor
                        ADVERTISEMENT


>
> 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 the Yahoo! Terms of Service.


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/