I would like to compute Max number of positions 
    based on Equity ,,, my attempts seem to produce erroneous 
    results:
     
    // Specify no value for Max_Pos ... assume only 
    limit is amount of equity available,
    //SetOption("MaxOpenPositions",Max_Pos);
    //Make each Position 
    Size $20,000
    SetPositionSize(20000,spsValue); 
     
    Above code does not invest all available 
    funds.
     
     
     
    Also tried this:
    Max_Pos = Round(SelectedValue(Equity(0,0)) / 
    20000);
    SetOption("MaxOpenPositions",Max_Pos);
     
    but looks like Equity() is evaluated at 
    starting date only, so Max_Pos remains a constant
     
    Thanks
     
    Ara
     
     
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 
    
    SPONSORED 
    LINKS 
    
    
    
    YAHOO! GROUPS LINKS