Steve --
Sorry I didn't understand that you wanted to see charts on the backtest report.  I don't think you can do it at this time.

However, if you want to see the equity charts for many different stocks right after you do a backtest you can do the following:
1.  Do AA>BackTest>Individual Backtest (not the default).
2.  Then AA>Equity>Individual Equity.
Of coarse, this only displays results of most recent backtest and doesn't add anything to the Report.

BTW, You can do AA>Backtest>Portfolio (default) followed be AA>Equity>Individual Equity, but I don't understand the resulting charts (arrows don't match the tabulate trades).

You might want to revisit my original suggestion.  It is much, much, quicker than running backtests all the time.
-- Keith

sslack88 wrote:

Hi Keith,

Thanks for the reply, but I think this code plots an equity curve on
the chart window. I want to create a chart in the backtest report.
See below (I added some more text for clarification)

Is there any way to add an equity curve chart to the backtest report
on the charts tab? (same tab as the profit distribution, Max.
Adverse Excursion distribution, and Max. Adverse Excursion
distribution)

This would be awesome because you could run an individual backtest
on multiple symbols and then view the results of each test using the
report explorer and see the equity curve for each test.

Best,
Steve

--- In [EMAIL PROTECTED]ps.com, Keith McCombs <[EMAIL PROTECTED].> wrote:
>
> Steve --
> Copy and paste the code below at the end of your system.
Next 'insert'
> indicator to see a new chart (it will be either empty or look just
like
> the old chart. Right click on the new chart and select
> Parameters>Axis&Grid. Note the new Chart ID at the bottom of the
box.
> Change 1405 in second line of code to your new Chart ID.
>
> If you don't want your old 'plot' displayed in this new chart, get
the
> Chart ID for old chart and insert your old 'plot' statements in
> if(GetChartID()== (old Chart ID)){ old plot statements }
>
> The best part is that you don't even have to run a back test for
this to
> work. However, be careful, it will use the "settings" and dates
from
> the most recent AA that you run. You can overcome some of this
with
> SetOption(), SetTradeDelays(), and a few others. (Gosh, I wish TJ
would
> come up with one-and-only-one way of setting *all* the AA settings
from
> within .afl code.)
>
> // plot Equity
> if(GetChartID()==1405){
> // GraphXSpace=5;
> GraphZOrder=1;
> Plot( Equity(2, -2), "Equity", colorRed, styleThick);
>
> shape = Buy * shapeUpArrow + Sell * shapeDownArrow;
> PlotShapes( shape, IIf( Buy, colorGreen, colorRed ), 0 );
> // now buy and hold simulation
> Short=Cover=0;
> // Buy=Status("firstbarintest"); // uncomment to display B&H
from
> beginning of time.
> Sell=Status("lastbarintest");
> ApplyStop(0,0,0,0);
> ApplyStop(1,0,0,0);
> ApplyStop(2,0,0,0);
> SellPrice = Close; // Correct SellPrice for buy and hold
> Plot( Equity( 0, -2 ), "Buy&Hold", colorBlue, styleThick);
> }
>
> sslack88 wrote:
> >
> > Is there any way to add an equity curve chart to the backtest
report
> > on the charts tab?
> >
> > This would be awesome because you could run an individual
backtest on
> > multiple symbols and then view the results of each test using the
> > report explorer.
> >
> > Best,
> > Steve
> >
> >
>

__._,_.___

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






SPONSORED LINKS
Investment management software Real estate investment software Investment property software
Software support Real estate investment analysis software Investment software


YAHOO! GROUPS LINKS




__,_._,___

Reply via email to