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

Re: [amibroker] Re: 4 charts in one pane-- different symbols



PureBytes Links

Trading Reference Links

for a quick view also a slide show by Herman was nice. for Watch list,

===========================

// Slide show of stock charts.afl
RefreshRate        = Param("Chart Update rate",0,0,10,1);
RequestTimedRefresh( RefreshRate );
TimerTick        = Status("RedrawAction");
WLNum                = Param("WatchList Number",0,0,64,1);
MaxTickerNum         = Param("Max. Ticker Number",50,1,100,1);
List                 = CategoryGetSymbols( categoryWatchlist, WLNum );
TickerNum         = StaticVarGet("TickerNumber");
if( IsNull( TickerNum ) ) StaticVarSet("TickerNumber", 0);
if( TimerTick        )
        {
        TickerNum = StaticVarGet("TickerNumber");
        if( TickerNum <= MaxTickerNum ) 
StaticVarSet("TickerNumber",++TickerNum);
        else StaticVarSet("TickerNumber", 0);
        }
Ticker = StrExtract( List, Tickernum);
SetForeign(Ticker);
Plot(C,"",1,128);
Title = FullName()+"\n#"+NumToStr( TickerNum,1.0,False) +" "+Ticker;

// Check maximum number in Watchlist for MaxTickerNum
//for( MaxTickerNum = 0; ( StrExtract( List, MaxTickerNum ) ) != ""; 
MaxTickerNum++ )



_SECTION_BEGIN("Background");
SetChartBkColor(ParamColor("Öüíôï ",colorTeal)); // color of outer border
_SECTION_END();

===========================================
and this  Price( Foreign ) _x 3

_SECTION_BEGIN("Price_foreing_X3");

Ticker1 = ParamStr("Symbol 1", Name() );
PlotForeign( Ticker1, Ticker1, ParamColor("Color1", colorBlue ), 
ParamStyle("Style1") | styleLine );
Ticker2 = ParamStr("Symbol 2", Name() );
PlotForeign( Ticker2, Ticker2, ParamColor("Color2", colorBlack ), 
ParamStyle("Style2") | styleLine  );
Ticker3 = ParamStr("Symbol 3", Name() );
PlotForeign( Ticker3, Ticker3, ParamColor("Color3", colorYellow ), 
ParamStyle("Style3") | styleLine  );
_SECTION_END();
==========================================

Panos



At 05:11 AM 30-08-2008 30-08-2008, you wrote:


>Thanks Steve, that is what I was looking for. Right in front of my eyes.
>
>Dave
>
>--- In <mailto:amibroker%40yahoogroups.com>amibroker@xxxxxxxxxxxxxxx, 
>"Steve Dugas" <sjdugas@xxx> wrote:
> >
> > Hi - If I understand you correctly, AB comes with Price( Foreign ) in
>the Basic Charts folder. Drag/Drop 4 copies onto the same pane and then
>set them to different tickers. If the prices vary widely, you can add
>Style > OwnScale from the params to get all plots to fill the chart.
> >
> > Steve
> >


------------------------------------

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/