Merhaba,
AL
period:=10;
median:=stofk(14,3);
maxMedian:=HHV(median,period);
minMedian:=LLV(median,period);
nValue1:=0.33*2*((median-minMedian)/(maxMedian-minMedian)-0.5)+0.67*prev;
nValue2:=if(nValue1>0.99,0.999,if(nValue1<-0.99,-0.999,nValue1));
nFish:=0.5*log((1+nValue2)/(1-nValue2))+0.5*prev;
pos:=if(nFish>ref(nFish,-1),1,if(nFish<ref(nFish,-1),-1,prev));
cross(nFish,ref(nFish,-1))
SAT
period:=10;
median:=stofk(14,3);
maxMedian:=HHV(median,period);
minMedian:=LLV(median,period);
nValue1:=0.33*2*((median-minMedian)/(maxMedian-minMedian)-0.5)+0.67*prev;
nValue2:=if(nValue1>0.99,0.999,if(nValue1<-0.99,-0.999,nValue1));
nFish:=0.5*log((1+nValue2)/(1-nValue2))+0.5*prev;
pos:=if(nFish>ref(nFish,-1),1,if(nFish<ref(nFish,-1),-1,prev));
cross(ref(nFish,-1),nFish)