编写条件:
MA5、MA10、MA20,三条线在MA60线上粘合一段时间后分开的选股公式。
编写方法:
N:=1.01;
A1:=MAX(MAX(MA(C,5),MA(C,10)),MA(C,20));
A2:=MIN(MIN(MA(C,5),MA(C,10)),MA(C,20));
TJ1:=MA(C,5)>MA(C,60) AND MA(C,10)>MA(C,60) AND MA(C,20)>MA(C,60);
TJ2:=MA(C,5)>MA(C,10) AND MA(C,10)>MA(C,20) AND MA(C,20)>MA(C,60);
NH:=A1/A2<N;
XG:BETWEEN(BARSLAST(NH AND TJ1),1,10) AND TJ2;