I recall that I got it to work if backtesting direct in AFL, but will not work if using OLE to backtest from script file
One idea is something I do in these cases is run from script to do backtest then have another AFL to copy the ~~~equity symbol
--
Cheers
Graham
AB-Write >< Professional AFL Writing Service
Yes, I write AFL code to your requirements
http://www.aflwriting.com
On 07/04/07, Herman <psytek@xxxxxxxx> wrote:
it would seem that using optimize to run the system first Long and then Short and then summing the equities would at least give me an equity curve to look at. I found the code to copy the ~~~Equity in the Knowledge base but it doesn't want to work. How does one use this code?
I would just like to stick functionally identical code to the end of my portfolio system's code...is the bo. stuff needed if i run my BT from the AA?
if( Status("action") == actionPortfolio )
{
bo = GetBacktesterObject();
bo.Backtest();
AddToComposite( Foreign("~~~EQUITY","C"),
"~~~MY_EQUITY_COPY", "X",
atcFlagDeleteValues | atcFlagEnableInPortfolio );
}
herman
|