merhaba,
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));
MagicTrend>ref(MagicTrend,-1) AND ref(MagicTrend,-1) <=ref(MagicTrend,-2)
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));
MagicTrend<ref(MagicTrend,-1) AND ref(MagicTrend,-1) >=ref(MagicTrend,-2)
şeklinde kullanabilirsiniz
bilgilerinize