I would seem that Amibroker is expeing the argument ( in this case
ThisContractNameIn ) to be numeric (variant).
Try this AddCustomMetric("Contract (IN) " + ThisContractNameIn, 0);
What I'm trying to do is make the variable part of the title.
>From the Porfolio Backtester Interface Reference Guide:
bool AddCustomMetric( string Title, variant Value, [optional] variant
LongOnlyValue, [optional] variant ShortOnlyValue , [optional] variant
DecPlaces = 2 )
This method adds custom metric to the backtest report, backtest "summary"
and optimization result list. Title is a name of the metric to be displayed
in the report, Value is the value of the metric, optional arguments
LongOnlyValue, ShortOnlyValue allow to provide values for additional
long/short-only columns in the backtest report. Last argument DecPlaces
controls how many decimal places should be used to display the value.
> -----Original Message-----
> From: [email protected]
> [mailto:[EMAIL PROTECTED] On Behalf Of PKJR
> Sent: Wednesday, July 19, 2006 9:08 PM
> To: [email protected]
> Subject: [amibroker] formatting columns?
>
> H9i All:
>
> I have a problem with formatting columns in backtester. As
> you can see my contract names are in the format NG2200007..
> and the TRACE shows the name correctly, however, when they
> are being added to the custom metrics in the backtester the
> values are being formatted for some reason. NG2,200,306. how
> can I avoid it?
>
> using: AddCustomMetric("Contract (IN)", ThisContractNameIn);
>
> tks
>
> Paul
>
>
> ------------------------ 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
>
>
>
>
>
------------------------ Yahoo! Groups Sponsor --------------------~-->
Check out the new improvements in Yahoo! Groups email.
http://us.click.yahoo.com/6pRQfA/fOaOAA/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/