[amibroker] Numbering Portfolio Optimization Results

 

Hi everybody,

By default AB optimization result window assigns a number to each result in column "No."

Is there any way to store it in a StaticVar? Something like:

if( Status("action") == actionPortfolio )
{
    bo = GetBacktesterObject();
    bo.Backtest(); // run default backtest procedure   

    st = bo.GetPerformanceStats(0); // get stats for all trades

    // here your custom stats
   

    NUM = st.GetValue("?");
    Staticvarset( "NUM", NUM );
    bo.AddCustomMetric( "NUM", NUM ); // this is for testing purpose

}

Or can I add something like

NUM=0;

NUM++;

Where?


Grateful if you could help.

Rgds

J

__._,_.___

Posted by: jb <jbenfeld@yahoo.co.uk>
Reply via web post Reply to sender Reply to group Start a New Topic Messages in this topic (1)
**** IMPORTANT PLEASE READ ****
This group is for the discussion between users only.
This is *NOT* technical support channel.

TO GET TECHNICAL SUPPORT send an e-mail directly to
SUPPORT {at} amibroker.com

TO SUBMIT SUGGESTIONS please use FEEDBACK CENTER at
http://www.amibroker.com/feedback/
(submissions sent via other channels won't be considered)

For NEW RELEASE ANNOUNCEMENTS and other news always check DEVLOG:
http://www.amibroker.com/devlog/


.

__,_._,___

Related Posts


EmoticonEmoticon

:)
:(
=(
^_^
:D
=D
=)D
|o|
@@,
;)
:-bd
:-d
:p
:ng
:lv