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

Re: [amibroker] How to draw two or more charts together?



PureBytes Links

Trading Reference Links

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 -----
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.

__._,_.___

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




Your email settings: Individual Email|Traditional
Change settings via the Web (Yahoo! ID required)
Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured
Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe

__,_._,___