Merhaba;
Sn.Kıvanç beyin paylaştığı prime için olan pmax opt için al koşulu;
period:=OPT1;
coeff:=OPT2;
MovPeriod:=OPT3;
K:=MOV((H+L)/2,MovPeriod,e);
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(K,PMax)
SAT koşulu;
period:=OPT1;
coeff:=OPT2;
MovPeriod:=OPT3;
K:=MOV((H+L)/2,MovPeriod,e);
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)
Siz ister pmax al cross(mov(c,,21,e),mov(c,5,e) diyerek sat belirleyebilir isterseniz pmax satı sata kopyalayıp al koşulana da 5,21 i kesince al olarak deneyebiilirsiniz