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

Re: [amibroker] Barssince(Cond,N) ?



PureBytes Links

Trading Reference Links

BunberofBars = BarsSince(your condition to be true);

Note there is no second argument... see help files


----- Original Message ----- 
From: "Robert Nemeth" <rjnemeth@xxxxxxxxx>
To: <amibroker@xxxxxxxxxxxxxxx>
Sent: Friday, September 17, 2004 12:35 PM
Subject: [amibroker] Barssince(Cond,N) ?


>
> Can someone give me a hint on how to code BarsSince( Cond, Nth)?
>
> I have tried the following in addition to trying to use Ref():
>
> BarsSince(ValueWhen(C0>Ref(C0,-1) AND Ref(C0,-1)<Ref(C0,-2),Ref(C0,-1),2)
== C0) <=8
>
> Basically I need the bars since the second previous dip in an indicator.
>
> Thanks for any help
>
> Robert
>
>
>
> ---------------------------------
> Do you Yahoo!?
> Read only the mail you want - Yahoo! Mail SpamGuard.
>
> [Non-text portions of this message have been removed]
>
>
>
>
> Check AmiBroker web page at:
> http://www.amibroker.com/
>
> Check group FAQ at:
http://groups.yahoo.com/group/amibroker/files/groupfaq.html
> Yahoo! Groups Links
>
>
>
>
>
>
>
>




------------------------ Yahoo! Groups Sponsor --------------------~--> 
$9.95 domain names from Yahoo!. Register anything.
http://us.click.yahoo.com/J8kdrA/y20IAA/yQLSAA/GHeqlB/TM
--------------------------------------------------------------------~-> 

Check AmiBroker web page at:
http://www.amibroker.com/

Check group FAQ at: http://groups.yahoo.com/group/amibroker/files/groupfaq.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/