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

Notification

Icon
Error

Options
Go to last post Go to first unread
gorachand  
#1 Posted : Saturday, November 17, 2012 10:23:48 PM(UTC)
gorachand

Rank: Advanced Member

Groups: Registered, Registered Users
Joined: 2/19/2012(UTC)
Posts: 106

Thanks: 1 times
Was thanked: 1 time(s) in 1 post(s)
I tried coding De Marker 2 in the indicator builder thus:- periods:=Input("periods",1,100,8); A:=Sum((If(H>Ref(C,-1),H-Ref(C,-1),0)),periods); B:=Sum(C-L,periods) D:= Sum( If Ref(C,-1)>L,Ref(C,-1)-L,0)),periods); F:=Sum(H-C,periods) (A+B)/(A+B+F+D) The code gives debugging errors. Even if the full form of the variables are declared without declaring them individually it still gives De Bugging Errors. Can any body help?
wabbit  
#2 Posted : Sunday, November 18, 2012 4:12:16 PM(UTC)
wabbit

Rank: Advanced Member

Groups: Registered, Registered Users, Subscribers, Unverified Users
Joined: 10/28/2004(UTC)
Posts: 3,111
Location: Perth, Western Australia

Was thanked: 16 time(s) in 16 post(s)
The errors are being caused by missing semi-colons as line terminators (2 instances) and you're missing brackets for one of the If() statements, and an extra bracket at the end of that statement.


wabbit [: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.