BullCharts Forum Homepage
Forum Home Forum Home > BullCharts > BullScript
  New Posts New Posts RSS Feed: Better Volume Code
  FAQ FAQ  Forum Search   Calendar   Register Register  Login Login

Better Volume Code

 Post Reply Post Reply Page  <123
Author
Message / View First Unread Post
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 Posted: 14 Feb 2009 at 11:37pm
Ah I must be getting old...  every line should end with  a semicolon; and I forgot to add them, so just add it to the end of the line and it should accept :)

Edited by maximo - 17 Feb 2009 at 2:43pm
Back to Top
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 Posted: 03 Sep 2009 at 3:47am
Here's a Volume indicator I created to view Volume breakouts.
 
features:
  When blue line crosses the purple line the 5 day average volume is above the 50 day average volume.
  Green Volume bars indicate a 10 day high of volume.
  Red short bars indicate that Volume bar is 600% or greater.
 
Parameters can be changed to suit.
 

{ Volume Breakouts - Max }

[Description="Apply averages 21 and 150sma onto price."]

p1:= input("Volume average small",5,1);

p2:= input("Volume average large",50,1);

p3:= input("Volume Bar Highest in period",10,1);

p4:= input("Volume Bar Spike increase%",600,1);

vp:=((V-ref(V,-1))/ref(V,-1))*100 > p4;

[linestyle=Grounded Bar; Color=coral]

If(Volume <= hist(HHV(V,p3),1),V*0.5,undefined);

{ 10 day Volume breakouts are green bars }

[Color=lime green]

If(Volume > hist(HHV(V,p3),1),V*0.5,undefined);

{ 600% Volume increase are short red bars }

[Color=red; width=2]

If(vp,1,undefined);

[linestyle=solid; width=1; color=blue]

ma(Volume,p1,E);

[color=Medium Orchid]

ma(Volume,p2,E);

 
 


Edited by maximo - 03 Sep 2009 at 4:35pm
Back to Top
 Post Reply Post Reply Page  <123

Forum Jump Forum Permissions View Drop Down

Bulletin Board Software by Web Wiz Forums® version 9.69
Copyright ©2001-2010 Web Wiz