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

[amibroker] Re: plot charts of different symbols in panes



PureBytes Links

Trading Reference Links

Sanjayt is right. Just study SetForeign() and that should do. No need to try digging out those older posts, it's actually quite straight forward.

Please remember, however, that those "chart sheets" are primarily design to display different indicators for a single symbol. What you are trying to do is considered a grey area of AB functionality. If you use SetForeign() then the only way to change the ticker is to do it from AFL, eg. using ParamStr() function (then use r-click - parameters). Here is example (change "SPY" to any ticker you want):

/*** START ***/

// Plot foreign ticker

tkr = ParamStr("Ticker", "SPY");

SetForeign(tkr);

Title = 
"\\c25"+Name()+
"\\c11 "+Interval(2)+" "+Date()+
"\\c34 "+FullName()+
"\\c-1 O="+O+
" H="+H+
" L="+L+
" C="+C;

Plot(C, "", colorDarkYellow, styleCandle);
SetChartOptions(0, chartShowDates);

/*** END ***/

Lester


--- In amibroker@xxxxxxxxxxxxxxx, "Sanjay Thakkar" <thakkarps@xxx> wrote:
>
> Hello
> 
> Try with Setforeign.
> It will work.
> 
> Regards
> -sanjayt
> 
> --- In amibroker@xxxxxxxxxxxxxxx, "richcb750" <rwennis@> wrote:
> >
> > Thanks for your advice, but I tried that and it seems like the 
> symbol
> > stays the same for each of the different sheets.  How can I make 
> each
> > sheet display a different symbol?
> > 
> > Thanks.
> > 
> > --- In amibroker@xxxxxxxxxxxxxxx, "Mohammed" <softnews2003@> wrote:
> > >
> > > Hi,
> > > 
> > > If I understood your question this is the answer.
> > > 
> > > In sheet one add candlestick chart and in sheet tow add bar 
> chart. Than 
> > > select (File --> New --> Linked chart).
> > > Than form Window select tile horizontally.
> > > 
> > > 
> > > Regards




------------------------ Yahoo! Groups Sponsor --------------------~--> 
Transfer from your equities account.  
Receive up to $1,000 from GFT. Click here to learn more.
http://us.click.yahoo.com/aZttyC/X_xQAA/cosFAA/GHeqlB/TM
--------------------------------------------------------------------~-> 

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/