均价:=SUM(V*C,0)/SUM(V,0),COLORGREEN,LINETHICK1;
最新:=CLOSE,LINETHICK1,COLORRED;
BU:=BARSLAST(CLOSE=HHV(CLOSE,60));
SE:=BARSLAST(CLOSE=LLV(CLOSE,60));
KK1:SE;
KK2:BU;
主力买入5:=KK2<=REF(KK2,1);
DRAWTEXT(主力买入5, KK1,'买'),COLORYELLOW;
DRAWICON(主力买入5,最新,1);
XT_1:=LLV(MA((LOW+HIGH+3*CLOSE+OPEN)/6,6),89);
散筹:-50+2*(EMA((LOW+HIGH+3*CLOSE+OPEN)/6*(HHV(HIGH,10)-CLOSE)/(HHV(HIGH,10)-LLV(LOW,10))*20/10+XT_1,2)),COLORGREEN,LINETHICK3;
趋势:-50+2*(1.86*EMA(CLOSE,5)-EMA(CLOSE,13)),COLORRED,LINETHICK3;
XT_2:=MA(CLOSE,17)+MA(CLOSE,17)-REF(MA(CLOSE,17),1);
XT_3:=IF(MA(CLOSE,17)< XT_2,XT_2,MA(CLOSE,17));
浮筹:-50+2*(XT_3-(EMA(CLOSE,3)-XT_3)),COLORGREEN,LINETHICK3;
DRAWTEXT(ISLASTBAR,散筹,' 散筹'),COLORGREEN;
DRAWTEXT(ISLASTBAR,趋势,' 趋势'),COLORRED;
DRAWTEXT(ISLASTBAR,浮筹,' 浮筹'),COLORGREEN;