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