编写要求:
连续3个涨停后3天内跌破5天线的选股指标。
公式在线网解答:
ZT:=CEILING((C-REF(C,1))*100+0.5)/100>=(FLOOR(REF(C,1)*10+0.5)/100) AND PERIOD=5;
MA5:=MA(C,5);
TJ1:=C<MA5 AND LAST(ZT,3,1);
TJ2:=C<MA5 AND REF(C,1)>REF(MA5,1) AND LAST(ZT,4,2);
TJ3:=C<MA5 AND REF(C,1)>REF(MA5,1) AND REF(C,2)>REF(MA5,2) AND LAST(ZT,5,3);
XG:TJ1 OR TJ2 OR TJ3;