Merhabalar,
Aşağıdaki şekilde deneyebilirsiniz,
kama ema14 yukarı keserse
periods:=10;
periods2:=2;
periods3:=30;
Pds:=Periods+1;
FastSC:=2/(periods2+1);
SlowSC:=2/(periods3+1);
{Kaufman Adaptive Moving Average}
Direction:=Abs(C-Ref(C,-periods));
Volatility:=Sum(Abs(C-REF(C,-1)),periods);
ER:=Direction/Volatility;
SSC:=ER*(FastSC-SlowSC)+SlowSC;
Constant:= POWER(SSC,2);
KAMA:=If(Cum(1) = Pds,Ref(C,-1)+Constant*(C-Ref(C,-1)),PREV+Constant*(C-PREV));
CROSS(KAMA,MOV(C,14,E))
aşağı keserse
periods:=10;
periods2:=2;
periods3:=30;
Pds:=Periods+1;
FastSC:=2/(periods2+1);
SlowSC:=2/(periods3+1);
{Kaufman Adaptive Moving Average}
Direction:=Abs(C-Ref(C,-periods));
Volatility:=Sum(Abs(C-REF(C,-1)),periods);
ER:=Direction/Volatility;
SSC:=ER*(FastSC-SlowSC)+SlowSC;
Constant:= POWER(SSC,2);
KAMA:=If(Cum(1) = Pds,Ref(C,-1)+Constant*(C-Ref(C,-1)),PREV+Constant*(C-PREV));
CROSS(MOV(C,14,E),KAMA)
İyi Çalışmalar