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

RE: [amibroker] Custom Backtester Procedure



PureBytes Links

Trading Reference Links

 
Dingo --
Thanks for your response.  It got me thinking about my problem (1).  Work around is to call both trade.AddCustomMetric("Profit so far", PosSumProfit) and trade.AddCustomMetric("Loss so far", NegSumProfit) for every trade.  This actually saves some code because it gets rid of some of the for() loops.
 
As for problem (2), I will send a suggestion to AB.
-- Keith
 
-------------- Original message --------------
From: "dingo" <dingo@xxxxxxxxxxx>

AFAIK both observations are by design.
 
Can you specify the columns? Not in AB but you can write a script to export the results and delete or hide the columns in Excel with a macro.
 
d


From: amibroker@xxxxxxxxxps.com [mailto:amibroker@yahoogroups.com] On Behalf Of Keith McCombs
Sent: Tuesday, February 27, 2007 1:46 AM
To: amibroker@xxxxxxxxxps.com
Subject: Re: [amibroker] Custom Backtester Procedure

 
Ray --
I asked a very similar question two days ago, but unfortunately have received no replies to it.  I am repeating it below in hopes that someone will be able to answer both our questions.
========== Original Questions =============
1.  Using custom backtester, high level, I tried to add two columns to the AA view list.
      first column using:  trade.AddCustomMetric("Profit so far", PosSumProfit);
      second column using:  trade.AddCustomMetric("Loss so far", NegSumProfit);
However, what I get instead is one column with label for which ever happened first.  It contains both correct "Profit so far" and "Loss so far" values.
 
2.  I do not want all of the default columns, just ones I specify.  Can I do this with high level custom backtester? If not, then with what?
====================================
Ray, I placed the trade.AddCustomMetric() statements inside the for() loops.  This places the column(s) on the AA tade list.  Using bo.AddCustomMetric() after the for() loops places the results on the Statistics page of the Backtest Report (the backtest has completed).
 
-- Keith
 
-------------- Original message --------------
From: "me_rayme" <rayme9@xxxxxxx>

I have been studying it at
http://www.amibroker.com/guide/a_custombacktest.html

I have put my software in it as shown in the example by Paul Ho. It
works BUT all it shows is 3 items in the REPORT, Ave Profit/loss %,
AveProfit %, AveLoss %.

What I want is to revise columns in the AA columns like Date, Ex date
to change WIDTH to show minutes ,etc and delete columns that I do not
require.

Can this be done? Does anybody have software to do this.

Ray

 
 

--

.

--

__._,_.___

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 NEW RELEASE ANNOUNCEMENTS and other news always check DEVLOG:
http://www.amibroker.com/devlog/

For other support material please check also:
http://www.amibroker.com/support.html





SPONSORED LINKS
Investment management software Investment property software Investment software
Investment tracking software Return on investment software

Your email settings: Individual Email|Traditional
Change settings via the Web (Yahoo! ID required)
Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured
Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe

__,_._,___