logo
Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

Options
Go to last post Go to first unread
mkz  
#1 Posted : Wednesday, January 25, 2006 1:08:58 AM(UTC)
mkz

Rank: Member

Groups: Registered, Registered Users
Joined: 8/8/2005(UTC)
Posts: 12

Any idea!? I found Daily VBP, at the Jose's site, but can not get the idea how it works. [code:1:a9157b561d] ==================== Volume By Price 10-C ==================== This indicator displays the distribution of volume over a nominated period relative to increments of the price extremes during that period. The display takes the form of a horizontal histogram contained within a three sided border and it should be scaled to match the price chart. The date format is appropriate for UK/Aus/NZ markets and can be easily adapted to the US format of MM/DD. ---8<--------------------------- {Volume By Price 10-C} {© 2003 Roy Larsen} {rlarsen@man.quik.co.nz} D:=Input("Start Day / Month /",101,3112,1510); Y:=Input( "Year",1990,2003,2002); X1:=Input("End Day / Month /",101,3112,103); X3:=Input("Year",1990,2003,2003); M:=Int(.01+Frac(D/100)*100); D:=Int(D/100); X2:=Int(.001+Frac(X1/100)*100); X1:=Int(X1/100); D:=(DayOfMonth()>=D AND Month()=M AND Year()=Y) OR Year()>Y OR (Year()=Y AND Month()>M); D:=BarsSince(D AND Alert(D=0,2)); D:=LastValue(If(D=0,LastValue(Cum(1)-1),D)); N:=Input("Scaling % in Box, 0=None",0,100,50); M:=(DayOfMonth()>=X1 AND Month()=X2 AND Year()=X3) OR Year()>X3 OR (Year()=X3 AND Month()>X2); M:=BarsSince(M AND Alert(M=0,2)); M:=LastValue(If(M=0,LastValue(Cum(1)-1),M)); F:=LastValue(Cum(1)); A:=(F-D)<Cum(1) AND (F-M)>=Cum(1); B:=LastValue(Cum(If(A,V,0))); Q:=LastValue(HighestSince(1,Ref(A=0,-M),Ref(C,-M))); R:=LastValue(LowestSince(1,Ref(A=0,-M),Ref(C,-M))); I:=(Q-R)/10; X1:=LastValue(Cum(If(C<(R+I) AND A,V,0))/B); X2:=LastValue(Cum(If(C>=(R+I) AND C<(R+I*2) AND A,V,0))/B); X3:=LastValue(Cum(If(C>=(R+I*2) AND C<(R+I*3) AND A,V,0))/B); X4:=LastValue(Cum(If(C>=(R+I*3) AND C<(R+I*4) AND A,V,0))/B); X5:=LastValue(Cum(If(C>=(R+I*4) AND C<(R+I*5) AND A,V,0))/B); X6:=LastValue(Cum(If(C>=(R+I*5) AND C<(R+I*6) AND A,V,0))/B); X7:=LastValue(Cum(If(C>=(R+I*6) AND C<(R+I*7) AND A,V,0))/B); X8:=LastValue(Cum(If(C>=(R+I*7) AND C<(R+I*8) AND A,V,0))/B); X9:=LastValue(Cum(If(C>=(R+I*8) AND C<(R+I*9) AND A,V,0))/B); X0:=LastValue(Cum(If(C>=(R+I*9) AND A,V,0))/B); B:=Max(Max(X1,X2),Max(X3,X4)); B:=Max(Max(B,X5),Max(X6,X7)); B:=Max(Max(B,X8),Max(X9,X0)); B:=If(N=0,1,B*100)/If(N=0,1,N); Ref(Ref(ValueWhen(1,(F-D)<=Cum(1),Q),-M),M); Ref(Ref(ValueWhen(1,F-Int(X0*(D-M)/B)= Cum(1)+M,R+I*9.5),-M),M); Ref(Ref(ValueWhen(1,F-Int(X9*(D-M)/B)= Cum(1)+M,R+I*8.5),-M),M); Ref(Ref(ValueWhen(1,F-Int(X8*(D-M)/B)= Cum(1)+M,R+I*7.5),-M),M); Ref(Ref(ValueWhen(1,F-Int(X7*(D-M)/B)= Cum(1)+M,R+I*6.5),-M),M); Ref(Ref(ValueWhen(1,F-Int(X6*(D-M)/B)= Cum(1)+M,R+I*5.5),-M),M); Ref(Ref(ValueWhen(1,F-Int(X5*(D-M)/B)= Cum(1)+M,R+I*4.5),-M),M); Ref(Ref(ValueWhen(1,F-Int(X4*(D-M)/B)= Cum(1)+M,R+I*3.5),-M),M); Ref(Ref(ValueWhen(1,F-Int(X3*(D-M)/B)= Cum(1)+M,R+I*2.5),-M),M); Ref(Ref(ValueWhen(1,F-Int(X2*(D-M)/B)= Cum(1)+M,R+I*1.5),-M),M); Ref(Ref(ValueWhen(1,F-Int(X1*(D-M)/B)= Cum(1)+M,R+I*0.5),-M),M); Ref(Ref(ValueWhen(1,(F-D)<=Cum(1) AND (F-D)>Cum(1)-2,If(A,R,Q)),-M),M); ---8<--------------------------- http://www.metastocktips.co.nz/ [/code:1:a9157b561d]
mstt  
#2 Posted : Wednesday, January 25, 2006 2:03:55 AM(UTC)
mstt

Rank: Advanced Member

Groups: Registered, Registered Users, Subscribers
Joined: 7/25/2005(UTC)
Posts: 1,042

Was thanked: 57 time(s) in 54 post(s)
mkz Do you want to know how it works, if it works, or how to convert it to work on intraday charts? The formula below is supposedly a custom intraday version of the same basic indicator, and it may or may not be helpful. Roy MetaStock Tips & Tools {Volume By Price 10-C Intraday} {2004 Roy Larsen, www.metastocktips.co.nz} N:=Input("Scaling % in Box, 0=None",0,100,100); M:=LastValue(BarsSince(DayOfMonth()<>LastValue(DayOfMonth()))); F:=LastValue(Cum(1)); A:=(Cum(DayOfMonth()<>ValueWhen(2,1,DayOfMonth()))); A:=A=LastValue(A)-1; D:=BarsSince(A AND Alert(A=0,2)); D:=LastValue(If(D=0,LastValue(Cum(1)-1),D)); B:=LastValue(Cum(If(A,V,0))); Q:=LastValue(ValueWhen(1,A,HighestSince(1,A*Alert(A=0,2),C))); R:=LastValue(ValueWhen(1,A,LowestSince(1,A*Alert(A=0,2),C))); I:=(Q-R)/10; X1:=LastValue(Cum(If(C<(R+I) AND A,V,0))/B); X2:=LastValue(Cum(If(C>=(R+I) AND C<(R+I*2) AND A,V,0))/B); X3:=LastValue(Cum(If(C>=(R+I*2) AND C<(R+I*3) AND A,V,0))/B); X4:=LastValue(Cum(If(C>=(R+I*3) AND C<(R+I*4) AND A,V,0))/B); X5:=LastValue(Cum(If(C>=(R+I*4) AND C<(R+I*5) AND A,V,0))/B); X6:=LastValue(Cum(If(C>=(R+I*5) AND C<(R+I*6) AND A,V,0))/B); X7:=LastValue(Cum(If(C>=(R+I*6) AND C<(R+I*7) AND A,V,0))/B); X8:=LastValue(Cum(If(C>=(R+I*7) AND C<(R+I*8) AND A,V,0))/B); X9:=LastValue(Cum(If(C>=(R+I*8) AND C<(R+I*9) AND A,V,0))/B); X0:=LastValue(Cum(If(C>=(R+I*9) AND A,V,0))/B); B:=Max(Max(X1,X2),Max(X3,X4)); B:=Max(Max(B,X5),Max(X6,X7)); B:=Max(Max(B,X8),Max(X9,X0)); B:=If(N=0,1,B*100)/If(N=0,1,N); Ref(Ref(ValueWhen(1,(F-D)<=Cum(1),Q),-M),M); Ref(Ref(ValueWhen(1,F-Int(X0*(D-M)/B)=Cum(1)+M,R+I*9.5),-M),M); Ref(Ref(ValueWhen(1,F-Int(X9*(D-M)/B)=Cum(1)+M,R+I*8.5),-M),M); Ref(Ref(ValueWhen(1,F-Int(X8*(D-M)/B)=Cum(1)+M,R+I*7.5),-M),M); Ref(Ref(ValueWhen(1,F-Int(X7*(D-M)/B)=Cum(1)+M,R+I*6.5),-M),M); Ref(Ref(ValueWhen(1,F-Int(X6*(D-M)/B)=Cum(1)+M,R+I*5.5),-M),M); Ref(Ref(ValueWhen(1,F-Int(X5*(D-M)/B)=Cum(1)+M,R+I*4.5),-M),M); Ref(Ref(ValueWhen(1,F-Int(X4*(D-M)/B)=Cum(1)+M,R+I*3.5),-M),M); Ref(Ref(ValueWhen(1,F-Int(X3*(D-M)/B)=Cum(1)+M,R+I*2.5),-M),M); Ref(Ref(ValueWhen(1,F-Int(X2*(D-M)/B)=Cum(1)+M,R+I*1.5),-M),M); Ref(Ref(ValueWhen(1,F-Int(X1*(D-M)/B)=Cum(1)+M,R+I*0.5),-M),M); Ref(Ref(ValueWhen(1,(F-D)<=Cum(1) AND (F-D)>Cum(1)-2,R),-M),M);
mkz  
#3 Posted : Wednesday, January 25, 2006 9:19:31 AM(UTC)
mkz

Rank: Member

Groups: Registered, Registered Users
Joined: 8/8/2005(UTC)
Posts: 12

Well it seems that this doesn't work, I just need a formula not necessarily understanding how it works.
mstt  
#4 Posted : Thursday, January 26, 2006 1:26:09 AM(UTC)
mstt

Rank: Advanced Member

Groups: Registered, Registered Users, Subscribers
Joined: 7/25/2005(UTC)
Posts: 1,042

Was thanked: 57 time(s) in 54 post(s)
Patick or George What happened to the other question posted to this thread? I've spent some time working on a response and now there's no post to respond to. Thanks Roy
garykong  
#5 Posted : Thursday, January 26, 2006 1:53:40 AM(UTC)
garykong

Rank: Advanced Member

Groups: Registered, Registered Users, Subscribers
Joined: 4/30/2005(UTC)
Posts: 112

Hi Roy, well, my question with an image is being moved to a new thread.... well, it appears to me that my request is same as mkz posted previously... so I posted an chart that was created by another program. I would like to show the price volume shown on the other axis, not sure if that can be done with MS Gary
StorkBite  
#6 Posted : Thursday, January 26, 2006 2:35:22 AM(UTC)
StorkBite

Rank: Advanced Member

Groups: Registered, Registered Users
Joined: 3/19/2005(UTC)
Posts: 2,995

Was thanked: 14 time(s) in 10 post(s)
Sorry, Roy and everyone... moved to here: http://forum.equis.com/viewtopic.php?p=14300 It was a housekeeping mistake... kinda like when the spouse picks up your cup before you're done with it. :oops:
mstt  
#7 Posted : Friday, January 27, 2006 12:59:59 AM(UTC)
mstt

Rank: Advanced Member

Groups: Registered, Registered Users, Subscribers
Joined: 7/25/2005(UTC)
Posts: 1,042

Was thanked: 57 time(s) in 54 post(s)
Thanks George, I found it. Roy
Users browsing this topic
Guest (Hidden)
Forum Jump  
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.