MERHABA,
aşağıdaki gibi düzenledik
sizin verdiğiniz kodlara PU-NU ekledik
görebildiğimiz kadarıyla da çok nadir sonuç üretir
BİRİNCİ SENARYO
IND:=RSI(c,14);
K1:=DataTrend(IND,50,-1,Y,D);
K2:=cum(1)-lastvalue(valuewhen(2.,K1=IND,cum(1)));
K3:=barssince(K1=IND);
if(ref(c,-K3)<ref(c,-K2)*0.98 and K2<>0 and K3<>0 and K3<10 and K2-K3>10 and ref(ind,-k3)>ref(ind,-k2)*1.02,1,0) and
BARSSINCE(TDSeqCD()=13.1)>BARSSINCE(TDSeqCD()=-13.1)
AND TDSeq()=1 AND BARSSINCE(TDSeqCD()=-13.1)-BARSSINCE(TDSeq()<=-9)>8 AND
BARSSINCE(TDSeq()<=-9)<BARSSINCE(TDSeqCD()=-13.1)
AND BARSSINCE(TDSeq()>=9)>BARSSINCE(TDSeqCD()=-13.1)
AND BARSSINCE(TDSeq()<=-9 or TDSeq()=-9.1)<5
İKİNCİ SENARYO
IND:=RSI(c,14);
K1:=DataTrend(IND,50,-1,D,Y);
K2:=cum(1)-lastvalue(valuewhen(2.,K1=IND,cum(1)));
K3:=barssince(K1=IND);
if(ref(c,-K3)>ref(c,-K2)*1.02 and K2<>0 and K3<>0 and K3<10 and K2-K3>10 and ref(ind,-k3)<ref(ind,-k2)*.98,1,0) AND
BARSSINCE(TDSeqCD()=13.1)<BARSSINCE(TDSeqCD()=-13.1)
AND TDSeq()=-1 AND BARSSINCE(TDSeqCD()=13.1)-BARSSINCE(TDSeq()>=9)>8 AND
BARSSINCE(TDSeq()>=9)<BARSSINCE(TDSeqCD()=13.1)
AND BARSSINCE(TDSeq()<=-9)>BARSSINCE(TDSeqCD()=13.1)
AND BARSSINCE(TDSeq()=9 or TDSeq()=9.1)<5