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

Notification

Icon
Error

Options
Go to last post Go to first unread
StorkBite  
#1 Posted : 19 years ago
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)
I'm getting an 'improper use of constant' error on line 2. How do I fix this formula? I've tried exchanging PERCENT for % and POINTS for $, but the same error occurs. method:=Input("Method 1=% 2=$",1,2,1); method:=If(method=1,%,$); roc(c,5,method);
Patrick  
#2 Posted : 19 years ago
Patrick

Rank: Advanced Member

Groups: Registered, Registered Users, Subscribers
Joined: 9/8/2004(UTC)
Posts: 2,266

Was thanked: 1 time(s) in 1 post(s)
I believe the word "method" is reserved ... Try maytodd instead ... Patrick :mrgreen:
henry1224  
#3 Posted : 19 years ago
henry1224

Rank: Advanced Member

Groups: Registered, Registered Users, Subscribers
Joined: 10/29/2004(UTC)
Posts: 1,394
Location: Glastonbury, CT

Was thanked: 2 time(s) in 2 post(s)
Plot this indicator on top of the price chart. The last leg of each swing is dynamic. Per1:=Input("1st swing",1,50,5); Per2:=Input("2nd swing",2,50,9); Per3:=Input("3rd swing",3,50,15); D:=Input("Decimal point",.001,100.0,1.0); PD:= Input("1= % 2= $",1,2,1); A:= If( Rally(), HIGH, If( Reaction(), LOW, If( Outside(), If( Ref(Rally(),-1), HIGH, LOW ), If( Inside(), If( Ref(Rally(),-1), Ref(HIGH,-1)-0.001, Ref(LOW,-1)+0.001 ), P )))); S1:=If(PD=1,Zig(A,(Per1*D),%), Zig(A,(Per1*D),$)); S2:= If(PD=1,Zig(A,(Per2*D),%), Zig(A,(Per2*D),$)); S3:= If(PD=1,Zig(A,(Per3*D),%), Zig(A,(Per3*D),$)); S1; S2; S3; Look at S1 S2 S3
Patrick  
#4 Posted : 19 years ago
Patrick

Rank: Advanced Member

Groups: Registered, Registered Users, Subscribers
Joined: 9/8/2004(UTC)
Posts: 2,266

Was thanked: 1 time(s) in 1 post(s)
I don't know what kinda of drugs I was on :roll: Thanks Henry for waking me up ... method:=Input("Method 1=% 2=$",1,2,1); If(method=1,roc(c,5,%),roc(c,5,$)) You can't assign % or $ to a variable, only numbers ... Patrick :mrgreen:
StorkBite  
#5 Posted : 19 years ago
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)
Thanks Guys! Really quick response! :D
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.

information You have 1 unread message(s) in your Inbox.