Print Page | Close Window

Value since condition

Printed From: BullCharts Forum
Category: BullCharts
Forum Name: Tips and Tricks
Forum Discription: Tips on how to use BullCharts more effectively.
URL: http://www.bullcharts.com.au/forum/forum_posts.asp?TID=366
Printed Date: 19 May 2024 at 1:23am
Software Version: Web Wiz Forums 9.69 - http://www.webwizforums.com


Topic: Value since condition
Posted By: matt
Subject: Value since condition
Date 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.

 




Print Page | Close Window

Bulletin Board Software by Web Wiz Forums® version 9.69 - http://www.webwizforums.com
Copyright ©2001-2010 Web Wiz - http://www.webwiz.co.uk