X_1:=IF(DATE<1151219 AND DATE>900101,1,0);
虎:(EXPMA(CLOSE,500*X_1)-REF(EXPMA(CLOSE,500),1))/REF(EXPMA(CLOSE,500),1)*100,COLORSTICK;
主力:EXPMA((EXPMA(CLOSE,500*X_1)-REF(EXPMA(CLOSE,500),1))/REF(EXPMA(CLOSE,500),1)*100,120)-0.0004,COLORMAGENTA,LINETHICK5;
散户:EXPMA((EXPMA(CLOSE,500*X_1)-REF(EXPMA(CLOSE,500),1))/REF(EXPMA(CLOSE,500),1)*100,200),COLORGREEN,LINETHICK5;
DRAWICON(CROSS(EXPMA(虎,120)-0.0004,EXPMA(虎,200)),EXPMA(虎,200)*1,13);
DRAWICON(CROSS(EXPMA(虎,200),EXPMA(虎,120)-0.0004),EXPMA(虎,200)*1,2);
X_2:=BETWEEN(CLOSE/(SUM(AMOUNT,BARSCOUNT(CLOSE))/SUM(VOL*100,BARSCOUNT(CLOSE))),1.05,0.95);
X_3:=IF(X_2=0,MA(CLOSE,BARSCOUNT(CLOSE)),SUM(AMOUNT,BARSCOUNT(CLOSE))/SUM(VOL*100,BARSCOUNT(CLOSE)));
DRAWICON(CROSS(CLOSE/X_3,1.03),0.02,6);
STICKLINE(CROSS(CLOSE/X_3,1.03),0.02,0,4,0),COLORYELLOW;