| 
 PureBytes Links 
Trading Reference Links 
 | 
 Hi, 
  
I'm trying to modify the code to graph multiple symbols on one chart sheet ( S&P 500, Nasdaq and NYSE) but failed. Please shred some light for the little guy, thanks! 
  
regards, 
alex  
  
  
  
_N ( TickerList = ParamStr("Tickers", "^IXIC") );
NumBars =  20;
fvb =  Status("firstvisiblebar");
Plot ( 100 * ( C - C[ fvb ] ) / C[ fvb ], Name(), colorRed );
for ( i = 0; ( symbol = StrExtract( TickerList, i ) ) != ""; i++ )
{ 
fc =  Foreign( symbol, "C" );
if( ! IsNull( fc[ 0 ] ) )
{ 
Plot( 100 * ( fc - fc[ fvb ] )/ fc[ fvb ], symbol, colorLightOrange + ( (2*i) % 15 ), styleLine );
} 
} 
PlotGrid ( 0, colorYellow );
////////////////////  try but failed
for ( i = 0; ( symbol = StrExtract( TickerList, i ) ) != ""; i++ )
{ 
fc =  Foreign( symbol, "^GSPC" );
if( ! IsNull( fc[ 0 ] ) )
{ 
Plot( 100 * ( fc - fc[ fvb ] )/ fc[ fvb ], symbol, colorGreen + ( (2*i) % 15 ), styleLine );
} 
}  __________________________________________________ Do You Yahoo!? Tired of spam?  Yahoo! Mail has the best spam protection around  http://mail.yahoo.com 
  
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 
  |