PureBytes Links
Trading Reference Links
|
So many ways to do the job!
I use the following concept to accomplish the job :
YourCondition = iif(condition > 0,1,0); // flag whatever your condition is
Counter = sum(YourCondition,21); // counts the number of times in the past
21 days flagged
You can change the "21" and also insert your condition. This formula also
keeps a "running"
total that can be seen via explore.
Frank
At 07:53 PM 7/20/02 +0000, you wrote:
>Can someone help me to write:
>
>AFL to count the number of trues within a period. For instance a
>variable A toggles between 1 and 0. I want to count the number of
>times it toggles within 21 bars.
>
>thanks
>
>
>
>
>
>Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
>
|