BullCharts Forum Homepage
Forum Home Forum Home > BullCharts > BullCharts discussion
  New Posts New Posts RSS Feed: Hist Function
  FAQ FAQ  Forum Search   Calendar   Register Register  Login Login

Hist Function

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

Joined: 04 Apr 2006
Location: Australia
Posts: 5
Post Options Post Options   Quote tamas6 Quote  Post ReplyReply Direct Link To This Post Topic: Hist Function
    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.
Back to Top
chart rider View Drop Down
Regular
Regular
Avatar

Joined: 25 Sep 2004
Location: Australia
Posts: 96
Post Options Post Options   Quote chart rider Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
tamas6 View Drop Down
Newbie
Newbie
Avatar

Joined: 04 Apr 2006
Location: Australia
Posts: 5
Post Options Post Options   Quote tamas6 Quote  Post ReplyReply Direct Link To This Post 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
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