merhaba,
sayın Kıvanç Özbilgiç in yazdığı formülü deneyebilirsiniz,
ZG1:=5;
YAKINLIKYUZDESI:=3;
DIPFARKIYUZDESI:=1;
BARSAY:=3;
ZZ:=If(PeakBars(1,H,ZG1)=0,Zig(H,ZG1,%),If(TroughBars(1,L,ZG1)=0,Zig(L,ZG1,%),If((Zig(H,ZG1,%)+Zig(L,ZG1,%))/2>Ref((Zig(H,ZG1,%)+Zig(L,ZG1,%))/2,-1),H,L)));
ZZHL:=Zig(ZZ,ZG1,%);
D1:=valuewhen(1.,ZZHL>REF(ZZHL,-1) AND REF(ZZHL,-1)<REF(ZZHL,-2),REF(L,-1));
D2:=valuewhen(2.,ZZHL>REF(ZZHL,-1) AND REF(ZZHL,-1)<REF(ZZHL,-2),REF(L,-1));
D3:=valuewhen(3.,ZZHL>REF(ZZHL,-1) AND REF(ZZHL,-1)<REF(ZZHL,-2),REF(L,-1));
T2:=valuewhen(2.,ZZHL<REF(ZZHL,-1) AND REF(ZZHL,-1)>REF(ZZHL,-2),REF(H,-1));
T1:=valuewhen(1.,ZZHL<REF(ZZHL,-1) AND REF(ZZHL,-1)>REF(ZZHL,-2),REF(H,-1));
ABS(D1-D3)*100/D3<=YAKINLIKYUZDESI AND D1*(1-DIPFARKIYUZDESI/100)>D2 AND D3*(1-DIPFARKIYUZDESI/100)>
D2 AND ABS(T1-T2)*100/T2<=YAKINLIKYUZDESI and barssince(ZZHL>REF(ZZHL,-1) AND REF(ZZHL,-1)<REF(ZZHL,-2))<=BARSAY
bilgilerinize