Hello,
As error says, you need to havee
#include @LastBacktestFormula
statement
at the top of your Equity formula.
Default individual equity formula is:
#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 );
}
Best regards,
Tomasz Janeczko
amibroker.com
----- Original Message -----
From: "alberto_gerardi" <[EMAIL PROTECTED]>
To: <[email protected]>
Sent: Saturday, September 16, 2006 10:53 PM
Subject: [amibroker] Trouble with Individual Equity Chart
>I am backtesting a simple Trading System and when I try to see the
> individual equity (pressing Equity->Individual Equity in the AA) I get
> the error message:
>
> Your individual equity formula does not contain
> #include @LastBacktestFormula statement that is required for proper
> calculation of individual equity chart.
>
> I have read the manual for hints, and checked the standard file in
> Formulas\Equity\Individual.afl but everything seems okay. I've
> searched this group and seen that there are some problems with this
> file (a missing semicolon?), but in my version (4.80) the semicolon is
> regularly present.
> Where could be the problem?
> Thank you in advance.
> Albert
>
>
>
>
>
>
>
>
>
>
> 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 other support material please check also:
> http://www.amibroker.com/support.html
>
>
> Yahoo! Groups Links
>
>
>
>
>
>
>
>
>
>
>
>
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 other support material please check also:
http://www.amibroker.com/support.html
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/amibroker/
<*> Your email settings:
Individual Email | Traditional
<*> To change settings online go to:
http://groups.yahoo.com/group/amibroker/join
(Yahoo! ID required)
<*> To change settings via email:
mailto:[EMAIL PROTECTED]
mailto:[EMAIL PROTECTED]
<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/