Print Page | Close Window

variable bars back

Printed From: BullCharts Forum
Category: BullCharts
Forum Name: BullScript
Forum Discription: Technical discussion related specifically to the BullScript programming language.
URL: http://www.bullcharts.com.au/forum/forum_posts.asp?TID=1023
Printed Date: 25 Apr 2024 at 3:04pm
Software Version: Web Wiz Forums 9.69 - http://www.webwizforums.com


Topic: variable bars back
Posted By: stefanols
Subject: variable bars back
Date 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);




Replies:
Posted By: maximo
Date 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);





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