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

[amibroker] Resetting counter



PureBytes Links

Trading Reference Links




Hello,
 
Iīm in search of a code for a code that acts like a 
counter: it counts the consecutive bars that a condition is met and resets back 
to zero every time a condition is NOT met.
 
For instance, I want to count the number of 
consecutive bars that are greater than bar # 1,000 and that have a higher low 
than (say 100).
 
Every time the above condition is NOT met the 
counter should be reset to zero and start counting the bars again when the 
condition takes place.
 
I thought of flip function but still canīt get it 
together...
 
Markus
 
 
 
 
but somehow canīt get it to 
work






Yahoo! Groups Sponsor












Send BUG REPORTS to bugs@xxxxxxxxxxxxx
Send SUGGESTIONS to suggest@xxxxxxxxxxxxx
-----------------------------------------
Post AmiQuote-related messages ONLY to: amiquote@xxxxxxxxxxxxxxx 
(Web page: http://groups.yahoo.com/group/amiquote/messages/)
--------------------------------------------
Check group FAQ at: http://groups.yahoo.com/group/amibroker/files/groupfaq.html



Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.