Merhabalar,
Aşağıdaki şekilde deneyebilirsiniz,
İndikatör
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));
KAMA
AL
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(C,KAMA)
SAT
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,c)
İyi Çalışmalar