Merhabalar, aşağıda Matriks prime versiyonunda bulunan "ototrend" indikatörünü ve taramasını IQ için uyarlama konusunda yardımcı olabilir misiniz ? Teşekkürler.

İndikatör: 

Pe:=Input("Periods",3,10000,144); n:=1;
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))

Tarama:

Pe:=144; n:=1;
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-alt))<C and (-y1*(u-alt))*1.01>c