AA10:=SUM(AMOUNT,BARSCOUNT(C))/SUM(VOL*100,BARSCOUNT(C));
BB10:=BETWEEN(C/AA10,C+H,C-H);
DRAWICON(ISLASTBAR AND C>REF(C,1),C,1);
DRAWICON(ISLASTBAR AND C<REF(C,1),C,2);
0,COLOR808080,DOTLINE;20,COLOR00FFFF,DOTLINE;50,COLORRED,DOTLINE;80,COLORFFFF00,DOTLINE;100,COLOR808080,DOTLINE;
DRAWTEXT(ISLASTBAR,20,' 底部区'),COLORFFFFFF;
DRAWTEXT(ISLASTBAR,80,' 风险区'),COLORFFFFFF;
DRAWTEXT(ISLASTBAR,50,' 拉升区'),COLORFFFFFF;
DRAWTEXT(ISLASTBAR,95,' 顶 卖'),COLORFFFFFF;
DRAWTEXT(ISLASTBAR,3,' 底 买'),COLORFFFFFF;
{KDJ}
RSV:=(CLOSE-LLV(LOW,19))/(HHV(HIGH,19)-LLV(LOW,19))*100;
K:SMA(RSV,3,1),COLORBLUE,LINETHICK1;
D:SMA(K,3,1),COLORBLACK,LINETHICK1;
J:3*K-2*D,COLOR00FFFF,LINETHICK2;
DRAWBAND(K,RGB(758,8,18),D,RGB(0,200,200));
IF(K<REF(K,1),K,DRAWNULL),COLOR919100,LINETHICK1;
IF(D<REF(D,1),D,DRAWNULL),COLOR919100,LINETHICK1;
IF(J<REF(J,1),J,DRAWNULL),COLORFFFF00,LINETHICK2;
IF(K>REF(K,1),K,DRAWNULL),COLOR4444FF,LINETHICK1;
IF(D>REF(D,1),D,DRAWNULL),COLOR4444FF,LINETHICK1;
IF(J>REF(J,1),J,DRAWNULL),COLOR1E1EFF,LINETHICK2;
VAR11:=(CLOSE-MA(CLOSE,6))/MA(CLOSE,6)*100;
VAR12:=(CLOSE-MA(CLOSE,12))/MA(CLOSE,12)*100;
VAR13:=(CLOSE-MA(CLOSE,24))/MA(CLOSE,24)*100;
VAR4:=(VAR11+2*VAR12+3*VAR13)/7;
VAR5:=MA(VAR4,1);
预警:STICKLINE(VAR5<=-8,68,50,1,0),COLORYELLOW;
底部准备: IF(VAR5<-8,75,50),LINETHICK1,COLORCYAN;
底部预警: IF(VAR5<-8,82,50),LINETHICK1,COLOR000091;
F:=100*(C-REF(C,1))/REF(C,1);
博尔:=IF(C<REF(O,1) AND F<0,1,0);
P1:=博尔;
量化:=IF(C<REF(O,2) AND F<0,1,0);
P2:=量化;
P1=0 AND REF(P1,1)=1 AND P2=0 AND REF(P2,1)=1,STICK,COLORFF00FF,LINETHICK1;
DRAWICON(P1=0>0,P1=0,1);
{股票指标网 }
三日最低:=EMA((REF(L,4)+REF(L,3)+REF(L,2))/3,3);
三日最高:=EMA((REF(H,4)+REF(H,3)+REF(H,2))/3,3),COLORWHITE;
高:=CROSS(CROSS(三日最高,C),0.6),STICK,COLORWHITE;
DRAWTEXT(高,2.1,'S'),COLORFFFF00;
DRAWICON(高>0,高,2);
TJ1:=((C-LLV(LOW,22))/(HHV(HIGH,22)-LLV(LOW,22)))*110,NODRAW;
TJF:=SMA(TJ1,10,2),NODRAW;
TJFF:=SMA(TJ1,17,3),NODRAW;