Individual and Portfolio Equity

Amibroker 6.30.5 64 bit

I am confused with the equity curves produced from selecting either the 'Portfolio' or 'Individual' equity options under the 'Analysis' tab.

I ran a back test on a single security. I request both these equity outputs and here is the screen I see:

image

The green 'Portfolio' curve shows the correct equity for the stock (as it was only a test on a single stock).

However, I have no idea what the red equity is. It reads 'AABA - Equity' (ie, the individual equity), but it is not right, showing $1.355M. Also, this red curve changes when you select another stock - again, I am not sure what it means. The AFL for the 'Individual' Equity (which is the standard code) is as follows:

_SECTION_BEGIN("Individual");
#include @LastBacktestFormula
MaxGraph=0;GraphXSpace=5;
GraphZOrder=1;
Plot( Equity( 0, -2 ), "Equity", -8, styleArea );

if( ParamToggle("Show Buy-and-Hold?", "No|Yes", 1 ) )
{
 /* now buy and hold simulation */
 Short=Cover=0;
 Buy=Status("firstbarintest");
 Sell=Status("lastbarintest");
 SetTradeDelays(0,0,0,0); PositionSize = -100;
 ApplyStop(0,0,0,0);
 ApplyStop(1,0,0,0);
 ApplyStop(2,0,0,0);
 Plot( Equity( 0, -2 ), "Buy&Hold", -9 );
}
_SECTION_END();

(a) What does the red 'Individual' equity represent and why does it change from stock to stock (without another back test)?

(b) Is it possible to run a back test on a protfolio, market etc and then see the individual equity curves stock-by-stock?

Thx, JonS

This topic was automatically closed 100 days after the last reply. New replies are no longer allowed.