A:=CURRBARSCOUNT;
A1:=DAY!=REF(DAY,1);
A2:=BARSLAST(A1)+1;
A3:=REF(IF(A2=1,1,A2),A2);
A4:=CONST(REF(HHV(H,A3),A2));
A5:=CONST(REF(LLV(L,A3),A2));
A6:=MA(AMO,A3)/MA(VOL,A3)/100;
A7:=REF(MA((H+O+L+C)/4,A3),A2);
A8:=IF(CAPITAL>0,REF(A6,A2),A7);
昨高:IF(A<=CONST(A3+A2),A4,DRAWNULL);
昨低:IF(A<=CONST(A3+A2),A5,DRAWNULL);
CJL:=IF(DYNAINFO(10)>99999999,STRCAT(CON2STR(DYNAINFO(10)/100000000,2)<10,'亿'),STRCAT(CON2STR(DYNAINFO(10)/10000,0),'万'));
DRAWTEXT_FIX(01,0.25,0.55.0,0,CJL),COLOR0099FF;
N:=21;M:=55;Q:=3;
回归:=EMA(SLOPE(CLOSE,N)*20+CLOSE,M)*1,COLORMAGENTA,LINETHICK3;
平滑:=EMA(CLOSE,Q),COLORYELLOW,LINETHICK2;
简单差:=平滑-回归;
DRAWICON(CROSS(ZIG(3,8),REF(ZIG(3,8),1)),平滑,9);
{VOL ,VOLSTICK;}
MM1:=0;
MM:=1;
流通盘:=CAPITAL-MM/100;
DBHS:IF(CAPITAL<2000000,V/CAPITAL*100,V/流通盘*100);
标准量:=IF(COUNT(V>流通盘/250,0)>0,流通盘/1000,0),COLORFF00FF;
{STICKLINE(C<REF(C,1),0,VOL,5,0),COLORGREEN;
STICKLINE(C>REF(C,1),0,VOL,5,0),COLOR4040FF;
STICKLINE(C=REF(C,1),0,VOL,5,0),COLORWHITE;}
总量:SUM(V,0),NODRAW,COLORCYAN;
最大量:=HHV(V,0),COLORWHITE;
最大换手:HHV(DBHS,240),COLORWHITE,NODRAW;
{STICKLINE(C<REF(C,1) AND V>REF(最大量,1) AND TIME>94200,0,VOL,5,0),COLORGREEN,LINETHICK2;
STICKLINE(C>REF(C,1) AND V>REF(最大量,1) AND TIME>94200,0,VOL,5,0),COLORRED,LINETHICK2;
STICKLINE(C=REF(C,1) AND V>REF(最大量,1) AND TIME>94200,0,VOL,5,0),COLORWHITE,LINETHICK2;}
{STICKLINE(V>REF(最大量,1)*1.5 AND C>REF(C,1) AND DBHS>0.15 AND TIME<=0935,0,VOL,5,0),COLORYELLOW,LINETHICK1;
STICKLINE(C>REF(C,1) AND DBHS>0.22 AND TIME<=0935,0,VOL,5,0),COLOR66FFFF,LINETHICK1;}
LXTP:=((V>REF(V,1) AND DBHS>=0.1 AND REF(V,1)>REF(最大量,2)) OR (V>REF(最大量,1) AND DBHS>=0.08 AND REF(V,2)>REF(最大量,3))) AND C>REF(C,1);
LXTP1:=((V>REF(V,1)*0.9 AND DBHS>=0.1 AND REF(V,1)>REF(最大量,2)) OR (V>REF(最大量,1)*0.9 AND DBHS>=0.1 AND REF(V,2)>REF(最大量,3))) AND C>REF(C,1);
DRAWTEXT(LXTP1 AND TIME<=0935,V*0.98,'★'),COLORDD22B8,LINETHICK3;
DRAWTEXT(LXTP AND TIME<=0935,V*0.98,'★'),COLORRED,LINETHICK3;
N3:=BARSLAST(CROSS(LXTP,0));
踪3:IF(LXTP>0,N3+1,0),NODRAW;
时长:=TIME>=093000 AND TIME<=143000;
量数:SUM(踪3,时长),NODRAW;
XXX:COUNT(量数,5);
比例:=V/MA(V,10)*100;
{V1X:=EMA(CLOSE,60)-EMA(CLOSE,300);
V2X:=EMA(V1X,300);
V3:=(CLOSE-(LOW,8))/((HIGH,8)-LLV(LOW,8))*100;
V4:=SMA(V3,2,1),NODRAW;
V5Z:=SMA(V4,2,1),NODRAW;
V6:=CLOSE/REF(CLOSE,3)>=1.1;
V7:=BACKSET(V6,3);
大涨:(V7 AND COUNT(V7,2.9)=1)*999999999,LINETHICK9,COLORGREEN;
大涨1:(V7 AND COUNT(V7,3)=1)*-999999999,LINETHICK9,COLORGREEN;};