BullCharts Forum Homepage
Forum Home Forum Home > BullCharts > BullScript
  New Posts New Posts RSS Feed: variable bars back
  FAQ FAQ  Forum Search   Calendar   Register Register  Login Login

variable bars back

 Post Reply Post Reply
Author
Message Reverse Sort Order
maximo View Drop Down
BullCharts Guru
BullCharts Guru
Avatar

Joined: 02 Sep 2006
Location: Australia
Posts: 232
Post Options Post Options   Quote maximo Quote  Post ReplyReply Direct Link To This Post Topic: variable bars back
    Posted: 23 Jun 2018 at 2:07am
This shows the highest volume in the period as a ratio.
Times the result by 100 to show it as a percentage. (V/hist(V,1))*100
BVS has a volume spike ratio of 30 times which would be 3000%.

n := input("time periods",60,10);
if(HHV(V,60) > hist(HHV(V,60),1), V/hist(V,1), 0);


Back to Top
stefanols View Drop Down
Newbie
Newbie
Avatar

Joined: 29 Jul 2010
Location: Sweden
Posts: 8
Post Options Post Options   Quote stefanols Quote  Post ReplyReply Direct Link To This Post Posted: 10 Jun 2018 at 1:58am
Hi, 
Hope someone can assist if this is possible. 

I am trying to determine hight volume 60 bars back and then 
calculate the percent move that specific day from the day before. 

Below you find the code I am trying to work with. 
It says constant integrar fault. 

Best regards

Stefan 


n := input("time periods",60,10); 
res:=(Hhvbars(V,n));
res1:= res-1;
(hist(close,res1)-hist(close,res))/ hist(close,res1);

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