PureBytes Links
Trading Reference Links
|
dingo - thank you for your help. I tried adding 0 but I see no
changes in the output column.. could this be qualified as a bug?
pr
On 7/19/06, dingo <dingo@xxxxxxxxxxxx> wrote:
> 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: amibroker@xxxxxxxxxxxxxxx
> > [mailto:amibroker@xxxxxxxxxxxxxxx] On Behalf Of PKJR
> > Sent: Wednesday, July 19, 2006 9:08 PM
> > To: amibroker@xxxxxxxxxxxxxxx
> > 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
> >
> >
> >
> >
> >
>
>
>
>
> 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
>
>
>
>
>
>
>
>
|