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

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



PureBytes Links

Trading Reference Links

While we are talking about BarsSince,  I would like to see a modification  of BarsSince that is defaulted to retrieve the bars of the most recent occurrence, but which also allows  you to get the BarsSince of the second last time, the third last time, and so forth.  Ron D
  ----- Original Message ----- 
  From: Ara Kaloustian 
  To: amibroker@xxxxxxxxxxxxxxx 
  Sent: Friday, September 17, 2004 3:00 PM
  Subject: Re: [amibroker] Barssince(Cond,N) ?



  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
  >
  >
  >
  >
  >
  >
  >
  >





  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



   




  ---
  Outgoing mail is certified Virus Free.
  Checked by AVG anti-virus system (http://www.grisoft.com).
  Version: 6.0.757 / Virus Database: 507 - Release Date: 9/15/2004

[Non-text portions of this message have been removed]



------------------------ Yahoo! Groups Sponsor --------------------~--> 
Make a clean sweep of pop-up ads. Yahoo! Companion Toolbar.
Now with Pop-Up Blocker. Get it for free!
http://us.click.yahoo.com/L5YrjA/eSIIAA/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/