Merhaba,
Aşağıdaki gibi deneyebilirsiniz,
yuzde:=opt2;
length := OPT1;
A:=OPT3;
B:=OPT4;
AHMA:=PREV+((H+L)/2-(PREV+ref(PREV,-length+1))/2)/length;
IND:=AHMA;
if(IND>MOST(IND, length,yuzde),
cross(IND,MOST(IND, length,A)),
cross(IND,MOST(IND, length ,B)))