merhaba,
görebildiğiniz kadarıyla tanımlamaların yeri farklı idi,
değiştirdik,
aşağıdaki gibi dneyebilirsiniz
bilgilerinize
NW:=ROC(year()<>ref(year(),-1),1,$)<0;
x1t:=LastValue(ValueWhen(1,NW=-1,Cum(1)));
WH:=ValueWhen(1,Nw,Ref(HighestSince(1,Nw,H),-1));
WL:=ValueWhen(1,Nw,Ref(LowestSince(1,Nw,L),-1));
WCL:=ValueWhen(1,Nw,Ref(C,-1));
H6:=(WH/WL)*WCL;
H4:=if(cum(1)=>x1t,(WCL+(WH-WL)*1.1/2),0);
H5:=H4+1.168*(H4-H3);
H35:=H4-(H4-H3)/2;
H3:=if(cum(1)=>x1t,(WCL+(WH-WL)*1.1/4),0);
CP:=(WH+WL+WCL)/3;
BC:=(WH+WL)/2;
TC:=CP-BC+CP;
L3:=if(cum(1)=>x1t, (WCL-(WH-WL)*1.1/4),0);L35:=L3-(L3-L4)/2;
L4:=if(cum(1)=>x1t,(WCL-(WH-WL)*1.1/2),0);
L6:=WCL-(H6-WCL);
L5:=L4-1.168*(L3-L4);
H6;H5;H4;H35;H3;TC;CP;BC;L3;L35;L4;L6;L5