It helps if you could provide what the error is.
I just tried it and get error on first line of the code "missing semi
colon on previous line, however I added it to the end of the first
line
#include @LastBacktestFormula;
and it works now
--
Cheers
Graham
AB-Write >< Professional AFL Writing Service
Yes, I write AFL code to your requirements
http://e-wire.net.au/~eb_kavan/ab_write.htm
On 12/21/05, Evo1 <Evo1@xxxxxxxxxxx> wrote:
Hi,
I checked the Individual Equity (code below) and I have an error message
(but I didt not succeed in solving it).
I am a bit surprized because as far I can recollect I neither altered the
code in the Formula Editor (nor the file itself in the Explorer).
But maybe I am getting old... :-[
Here is the faulty code :
#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 );
}
Thanks for your valuable help,
Evo1
Tomasz Janeczko a écrit :
Hello,
Equity relies on presence of
_Equity.afl in the "Formulas\Drag-drop folder.
Porfolio equity relies on presence of
_Portfolio Equity.afl in the "Formulas\Drag-drop" folder.
By default this folder is hidden to prevent accidential deletion
but you may have it deleted from explorer for example.
Best regards,
Tomasz Janeczko
amibroker.com
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
Visit your group "amibroker" on the web.
To unsubscribe from this group, send an email to:
amibroker-unsubscribe@xxxxxxxxxxxxxxx
Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
To unsubscribe from this group, send an email to:
amibroker-unsubscribe@xxxxxxxxxxxxxxx
Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
________________________________
------------------------ Yahoo! Groups Sponsor --------------------~-->
Try Online Currency Trading with GFT. Free 50K Demo. Trade
24 Hours. Commission-Free.
http://us.click.yahoo.com/RvFikB/9M2KAA/U1CZAA/GHeqlB/TM
--------------------------------------------------------------------~->
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/
<*> To unsubscribe from this group, send an email to:
amibroker-unsubscribe@xxxxxxxxxxxxxxx
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/