MerhabaIar,
Aşağıdaki şekiIde deneyiniz,
ZG1:=5;
YAKINLIKYUZDESI:=1;
BARSAY:=5;
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));
T1:=valuewhen(1.,ZZHL<REF(ZZHL,-1) AND REF(ZZHL,-1)>REF(ZZHL,-2),REF(H,-1));
Y61.8:= (LastValue(HHV(H,100))-LastValue(LLV(L,100)))*0.618+LastValue(LLV(L,100));
C/Y61.8<1 AND C/Y61.8>0.99 AND
ABS(D1-D2)*100/D2<=YAKINLIKYUZDESI and barssince(ZZHL>REF(ZZHL,-1) AND REF(ZZHL,-1)<REF(ZZHL,-2))<=BARSAY
iyi çaIışmaIar