I see both sides of the discussion so maybe I can add something to bridge
the gap .

 

While I agree with TJ that, as presented in the backtest report or AA in an
optimization output line, system performance metrics are scalars i.e. single
numbers as of the end of some backtest or some single combination of
parameter values from an optimization, one could via the symbol ~~~Equity
look at these as an array of values that can be evaluated bar by bar .

 

For example Net Profit has a value all along the array represented by the
~~~Equity symbol.

 

If one also needs to be able to have available Trade based performance
metrics then one would also have to have available to them the list of
Trades from a backtest so that as of some particular bar one could calculate
whatever performance metric(s) one was interested in .

 

There are undoubtedly many uses for this sort of information one of which I
touched on briefly the other day i.e. When during the OOS period should we
programmatically decide that our system needs to be reoptimized and as
result WF our IS to that point and do so .

 

While I have done these sorts of things that are described above in IO and
other places, I would add that I have not for the most part done them
directly in AFL because as TJ states you may very well not get what you are
looking for.

 

If this is the kind of thing you are after it is not that difficult to do .

 

>From an external script it is relatively simple to:

 

-          Run a backtest . This yields the Trade List which can be exported
from AA to a CSV file.  

-          It also yields the equity curve in the symbol ~~~Equity which can
be easily exported via a "manufactured" AFL i.e. have the script create the
AFL, load it and run it.  

-          This then provides in two CSV files everything that one needs to
calculate any and all performance metrics one is interested in bar by bar.  

-          The results of these calculations can be used to drive indicators
in AB or as all or part of a decision making process about what actions to
perform in some other type of AFL in AB.

 

  _____  

From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf
Of Tomasz Janeczko
Sent: Sunday, May 18, 2008 10:58 AM
To: [email protected]
Subject: Re: [amibroker] Re: System Performance Indicators [was: Can someone
fix this OLE code?]

 

You guys don't get it at all. 

 

Most metrics are SCALARS (single number) !

Your plots will look like this:

 

Plot( 0.8, "Sharpe Ratio", colorRed );

 

These metrics DO NOT CHANGE over time because they are all calculated ONCE
when backtest is complete

and result is single number (scalar), *not* array.

 

Best regards,
Tomasz Janeczko
amibroker.com

----- Original Message ----- 

From: Phsst <mailto:[EMAIL PROTECTED]>  

To: [EMAIL PROTECTED] <mailto:[email protected]> ps.com 

Sent: Sunday, May 18, 2008 3:36 PM

Subject: [amibroker] Re: System Performance Indicators [was: Can someone fix
this OLE code?]

 

Herman,

Your case for System Performance Indicators is a good one.

A further idea...  there should be no need for User code to accomplish this.
The plots should be a native feature of AB (just like the Equity plot).

Instead of plotting "flat lines" for single numbers, gfx Horizontal plots of
each performance metric could be presented against a "good / bad scale"
defined in the form of a Param value for each performance metric that the
User could alter from a base set of default values. Of course the gradient
colors of the plots would go from red (bad) to green (good). 

For example, the default Param for Sharpe Ratio could be 1.00, and some
Users might want to use  .80 as a Param value where the gradient color
starts changing to green.

My two cents worth.





 


  _____  

I am using the free version of SPAMfighter for private users.
It has removed 455 spam emails to date.
Paying users do not have this message in their emails.
Try SPAMfighter <http://www.spamfighter.com/len>  for free now!

Reply via email to