merhaba,
aşağıdaki gibi kullanabilirsiniz,
pmax opt li yazdık
al için CCı If;
period:=opt1;
coeff:=opt2;
MovPeriod:=opt3;
K:=MOV((H+L)/2,MovPeriod,VAR);
OFFSET:=coeff*ATRe(period);
STR:=K+OFFSET;
STS:=K-OFFSET;
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))));
CCIpd:=5;
WMApd:=9;
CCI1:= 0.1*(cci(CCIpd)/4);
CCI2:= Mov(CCI1,WMApd,W);
CCI:=(Exp(2*CCI2)-1)/(Exp(2*CCI2)+1);
CCI>-0.5 and cross(K,PMax)
sat sadece pmax
period:=opt1;
coeff:=opt2;
MovPeriod:=opt3;
K:=MOV((H+L)/2,MovPeriod,VAR);
OFFSET:=coeff*ATRe(period);
STR:=K+OFFSET;
STS:=K-OFFSET;
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,K)
iyi günler dileriz.