Hello,

RelStrength is the Syntax to be used.

// Example from Help File modified for Personal use. Change Tickers & Plot for 
your charts.
_SECTION_BEGIN("Relative Performance");

_N( TickerList = ParamStr("Tickers", 
"Nifty-I,BajajAuto,HeroHonda,TvsMotor,KineticMot") );

NumBars = 20;

fvb = Status("firstvisiblebar");

// Plot( 100 * ( C - C[ fvb ] ) / C[ fvb ], Name(), colorBlue );

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 );

_N( Title = "{{NAME}} - Relative Performance [%]: {{VALUES}}" );

_SECTION_END();

Cheers

Prashanth


  ----- Original Message ----- 
  From: archstone2003 
  To: [email protected] 
  Sent: Wednesday, November 14, 2007 6:15 AM
  Subject: [amibroker] How to draw two or more charts together?


  Like the "compare to" features in Yahoo Finance? When two or more 
  charts are displayed together, I would want to draw their percent 
  changes, not the absolute changes (as each symbol will have different 
  values and the difference of the values are too big to be fit together).

  Thanks.



   

Reply via email to