Error

 Previous Topic Next Topic
 PersonnaBlue #1 Posted : Saturday, October 13, 2018 7:14:58 AM(UTC) Rank: NewbieGroups: Registered, Registered Users, SubscribersJoined: 10/11/2018(UTC)Posts: 1Location: Istanbul I want to use that formula for taking buy-sell signals on explorer and system tester. I'd appreciate it if you could help me with the code to add to the bottom line. Code:``````sigma:=Input("Sigma",0.5,10,6); offset:=Input("Offset",0,1,0.85); w0:= Exp(-Power(0-ROUND(offset*8-0.5),2)/(2*Power(9/sigma,2))); w1:= Exp(-Power(1-ROUND(offset*8-0.5),2)/(2*Power(9/sigma,2))); w2:= Exp(-Power(2-ROUND(offset*8-0.5),2)/(2*Power(9/sigma,2))); w3:= Exp(-Power(3-ROUND(offset*8-0.5),2)/(2*Power(9/sigma,2))); w4:= Exp(-Power(4-ROUND(offset*8-0.5),2)/(2*Power(9/sigma,2))); w5:= Exp(-Power(5-ROUND(offset*8-0.5),2)/(2*Power(9/sigma,2))); w6:= Exp(-Power(6-ROUND(offset*8-0.5),2)/(2*Power(9/sigma,2))); w7:= Exp(-Power(7-ROUND(offset*8-0.5),2)/(2*Power(9/sigma,2))); w8:= Exp(-Power(8-ROUND(offset*8-0.5),2)/(2*Power(9/sigma,2))); s0:= w0*Ref(C,-8); s1:= w1*Ref(C,-7); s2:= w2*Ref(C,-6); s3:= w3*Ref(C,-5); s4:= w4*Ref(C,-4); s5:= w5*Ref(C,-3); s6:= w6*Ref(C,-2); s7:= w7*Ref(C,-1); alma:=If((w0+w1+w2+w3+w4+w5+w6+w7+w8)>0,(s0+s1+s2+s3+s4+s5+s6+s7+w8*C)/(w0+w1+w2+w3+w4+w5+w6+w7+w8),C); alma``````
 Wanna join the discussion?! Login to your Discussions forum accountor Register a new forum account.
 Users browsing this topic
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.