Merhabalar
AL
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
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)
İyi Çalışmalar