Hi friends
Here is afl for nifty and a call of nifty
I like to add a nifty put also.
The idea is to see both call and put on same chart.
can anybody modify the code please
my code follows as in amibroker
some problem is there.
regards
ford
Here is afl for nifty and a call of nifty
I like to add a nifty put also.
The idea is to see both call and put on same chart.
can anybody modify the code please
my code follows as in amibroker
some problem is there.
regards
ford
HTML:
_SECTION_BEGIN("Relative Performance");
_N( TickerList = ParamStr("Tickers", "NIFTY,NIFTY30MAY2013 5700.00CE ") );
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();