Print Page | Close Window

Hist Function

Printed From: BullCharts Forum
Category: BullCharts
Forum Name: BullCharts discussion
Forum Discription: General discussion about getting started with BullCharts and exploring its features.
URL: http://www.bullcharts.com.au/forum/forum_posts.asp?TID=532
Printed Date: 14 Apr 2025 at 3:23pm
Software Version: Web Wiz Forums 9.69 - http://www.webwizforums.com


Topic: Hist Function
Posted By: tamas6
Subject: Hist Function
Date Posted: 29 Dec 2008 at 10:46pm
Hi,
 
I'm using the BarsSince function to determine how many bars since my expression was true. I have assigned the result of this to a variable.
 
Eg
 
N := BarsSince(expr);
 
When I attempt to use this variable within the Hist function, I get an error message saying that it has to be an integer number
 
P := Hist(C, N);
 
Is there any way around this?
 
Thanks



Replies:
Posted By: chart rider
Date Posted: 06 Jan 2009 at 8:46pm
tamas
 
Have a look at the VALUEWHEN function in the help menu, it's not something I've used myself, but it looks like it could acheive your desired outcome:
 
P := valuewhen(1, expr, C);
 
CR


Posted By: tamas6
Date Posted: 06 Jan 2009 at 10:08pm
Hi,
 
Thanks for the response. A couple of days ago I found this very function and it has enabled me to come to a solution.



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