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

Re: [amibroker] Aborting backtests



PureBytes Links

Trading Reference Links

I was just thinking the same thing. An EXIT/ABORT command would be nice.

My thought was to try adding a giant loop such as:

If (Cond == "time to Exit") //e.g., ticker doesn't exist
{
³Execution aborted²;
}
Else
{
All normal executable code goes here...
}

I haven¹t tried it yet and my concern is that AB will expect loop subscripts
in the regular code.
-- 
Terry


From: "danielwardadams" <danielwardadams@xxxxxxxxx>
Reply-To: amibroker@xxxxxxxxxxxxxxx
Date: Sun, 07 Nov 2004 14:44:12 -0000
To: amibroker@xxxxxxxxxxxxxxx
Subject: [amibroker] Aborting backtests


Is there any way I can prevent execution of backtests (or
explorations or scans) if certain requirements aren't met? I need to
have several parameters properly set before I backtest. But I'm
constantly running them without things set up properly and it isn't
obvious from the results.

I think what I'd like to do is inialize the parameters to some
illegal values and abort if they haven't been manually set before
backtesting. Would there any way to print an an error to the analysis
window before aborting?

Dan



------------------------ Yahoo! Groups Sponsor --------------------~--> 
$9.95 domain names from Yahoo!. Register anything.
http://us.click.yahoo.com/J8kdrA/y20IAA/yQLSAA/GHeqlB/TM
--------------------------------------------------------------------~-> 

Check AmiBroker web page at:
http://www.amibroker.com/

Check group FAQ at: http://groups.yahoo.com/group/amibroker/files/groupfaq.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/