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

[amibroker] Individual.afl



PureBytes Links

Trading Reference Links

Hello,

I am getting the following error message when trying to plot the 
individual equity:


Your individual equity formula does not contain
#include @LastBacktestFormula
statement that is required for proper calculation of individual 
equity chart.

Please replace the formula used by default one shipped with AmiBroker 
that can be found in Formulas\Equity\Individual.afl file.


This is the content of my Individual.afl file:

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

I found it in message #101356 but the problem persists.

Is there an obvious problem?

Thanks,

Pavel.


Content-Description: "AVG certification"
No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.5.432 / Virus Database: 268.17.28/672 - Release Date: 2/6/2007 10:22 AM