merhaba,
al
sigma:=6;
offset:=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);
period:=10;
coeff:=3;
MovPeriod:=10;
K:=MOV((H+L)/2,MovPeriod,E);
OFFSET1:=coeff*ATRe(period);
STR:=K+OFFSET1;
STS:=K-OFFSET1;
FUB:=IF(STR<PREV OR REF(K,-1)>PREV,STR,PREV);
FLB:=IF(STS>PREV OR REF(K,-1)<PREV,STS,PREV);
PMax:=IF(PREV=REF(FUB,-1) AND K<FUB,FUB,IF(PREV=REF(FUB,-1) AND K>FUB,FLB,IF(PREV=REF(FLB,-1) AND K>FLB,FLB,IF(PREV=REF(FLB,-1) AND K<FLB,FUB,FUB))));
cross(alma,PMax)
sat
sigma:=6;
offset:=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);
period:=10;
coeff:=3;
MovPeriod:=10;
K:=MOV((H+L)/2,MovPeriod,E);
OFFSET1:=coeff*ATRe(period);
STR:=K+OFFSET1;
STS:=K-OFFSET1;
FUB:=IF(STR<PREV OR REF(K,-1)>PREV,STR,PREV);
FLB:=IF(STS>PREV OR REF(K,-1)<PREV,STS,PREV);
PMax:=IF(PREV=REF(FUB,-1) AND K<FUB,FUB,IF(PREV=REF(FUB,-1) AND K>FUB,FLB,IF(PREV=REF(FLB,-1) AND K>FLB,FLB,IF(PREV=REF(FLB,-1) AND K<FLB,FUB,FUB))));
cross(PMax,alma)
şeklinde yazabilirsiniz
bilgilerinize