Total number of bars on the chart |
Post Reply |
Author | |
Owen
Regular Joined: 15 Nov 2004 Posts: 97 |
Post Options
Quote Reply
Topic: Total number of bars on the chart Posted: 18 Jul 2007 at 11:12pm |
Thank you CR!
I didn't realise there is a "barnumber" function. This will make lot of things so much easier! |
|
chart rider
Regular Joined: 25 Sep 2004 Location: Australia Posts: 96 |
Post Options Quote Reply Posted: 18 Jul 2007 at 8:31pm |
Owen Your code will start counting again from every bar, so will always return the value of 1, because it's always been 1 day since the last time C > 0. This will work: firstBar := if(barnumber=1, 1, 0); barsSince (firstBar=1);CR |
|
Owen
Regular Joined: 15 Nov 2004 Posts: 97 |
Post Options Quote Reply Posted: 15 Jul 2007 at 11:18pm |
How do I get Bullcharts to return the total number of bars I have in my database? For XJO for example.
I've tried using barssince (c>0), thinking the 1st bar must close >0, so that should tell me how many bars have occurred since the 1st day. But that doesn't work. |
|
Post Reply |
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |