BullCharts Forum Homepage
Forum Home Forum Home > BullCharts > Tips and Tricks
  New Posts New Posts RSS Feed: Value since condition
  FAQ FAQ  Forum Search   Calendar   Register Register  Login Login

Value since condition

 Post Reply Post Reply
Author
Message Reverse Sort Order / View First Unread Post
matt View Drop Down
Newbie
Newbie


Joined: 30 Jun 2006
Posts: 4
Post Options Post Options   Quote matt Quote  Post ReplyReply Direct Link To This Post Topic: Value since condition
    Posted: 30 Jun 2006 at 4:04pm

Hi,

Can anyone please help me with this?

I would like to show only the first value since a condition and not subsequent values, which may be separated by variable time periods. Such a formula might be written as:

  • where: condition=variable, such as CROSS(EXPR2,EXPR3)
  • and, since= any value of expr1 since nth occurence of  condition.

expr1 :=close;

expr2 := expr1(condition) and not anytrue(expr1,since(n,condition,expr1));

expr2;

Unfortunately anytrue can only accept an interger as its second parameter. Is there anyway to return :

  • any value of expr1 since condition and,
  • pass a variable to the second parameter of anytrue?

Thanks in advance.

 

Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down

Bulletin Board Software by Web Wiz Forums® version 9.69
Copyright ©2001-2010 Web Wiz