VAR1:=C-REF(C,1);
VAR2:=O-REF(O,2);
VAR3:=H-REF(H,1);
VAR4:=L-REF(L,1);
VAR5:=(VAR1+VAR2+VAR3+VAR4)/4;
资金:=(MA(VAR5*vol,10)+EMA(VAR5*VOL,16))/3000,LINETHICK0;
涨幅:=(C-REF(C,1))/REF(C,1)*WINNER(C*1.2)*10;
涨幅1:=(C-REF(C,1))/REF(C,1)*WINNER(C*0.9)*10;
STICKLINE(资金>0,资金*涨幅,0,3,0), COLORRED;
STICKLINE(资金*涨幅<0,资金*涨幅,0,3,0) ,COLORGREEN;
STICKLINE(资金<0,-资金*涨幅,0,3,0) ,COLORGREEN;
STICKLINE(资金>0,资金*涨幅1,0,1,0), COLORYELLOW;
主力持仓:25*0.05*EMA(100*(CLOSE-LLV(LOW,34))/(HHV(HIGH,34)-LLV(LOW,34)),3),COLORFF00FF;
强弱分界X: 4*25,COLORYELLOW;
主力筹码集中度:WINNER(C)*5*25,COLORRED;
散筹筹码集中度:(WINNER(C*1.1)-WINNER(C*0.9))*5*25,COLORGREEN;
DRAWTEXT(ISLASTBAR,主力持仓,'主力持仓'),COLORRED;
DRAWTEXT(ISLASTBAR,主力筹码集中度,' 主力筹码'),COLORFF00FF;