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

Notification

Icon
Error

Options
Go to last post Go to first unread
Larry  
#1 Posted : Tuesday, March 21, 2006 2:31:42 PM(UTC)
Larry

Rank: Newbie

Groups: Registered, Registered Users
Joined: 3/20/2006(UTC)
Posts: 1

Hi, I have tried to place the following Slow Stochastic in my indicator builder but get a defaut that the term is not recognized. Do I need to add or remove something from this to make it work> Thanks, Larry Stochastics %K Per1:=Input("length of stoch",1,100,14); A:=((C - LLV(L,Per1))/(HHV(H,Per1)-LLV(L,Per1)))*100; A; Stochastics %D Per1:=Input("length of stoch",1,100,14); Per2:=Input("length of ma",1,100,3); A:=Mov((((C-LLV(L,Per1))/(HHV(H,Per1)-LLV(L,Per1)))*100),Per2,S); A; Stochastics % D Slow Per1:=Input("length of stoch",1,100,14); Per2:=Input("length of ma",1,100,3); Per3:=Input("length of ma2",1,100,3); A:= Mov((Mov((((C-LLV(L,Per1))/(HHV(H,Per1)-LLV(L,Per1)))*100),Per2,S)),Per3,S); A; Stochastics Combined Per1:=Input("length of stoch",1,100,14); Per2:=Input("length of ma",1,100,3); Per3:=Input("length of ma2",1,100,3); A:=Mov((((C-LLV(L,Per1))/(HHV(H,Per1)-LLV(L,Per1)))*100),Per2,S); A1:= Mov((Mov((((C-LLV(L,Per1))/(HHV(H,Per1)-LLV(L,Per1)))*100),Per2,S)),Per3,S); A;A1;
wiked  
#2 Posted : Tuesday, March 21, 2006 3:51:20 PM(UTC)
wiked

Rank: Advanced Member

Groups: Registered, Registered Users
Joined: 4/27/2005(UTC)
Posts: 31

I copied and pasted just the combined formula into the MetaStock 9.0 indicator builder and did not get any errors. This is the code I copied: Per1:=Input("length of stoch",1,100,14); Per2:=Input("length of ma",1,100,3); Per3:=Input("length of ma2",1,100,3); A:=Mov((((C-LLV(L,Per1))/(HHV(H,Per1)-LLV(L,Per1)))*100),Per2,S); A1:= Mov((Mov((((C-LLV(L,Per1))/(HHV(H,Per1)-LLV(L,Per1)))*100),Per2,S)),Per3,S); A;A1; If you are getting the error still, where is the cursor placed after the error displays
hayseed  
#3 Posted : Tuesday, March 21, 2006 7:00:24 PM(UTC)
hayseed

Rank: Advanced Member

Groups: Registered, Registered Users, Subscribers
Joined: 3/7/2005(UTC)
Posts: 1,346

hey larry.... do you remember the exact wording of the error message.... all your codes appear correct.... a mistake i make at times that produces the exact error message you mentioned is to forget and the have name inside the formula without being contained in brackets..... such as
[color=red:734770bbcc]Stochastics % D Slow [/color] Per1:=Input("length of stoch",1,100,14); Per2:=Input("length of ma",1,100,3); Per3:=Input("length of ma2",1,100,3); A:= Mov((Mov((((C-LLV(L,Per1))/(HHV(H,Per1)-LLV(L,Per1)))*100),Per2,S)),Per3,S); A;
always gives the error message due to the name included.... where as,
[color=blue:734770bbcc]{Stochastics % D Slow} [/color] Per1:=Input("length of stoch",1,100,14); Per2:=Input("length of ma",1,100,3); Per3:=Input("length of ma2",1,100,3); A:= Mov((Mov((((C-LLV(L,Per1))/(HHV(H,Per1)-LLV(L,Per1)))*100),Per2,S)),Per3,S); A;
will not cause the name is in brackets...... yeah, it was a wild shot but it was the only thing that came to mind........h
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.