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

[amibroker] Re: Find RSI of a Specific Ticker ?



PureBytes Links

Trading Reference Links

Ara, thanks for your reply.
The explore code is just:

Ticker1 = "ZNZ7";
Ticker2 = "ZTZ7";

Filter = Name()== Ticker1 OR Name()== Ticker2;

AddColumn( RSI_ZNZ7, "RSI_ZNZ7", 1.2 );
AddColumn( RSI_ZTZ7, "RSI_ZTZ7", 1.2 );

So, results are shown for all dates,
and results show values of RSI_ZNZ7 *different*  for both tickers in 
all cases ?
Eg.

Ticker	Date/Time	        RSI_ZNZ7    RSI_ZTZ7
ZNZ7  10/25/06 8:20:00 AM	39.98	     35.83	
ZTZ7   10/25/06 8:20:00 AM	37.17	     35.83
ZNZ7  10/26/06 8:20:00 AM	50.11	     48.03	
ZTZ7   10/26/06 8:20:00 AM	49.29	     48.03	
ZNZ7  10/27/06 8:20:00 AM	56.03	     56.42
ZTZ7   10/27/06 8:20:00 AM	56.05	     56.42	
ZNZ7  10/30/06 8:20:00 AM	56.03	     55.79
ZTZ7   10/30/06 8:20:00 AM	56.05	     55.79	
ZNZ7  10/31/06 8:20:00 AM	64.37	     63.25	
ZTZ7   10/31/06 8:20:00 AM	65.20	     63.25

When I run on 2 stocks
I get similar results
except now both RSIs vary:

A	11/6/06 9:30:00 AM	47.95	45.01	
AA	11/6/06 9:30:00 AM	49.21	45.42
A	11/7/06 9:30:00 AM	54.31	50.50	
AA	11/7/06 9:30:00 AM	55.07	50.73	
A	11/8/06 8:00:00 AM	54.31	50.50	
AA	11/8/06 9:30:00 AM	57.77	53.57	
A	11/9/06 9:30:00 AM	57.61	53.84
AA	11/9/06 8:00:00 AM	57.77	53.57	
A	11/10/06 9:30:00 AM	61.21	55.56	
AA	11/10/06 8:00:00 AM	57.96	53.79		


=============================
Find RSI of a Specific Ticker ?


I would like to compare the RSI of specific tickers.

I am using:

SetForeign("ZNZ7");
RSI_ZNZ7= RSI(14);
RestorePriceArrays();

SetForeign("ZTZ7"); 
RSI_ZTZ7= RSI(14);
RestorePriceArrays();

But when I Explore
results show values of RSI_ZTZ7 the same    for both tickers in all 
cases;
results show values of RSI_ZNZ7 *different*  for both tickers in all 
cases.

Ticker	Date/Time	RSI_ZNZ7    RSI_ZTZ7
ZNZ7  10/25/06 8:20:00 AM	39.98	     35.83	
ZTZ7   10/25/06 8:20:00 AM	37.17	     35.83

What is the proper code to find and hold the fixed value of the first 
ticker ?

Thank you,
directaim


--- In amibroker@xxxxxxxxxxxxxxx, "Ara Kaloustian" <ara1@xxx> wrote:
>
> Your code looks OK, but it would be helpful if you included the 
exploration 
> code.
> 
> The results look a bit strange
> 
> 
> ----- Original Message ----- 
> From: "directaim" <directaim@xxx>
> To: <amibroker@xxxxxxxxxxxxxxx>
> Sent: Friday, August 17, 2007 8:45 AM
> Subject: [amibroker] Find RSI of a Specific Ticker ?
> 
> 
> >I would like to compare the RSI of specific tickers.
> >
> > I am using:
> >
> > SetForeign("ZNZ7");
> > RSI_ZNZ7= RSI(14);
> > RestorePriceArrays();
> >
> > SetForeign("ZTZ7");
> > RSI_ZTZ7= RSI(14);
> > RestorePriceArrays();
> >
> > But when I Explore
> > results show values of RSI_ZTZ7 the same    for both tickers
> > in all cases;
> > results show values of RSI_ZNZ7 *different*  for both tickers
> > in all cases.
> > Eg.
> >
> > Ticker Date/Time        RSI_ZNZ7    RSI_ZTZ7
> > ZNZ7  10/25/06 8:20:00 AM 39.98      35.83
> > ZTZ7  10/25/06 8:20:00 AM 37.17      35.83
> >
> > What is the proper code
> > to find and hold
> > the fixed value of the first ticker ?
> >
> > Thank you,
> > directaim




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 NEW RELEASE ANNOUNCEMENTS and other news always check DEVLOG:
http://www.amibroker.com/devlog/

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/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/amibroker/join
    (Yahoo! ID required)

<*> To change settings via email:
    mailto:amibroker-digest@xxxxxxxxxxxxxxx 
    mailto:amibroker-fullfeatured@xxxxxxxxxxxxxxx

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