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

Re: [amibroker] Indicator Problem



PureBytes Links

Trading Reference Links

I assume you mean on the same panel according to the selected stock

if( MarketID()==1 ) x="NYSE";
if( MarketID()==2) x="Nasdaq";
if( MarketID()==3) x="Amex";
if( MarketID()==4) x="SP500";

Plotforeign(x,x,colorYellow,styleLine);

On 6/20/05, Ara Kaloustian <ara1@xxxxxxxxxx> wrote:
> Try:
> 
> NYSE  = Foreign("!NYA","Close");
> SPX     = Foreign("!SPX","Close");
> ... same with AMEX ...
> 
> Plot(NYSE,.... )
> 
> 
> ----- Original Message -----
> From: "b_cadvantag" <b_cadvantag@xxxxxxxxx>
> To: <amibroker@xxxxxxxxxxxxxxx>
> Sent: Sunday, June 19, 2005 8:46 PM
> Subject: [amibroker] Indicator Problem
> 
> 
> > I am using Quotes Plus  for data.  I am trying to get all Indexes to
> > plot on one chart (Nasdaq, NYSE, AMEX, SP 500)
> >
> > I tried both these codes below
> >
> > y = MarketID(1)=="NYSE";
> > n = MarketID(2)=="Nasdaq";
> >
> > x = MarketID(3)=="Amex";
> >
> > s = MarketID(4)=="SP500";
> >
> > //y = !NYA;
> > //x = !XAX;
> > //s = !SPX;
> > //n = !COMP;
> >
> >
> >
> > Plot(x,"AMEX",colorYellow,styleLine);
> > Plot(s,"SP500",colorRed,styleLine);
> > Plot(n,"Nasdaq",colorGreen,styleLine);
> > Plot(y,"NYSE",colorBlue,styleLine);
> >
> >
> >
> > What am I doing wrong??
> >
> > Thanks!
> > Brian
> >
> >
> >
> >
> > 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
> >
> >
> >
> >
> >
> >
> >
> 
> 
> 
> 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
> 
> 
> 
> 
> 
> 
> 
> 


-- 
Cheers
Graham
http://e-wire.net.au/~eb_kavan/


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/