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 amibroker@yahoogroups.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
> >
> >
>






------------------------ Yahoo! Groups Sponsor --------------------~--> 
Something is new at Yahoo! Groups.  Check out the enhanced email design.
http://us.click.yahoo.com/SISQkA/gOaOAA/yQLSAA/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:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 


Reply via email to