Pe:=Input("Periods",3,10000,144); n:=5;
Y1:=LastValue(Cum(1)-n)-Pe+1<= Cum(1);
Z:=LastValue(LinearReg(ref(C,-n),Pe));
Y:=LastValue(Cum(1)-n)-Cum(1);
U:=Z-(LastValue(LinRegSlope(ref(C,-n),Pe))*Y);
ust:= LastValue(highestsince(1,y1=0,-y1*(ref(c,-n)-u)));
alt:=LastValue(highestsince(1,y1=0,-y1*(u-ref(c,-n))));
-y1*(u+ust) ; (-y1*u) ; (-y1*(u-alt))
bu oto trendi iq uyarlarmısınız.