Merhaba..
Şu 2 taramayı birleştirir misiniz? Teşekkürler..
1. Tarama
coeff:=1;
AP:=14;
momentum:=1;
mom:=if(momentum=1,MFI(AP),RSI(AP));
upT:=L-ATR(AP)*coeff;
downT:=H+ATR(AP)*coeff;
AlphaTrend:=If(mom>=50,If(upT<PREV,PREV,upT),If(downT>PREV,PREV,downT));
cross(C,AlphaTrend) and RSI(14)>57
2.tarama
d02:=L;
d12:=ref(L,-1);
d22:=ref(L,-2);
d32:=ref(L,-3);
d42:=ref(L,-4);
h32:=ref(H,-3);
h22:=ref(h,-2);
izdip1:=if((d22<d02 and d22<d12 and d22<d32 and d22<d42 and ref(h,-1)<max(h32,h22) and h>max(h32,h22)),-1,0);
izdip2:=if((d12<d02 and d12<d22 and d12<d32 and h>max(h22,ref(h,-1))),-1,0);
izdip1=-1 or izdip2=-1