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

[amibroker] Re: Photos of people at the Clearwater Conference



PureBytes Links

Trading Reference Links


Ron,
 
TwoDownsInARow = Sum(C < O, 2) ==2;
TwoDownsWithAnUp = Ref(TwoDownsInARow, -1) and C > O;
 
Then you can ref the TwoDownsWithAnUp to test any sequence of three bars.
 
Hope this helps,
Gary mrdavis9 <mrdavis9@xxxxxxxxxx> wrote:




I usually use     "Sum(mycondition, n bars)>=1"  to look back to see if my condition has occurred.
 
I need help to code a new "my condition" that I want to check for.
 
This condition will look for no more than two down days (O>C) in a row.     It can have two downdays, one up day, two more down days, another up day, and so on forever, but it is not allowed to have three or more consecutive downdays.
 
If a stock has three downdays in a row, it will not be selected.
 
Any ideas how this can be coded?   Ron D
 
---Outgoing mail is certified Virus Free.Checked by AVG anti-virus system (http://www.grisoft.com).Version: 6.0.656 / Virus Database: 421 - Release Date: 4/20/2004Send BUG REPORTS to bugs@xxxxxxxxxxxxxSend 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 
		Do you Yahoo!?
Yahoo! Photos: High-quality 4x6 digital prints for 25˘


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








Yahoo! Groups Sponsor


  ADVERTISEMENT 












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 the Yahoo! Terms of Service.