[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [amibroker] Re: Help *counting* candle patterns



PureBytes Links

Trading Reference Links

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


------------------------ Yahoo! Groups Sponsor --------------------~--> 
Get to your groups with one click. Know instantly when new email arrives
http://us.click.yahoo.com/.7bhrC/MGxNAA/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:
    amibroker-unsubscribe@xxxxxxxxxxxxxxx

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/