VAR1:=LLV(LOW,24);
VAR2:=HHV(HIGH,24);
VAR3:=SMA((CLOSE-VAR1)/(VAR2-VAR1)*100,5,1);
VAR4:=SMA((VAR2-CLOSE)/(VAR2-VAR1)*100,5,1);
主力:=VAR3,COLORRED;
{ -通达信指标公式}
VAR5:=SMA(MAX(CLOSE-REF(CLOSE,1),0),5,1)/SMA(Abs(CLOSE-REF(CLOSE,1)),5,1)*100;
操作:=EMA(VAR5,7),COLORYELLOW,LINETHICK2;
过年:(crOSS(操作,50 )AND 主力<操作 AND 主力>22 AND 主力<46),COLORYELLOW;
DRAWTEXT(过年,0.5,'抢红包'),COLORRED;