MA1:MA(CLOSE,M1);
MA2:MA(CLOSE,M2);
MA3:MA(CLOSE,M3);
MA4:MA(CLOSE,M4);
MA5:MA(CLOSE,M5);
MA6:MA(CLOSE,M6);
VOLUME:=VOL,VOLSTICK;
MAVOL1:=MA(VOLUME,30);
MAVOL2:=MA(VOLUME,250);
X:=CROSS(MAVOL2,MAVOL1);
STICKLINE(X,C,O,5,0),COLORBLUE;
X1:=CROSS(MAVOL1,MAVOL2);
STICKLINE(X1,C,O,5,0),COLORYELLOW;
DRAWTEXT(X,L*0.95,'建仓区域'),COLORMAGENTA;
DRAWICON(X,L*0.98,9);
筹码获利:WINNER(C)*100,NODRAW;
STICKLINE(CROSS(MA(C,60),MA(C,120)) AND MACD.DIF> MACD.DEA,C,O,1,0),COLORYELLOW;
二分位:(C+O)/2,NODRAW,COLORRED;
ZT:=C/REF(C,1)>1.0993 AND C=H;
STICKLINE(ZT,O,C,2,0),COLORYELLOW;
DT:=C/REF(C,1)<0.913 AND C=L;
STICKLINE(DT,O,C,2,0),COLORGREEN;
上市日期:=CONST(DAYTODATE((DATETODAY(DATE)-FINANCE(42))))+19000000,COLORLIGRAY,NODRAW;
GGG:=STRCAT(STRCAT('上市日期:',CON2STR(CONST(DAYTODATE((DATETODAY(DATE)-FINANCE(42))))+19000000/1,0)),'上市');
SSTS:=STRCAT(STRCAT('上市天数:',CON2STR(FINANCE(42)/1,0)),'天');
DRAWTEXT_FIX(1,0.001,0,0,GGG),COLORLIGRAY;
DRAWTEXT_FIX(1,0.25,0,0,SSTS),COLORYELLOW;
A1:=REF(V,1);A2:=DVOL;
A3:=A2/A1;
LNX:=A3-REF(A3,1),COLOR00CCCC,LINETHICK1;
E1:=REF(C,1);E2:=DCLOSE;E3:=(E2-E1)/E1*100;
QMX:=E3-REF(E3,1),COLOR00CCCC,LINETHICK2;
XG:=CROSS(LNX,500) AND CROSS(QMX,10);
DRAWTEXT(XG=1,L*0.985,'---金指'),COLORYELLOW;
箱底:=TROUGH(CLOSE,10,1)*1.02,COLOR008888,LINETHICK2;
价低箱底:=COUNT(L<箱底,3);
底箱:=TROUGH(CLOSE,10,1)*1.05,COLOR008888,LINETHICK1;
DRAWTEXT(价低箱底>=1 AND 箱底
DRAWTEXT(MA3> MA4 AND 价低箱底>=1 AND 箱底
破十:=BARSLAST(C=MA2);
破十价高:=REF(H,破十),NODRAW;
IF(CURRBARSCOUNT<=CONST(破十)+1,CONST(破十价高),DRAWNULL),COLORRED,DOTLINE;
破十价低:=REF(L,破十),NODRAW;
IF(CURRBARSCOUNT<=CONST(破十)+1,CONST(破十价低),DRAWNULL),COLORGREEN,DOTLINE;
DRAWNUMBER(CURRBARSCOUNT,破十价高,破十价高),COLORRED;
DRAWTEXT(CLOSE> MA1 AND REF(CLOSE,1)MA3 AND MA2> MA3,L*0.999,'上五') ,COLORRED;
DRAWTEXT(CLOSEREF(MA1,1) AND MA1
DRAWNUMBER(CURRBARSCOUNT=3,破十价低,破十价低),COLORGREEN;
QJ:=BETWEEN(DATE,1131204,1200502);
QJGZ:=HHV(QJ*H,0);
QJGD:=QJGZ=H AND QJ;
JDGD:=FILTERX(QJGD,SUM(QJ,0));
高点价格:REF(H,BARSLAST(JDGD));
日价格:高点价格/3;
周价格:高点价格/5;
月价格:高点价格/10;
DRAWNUMBER(CURRBARSCOUNT=6,高点价格,高点价格);
DRAWTEXT(CURRBARSCOUNT=26,高点价格*0.96,'前高价格');
DRAWNUMBER(CURRBARSCOUNT=6,日价格,日价格);
DRAWTEXT(CURRBARSCOUNT=26,日价格*0.96,'日投价格'),COLORYELLOW;
DRAWNUMBER(CURRBARSCOUNT=6,周价格,周价格);
DRAWTEXT(CURRBARSCOUNT=26,周价格*0.96,'周投价格'),COLORMAGENTA;
DRAWNUMBER(CURRBARSCOUNT=6,月价格,月价格);
DRAWTEXT(CURRBARSCOUNT=26,月价格*0.96,'月投价格'),COLORGREEN;
DRAWTEXT(CURRBARSCOUNT=56,月价格*1.2,'骑牛技术'),COLORRED;
STICKLINE(CROSS(MA(C,5),MA(C,10)),C,O,1,0),COLORYELLOW;
STICKLINE(CROSS(MA(C,10),MA(C,5)),C,O,1,0),COLORBLUE;
RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
K:=SMA(RSV,3,1);
D:=SMA(K,3,1);
J:=3*K-2*D;
DIFF:=EMA(CLOSE,12)-EMA(CLOSE,26);
DEA:=EMA(DIFF,9);
DIF:=EMA(CLOSE,12)-EMA(CLOSE,26);
DEAA:=EMA(DIF,9);
MACD:=(DIFF-DEA)*2,COLORSTICK;
DRAWTEXT(KDEAA, L*0.98,'多方') ,COLORRED;
DRAWTEXT(K>D AND BARSLAST(CROSS(K,D))+1=1 AND DIF0, L*0.97,'空方') ,COLORBLUE;