merhaba,
FMAL:=3;
SMAL:=5;
tmal:=fmal+smal; Fomal:=smal+tmal;
Ftmal:=tmal+Fomal;
Simal:=Fomal+Ftmal;
K1:=c; K2:=MOV(K1,FMAL,W);
K3:=MOV(K2,SMAL,W);
K4:=MOV(K3,TMAL,W);
K5:=MOV(K4,Fomal,W);
K6:=MOV(K5,Ftmal,W);
K7:=MOV(K6,Simal,W);
length:=20;
mult:=2;
lengthKC:=20;
multKC:=1.5;
useTrueRange:=1;
source:=C;
basis:=MOV(source,length,S);
dev:=multKC * STDEV(source,length);
upperBB:=basis+dev;
lowerBB:=basis-dev;
ma:=MOV(source,lengthKC,S);
range:=If(useTrueRange=1,ATR(1),H-L);
rangema:=MOV(range,lengthKC,S);
upperKC:=ma+rangema*multKC;
lowerKC:=ma-rangema*multKC;
sqzOn:=If(lowerBB>lowerKC AND upperBB<upperKC,1,0); sqzOff:=If(lowerBB<lowerKC AND upperBB>upperKC,1,0);
noSqz:=If(sqzOn=0 AND sqzOff=0,1,0);
x1:=((HHV(H,lengthKC)+LLV(L,lengthKC))/2 + MOV(C,lengthKC,S))/2;
val:=LINEARREG(source - x1,lengthKC);
cross(c,K7) and Cross(val,0)
formülünü deneyebilirsiniz,
bilgilerinize