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>[email protected], 
>"Steve Dugas" <[EMAIL PROTECTED]> 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
> >

Reply via email to