编写要求:
第1次站上年线后 N日内2次下去 最终第3次站上年线
www.gszx.com.cn公式在线网解答:
N:=40; A:=BARSLAST(CROSS(C,MA(C,240))); B:=CROSS(COUNT(CROSS(MA(C,240),C),A+1)>=2,0.5) AND A<=N; REF(BARSLAST(B),1)<=20 AND CROSS(C,MA(C,240));