On Wednesday 31 May 2006 08:33 pm, Phsst wrote:

> Thanks for your comments & critique.

Glad to help... 

> Here is the sample 'one-pass' code for calculating statistics or
> ratios on an entire watchlist or other defined group of issues: (It
> does give a 'running' report with each issue that is processed).

I can guess that it would also be nice to report the separate stats for each
issue (easy enough) while reporting the summary just once in a sum total row. 
I don't think we have the option to add custom rows to the report.   Wild
idea: check whether you are on the last issue, and use AlertIf to report the
summary one time.

> StaticVarSet("GapsUp2Pct",    LastValue(Cum(CondGap)) +
> StaticVarGet("GapsUp2Pct") );

Since you frequently want to increment a summary, you might want to use a
utility function to save a little typing:

function incStaticVar(varName, value)
{
  StaticVarSet(varName, StaticVarGet(varName) + value);
}

// for example:
incStaticVar("GapsUp2Pct", LastValue(Cum(CondGap)));

dan


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
Investment management software Real estate investment software Investment property software
Software support Real estate investment analysis software Investment software


YAHOO! GROUPS LINKS




Reply via email to