A:=BARSCOUNT(C)-BARPOS+1;A1:=DAY<>REF(DAY,1);A2:=BARSLAST(A1)+1;A3:=MA(C,A2);A4:=SUM(AMOUNT,A2)/SUM(VOL,A2)/100;A5:=IF(CAPITAL>0,A4,A3);现价:=IF(A<=A2,CLOSE,0);均价:=IF(A<=A2,A5,0);开盘:=barslast(time<=094000);SC:llv(现价,开盘)>=均价;