merhaba,
aşağıdaki formülleri deneyebilirsiniz
bilgilerinize
Al için,
period:=20;
coeff:=1;
AP:=5;
thisCCI := CCI(period);
lastCCI := Ref(thisCCI,-1);
upT:=L-ATR(AP)*coeff;
downT:=H+ATR(AP)*coeff;
MagicTrend:=If(thisCCI>=0,If(upT<PREV,PREV,upT),If(downT>PREV,PREV,downT));
cross(c,MagicTrend)
sat için
period:=20;
coeff:=1;
AP:=5;
thisCCI := CCI(period);
lastCCI := Ref(thisCCI,-1);
upT:=L-ATR(AP)*coeff;
downT:=H+ATR(AP)*coeff;
MagicTrend:=If(thisCCI>=0,If(upT<PREV,PREV,upT),If(downT>PREV,PREV,downT));
cross(MagicTrend,c)