Trend Magic İndikatörü by kivancozbilgic idealdata karşılığı varmıdır
Kod:
period:=input("CCI period",1,500,20);
coeff:=input("ATR Multiplier",1,20,1);
AP:=input("ATR Period",1,500,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
Yer İmleri