PureBytes Links
Trading Reference Links
|
Yuki,
conditions, in general, have binary output, their value is 0 or 1
[FALSE or TRUE].
If a condition is true for n consecutive bars, then the
sum(COND,n) will be 1+1+...+1=n and
sum(COND,n)==n
If the condition is false for n consecutive bars, then sum(COND,n)==0.
Dimitris Tsokakis
--- In amibroker@xxxxxxxxxxxxxxx, Yuki Taga <yukitaga@xxxx> wrote:
> If I have a condition that needs to be true for B or S, but I want
> that condition to NOT be true for at least any of the 10 previous
> bars, is there an easier way to write it than by writing
> ref(mycond,-1) AND ref(mycond,-2) etc?
>
> Yuki
------------------------ Yahoo! Groups Sponsor ---------------------~-->
Buy Ink Cartridges or Refill Kits for your HP, Epson, Canon or Lexmark
Printer at MyInks.com. Free s/h on orders $50 or more to the US & Canada.
http://www.c1tracking.com/l.asp?cid=5511
http://us.click.yahoo.com/mOAaAA/3exGAA/qnsNAA/GHeqlB/TM
---------------------------------------------------------------------~->
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 http://docs.yahoo.com/info/terms/
|