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

Notification

Icon
Error

Options
Go to last post Go to first unread
jigshir  
#1 Posted : Sunday, July 26, 2015 6:26:56 AM(UTC)
jigshir

Rank: Member

Groups: Registered, Registered Users, Subscribers
Joined: 12/7/2013(UTC)
Posts: 23

Thanks: 1 times
 this formula price volume rank indicator not work there is something error in formula that i copied in metastock.com

P-V Rank:
Fml( "PV1" ) + Fml( "PV2" )

PV1:
If( C ,> ,Ref( C ,-1 ) ,If( V ,> ,Ref( V ,-1 ) ,1 ,If( V ,< ,Ref(V ,-1 ) ,2 ,0 ) ) ,0 )

PV2:
If( C ,< ,Ref( C ,-1 ) ,If( V ,< ,Ref( V ,-1 ) ,3 ,If( V ,> ,Ref( V ,-1 ) ,4 ,0 ) ) ,0 )

PV Biggie: (This combines all formulas into one formula)
If( C ,> ,Ref( C ,-1 ) ,If( V ,> ,Ref( V ,-1 ) ,1 ,If( V ,< ,Ref( V ,-1 ) ,2 ,0 ) ) ,If( C ,< ,Ref( C ,-1 ),If( V ,< ,Ref( V ,-1 ) ,3 ,If( V ,> ,Ref( V ,-1 ) ,4 ,0 ) ) ,0 ) )



 

Edited by user Monday, July 27, 2015 7:01:43 AM(UTC)  | Reason: Not specified

mstt  
#2 Posted : Monday, July 27, 2015 8:02:24 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)
Hi jigshir I've looked at the formulas above and commented out formula names/comments, and while I have very little idea about the purpose of the formulas it seems to me that there is no real problem. Providing formula names as part of the formula does require that those names to be commented out with braces {}. {PV1} PV1:=If(C>Ref(C,-1),If(V>Ref(V,-1),1, If(V<Ref(V,-1),2,0)),0); PV1; {PV2} PV2:=If(C<Ref(C,-1),If(V<Ref(V,-1),3, If(V>Ref(V ,-1),4,0)),0); PV2; {P-V Rank} PV1:=Fml("PV1"); PV2:=Fml("PV2"); PV1+PV2; {PV Biggie} {This combines all formulas into one formula} If(C>Ref(C ,-1),If(V>Ref(V,-1),1, If(V<Ref(V,-1),2,0)),If(C<Ref(C,-1), If(V<Ref(V,-1),3,If(V>Ref(V,-1),4,0)),0)); Does this help? Roy
jigshir  
#3 Posted : Wednesday, July 29, 2015 2:47:37 PM(UTC)
jigshir

Rank: Member

Groups: Registered, Registered Users, Subscribers
Joined: 12/7/2013(UTC)
Posts: 23

Thanks: 1 times
Dear sir, there is again error like No indicator names in the indicator builder contain this text. PV1:=Fml("PV1");
mstt  
#4 Posted : Wednesday, July 29, 2015 8:47:24 PM(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)
Hi jigshir Create a new indicator in the Indicator Builder and copy all the code immediately below into both the Name window and Formula window. Only the first line of code will be added to the name window and you should delete the braces {} so that the new indicator has the proper name of PV1. {PV1} PV1:=If(C>Ref(C,-1),If(V>Ref(V,-1),1, If(V<Ref(V,-1),2,0)),0); PV1; Then repeat the process to create the "PV2", "P-V Rank" an "PV Biggie" indicator with the following code (without the quotation marks). The reason for copying the full code into the Name window is simply that it is usually quicker to copy and edit the full code into the one-line Name window than type the full name. With a 3-character name it isn't of any benefit, but with a 20-character name it is the quickest way to enter the name. It's good practice to include the indicator name, commented out by braces {}, as the first line of any indicator you create. There are four different indicators in the code I retyped and they should be entered into the Indicator Builder as four separate indicators, not just as the raw code given in your first post You cannot create the P-V Rank indicator until you have created both the PV1 and PV2 indicators. Only then will the P-V Rank indicator work properly. {PV1} PV1:=If(C>Ref(C,-1),If(V>Ref(V,-1),1, If(V<Ref(V,-1),2,0)),0); PV1; {PV2} PV2:=If(C<Ref(C,-1),If(V<Ref(V,-1),3, If(V>Ref(V ,-1),4,0)),0); PV2; {P-V Rank} PV1:=Fml("PV1"); PV2:=Fml("PV2"); PV1+PV2; {PV Biggie} {This combines all formulas into one formula} If(C>Ref(C ,-1),If(V>Ref(V,-1),1, If(V<Ref(V,-1),2,0)),If(C<Ref(C,-1), If(V<Ref(V,-1),3,If(V>Ref(V,-1),4,0)),0)); Roy
Users browsing this topic
Guest (Hidden)
Similar Topics
10.1 System Tester Error: An error occurred in System tester (Error Messages)
by aed71 11/16/2008 7:05:27 AM(UTC)
An error occurred during the move data process - 119 (Error Messages)
by skippy8 6/7/2007 8:44:49 AM(UTC)
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.