主图
X_1:=(CLOSE*2+HIGH+LOW)/4;
X_2:=MA(3*X_1-2*SMA(X_1,2,1),12);
反转:SAR(125,1,7),COLORGREEN;
STICKLINE(CLOSE<反转,反转,X_2,1,0),COLORGRAY;
STICKLINE(CLOSE>反转,反转,X_2,0,0),COLORYELLOW;
STICKLINE(CLOSE>反转,反转,X_2,0.2,0),COLOR008888;
STICKLINE(CLOSE>反转,反转,X_2,0.4,1),COLOR00BFBF;
STICKLINE(CLOSE>反转,反转,X_2,0.6,0),COLOR00DBDB;
STICKLINE(CLOSE>反转,反转,X_2,1,0),COLOR00F0F0;
X_3:=HHV(HIGH,6);
X_4:=HHV(HIGH,9);
X_5:=HHV(HIGH,17);
X_6:=HHV(HIGH,34);
X_7:=HHV(HIGH,68);
X_8:=HHV(HIGH,125);
X_9:=HHV(HIGH,250);
X_10:=LLV(LOW,6);
X_11:=LLV(LOW,9);
X_12:=LLV(LOW,17);
X_13:=LLV(LOW,34);
X_14:=LLV(LOW,68);
X_15:=LLV(LOW,125);
X_16:=LLV(LOW,250);
DRAWBAND(X_3,RGB(80,0,80),X_4,RGB(88,8,240));
DRAWBAND(X_4,RGB(80,30,80),X_5,RGB(88,38,240));
DRAWBAND(X_5,RGB(80,60,80),X_6,RGB(88,68,240));
DRAWBAND(X_6,RGB(80,90,80),X_7,RGB(88,98,240));
DRAWBAND(X_7,RGB(80,120,80),X_8,RGB(88,128,240));
DRAWBAND(X_8,RGB(80,150,80),X_9,RGB(88,158,240));
DRAWBAND(X_15,RGB(188,38,45),X_16,RGB(188,38,45));
DRAWBAND(X_14,RGB(150,10,20),X_15,RGB(150,10,20));
DRAWBAND(X_13,RGB(100,5,15),X_14,RGB(100,5,15));
DRAWBAND(X_12,RGB(188,58,65),X_13,RGB(188,58,65));
DRAWBAND(X_11,RGB(188,48,55),X_12,RGB(188,48,55));
DRAWBAND(X_10,RGB(200,15,100),X_11,RGB(200,15,100));
副图1
DRAWGBK(O>C,RGB(50,25,2),RGB(0,25,50),0,0,0);
DI:=EMA(CLOSE,5)-EMA(CLOSE,10);
DE:=EMA(DI,5);
MACD:=(DI-DE)*400,COLORSTICK;
VL:=REF(L,1);
VH:=REF(H,1);
VAR1:=SMA(ABS(H-VH),13,1)/SMA(MAX(H-VH,0),13,1)*100;
VAR2:=SMA(ABS(L-VL),13,1)/SMA(MAX(L-VL,0),13,1)*100;
VAR3:=MA(VAR1,13);
VAR4:=MA(VAR2,13);
VAR5:=LLV(L,34);
VAR6:=HHV(H,34);
VAR7:=EMA(IF(H>=VAR6,VAR3,0),3);
VAR8:=EMA(IF(L<=VAR5,VAR4,0),3);
VAR9:=(SMA(SMA((((C-LLV(L,54))/(HHV(H,54)-LLV(L,54)))*100),7,1),5,1));
VAR10:=((SMA(((C-LLV(L,54))/(HHV(H,54)-LLV(L,54))*100),7,1))*16.18)-(VAR9*10.9);
VAR11:=FILTER(IF(VAR10<=VAR9 AND VAR8>REF(VAR8,1),VAR8*8,0),55);
VAR21:=LLV(L,60);
VAR31:=HHV(H,60);
VAR41:=EMA((C-VAR21)/(VAR31-VAR21)*100,13);
VAR51:=EMA(0.667*REF(VAR41,1)+0.333*VAR41,21);
VARL2:=FILTER(CROSS(VAR51,VAR41) AND VAR41>84,13);
持股线:=MA(C,20);
持股:IF(MA(C,5)>持股线,持股线,DRAWNULL),COLOR00FF00,LINETHICK2;
上升:IF(MA(C,5)>持股线,持股线*1.04,DRAWNULL),COLOR00FF00,LINETHICK2,CROSSDOT;
持币:IF(MA(C,5)<持股线,持股线,DRAWNULL),COLOR3366CC,LINETHICK2;
QJJ:=FILTER((CROSS(DI,DE) AND DE<0 AND CROSS(C,持股线)),90);
DRAWICON(HHV(VAR11,5)=1 AND (C=LLV(C,10) OR L=LLV(L,10)) AND C>REF(C,1)*0.905,
C*0.98,5);
DRAWICON(QJJ,H*1.05,1);
金牛:IF(QJJ=QJJ,0,0),COLOR0099FF;
DRAWICON(VARL2,H*1.03,2);
STICKLINE(QJJ,MA(C,20)*0.7,MA(C,20)*0.9,12,0),COLOR0099FF;
STICKLINE(QJJ,MA(C,20)*0.7,MA(C,20)*0.6,18,0),COLOR0099FF;
STICKLINE(QJJ,MA(C,20)*0.9,MA(C,20)*0.8,12,0),COLOR0099FF;
STICKLINE(QJJ,MA(C,20)*0.9,MA(C,20)*0.7,8,0),COLOR000000;
STICKLINE(QJJ,MA(C,20)*0.6,MA(C,20)*0.4,10,0),COLOR0099FF;
STICKLINE(QJJ,MA(C,20)*0.25,MA(C,20)*0.4,7,0),COLOR0099FF;
副图2
DRAWGBK(O>C,RGB(50,25,1),RGB(0,25,50),0,0,0);
DIF:=10*(EMA(CLOSE,20)-EMA(CLOSE,120));
DEA:=EMA(DIF,10);
MACD:=(DIF-DEA)*2,COLORSTICK;
A3:=DIF;
柱值:A3,NODRAW,COLORYELLOW;
STICKLINE(A3>REF(A3,1)AND A3<0,0,A3,-1,0),COLOR003399;
STICKLINE(A3>REF(A3,1)AND A3<0,0,A3,2,0),COLOR0099BB;
STICKLINE(A3>REF(A3,1)AND A3<0,0,A3,1,0),COLOR00AADD;
STICKLINE(A3>REF(A3,1)AND A3<0,0,A3,0.1,0),COLOR00FFFF;
STICKLINE(A3>REF(A3,1)AND A3>0,0,A3,-1,0),COLOR000099;
STICKLINE(A3>REF(A3,1)AND A3>0,0,A3,2,0),COLOR0000BB;
STICKLINE(A3>REF(A3,1)AND A3>0,0,A3,1,0),COLOR0000DD;
STICKLINE(A3>REF(A3,1)AND A3>0,0,A3,0.1,0),COLOR0000FF;
STICKLINE(A3<REF(A3,1)AND A3<0,0,A3,-1,0),COLOR339900;
STICKLINE(A3<REF(A3,1)AND A3<0,0,A3,2,0),COLOR77BB00;
STICKLINE(A3<REF(A3,1)AND A3<0,0,A3,1,0),COLOR9ADD00;
STICKLINE(A3<REF(A3,1)AND A3<0,0,A3,0.1,0),COLORDDFF00;
STICKLINE(A3<REF(A3,1)AND A3>0,0,A3,-1,0),COLOR330099;
STICKLINE(A3<REF(A3,1)AND A3>0,0,A3,2,0),COLOR9900BB;
STICKLINE(A3<REF(A3,1)AND A3>0,0,A3,1,0),COLORBB00DD;
STICKLINE(A3<REF(A3,1)AND A3>0,0,A3,0.1,0),COLORFF00FF;
副图3
DRAWGBK(O>C,RGB(50,25,2),RGB(0,25,50),0,0,0);
X_1:=(3*CLOSE+HIGH+LOW+OPEN)/6;
X_2:=EMA(X_1,35);
X_3:=(HHV(X_2,10)+HHV(X_2,30)+HHV(X_2,90))/3;
X_4:=(LLV(X_2,10)+LLV(X_2,30)+LLV(X_2,90))/3;
X_5:=(HHV(X_3,5)+HHV(X_3,15)+HHV(X_3,30))/3;
X_6:=(LLV(X_4,5)+LLV(X_4,15)+LLV(X_4,30))/3;
STICKLINE(EMA(EMA(X_1,2),2)>X_6,(-2),2,12,0),COLORRED;
STICKLINE(EMA(EMA(X_1,2),2)<=X_6,(-2),2,12,0),COLORGREEN;
X_7:=EXPMA(CLOSE,6);
X_8:=EXPMA(CLOSE,18);
M1:500*(X_7-X_8)/X_8+2,COLORYELLOW,LINETHICK2;
M2:EMA(M1,3),COLORBLUE,LINETHICK2;
STICKLINE(M1>2,2,M1,2,1),COLORMAGENTA;
STICKLINE(M1>2 AND EMA(EMA(X_1,2),2)>X_6,2,M1,2,0),COLORMAGENTA;
变向关注:IF(M1>=0 AND REF(M1,1)<0 AND REF(M1,2)<0 AND M2>REF(M2,1) OR (M1>REF(M1,1) AND REF(M1,1)<REF(M1,2) AND REF(M1,2)>0) OR (M1>REF(M1,1) AND REF(M1,1)>REF(M1,2) AND REF(M1,2)<REF(M1,3) AND M2>REF(M2,1) AND REF(M2,1)<=REF(M2,2)) OR (M1>REF(M1,1) AND M2>REF(M2,1) AND REF(M2,1)<=REF(M2,2) AND M1>0 AND M2>0),666,0),NODRAW,COLORYELLOW;
钻2:IF(M1>REF(M1,1) AND REF(M1,1)<REF(M1,2) AND M1>=M2 AND REF(M1,1)<REF(M2,1),1,0),NODRAW,COLORYELLOW;
DRAWTEXT(钻2=1,M1*1.5,2127),COLORRED;
副图4
DRAWGBK(O>C,RGB(50,25,2),RGB(0,25,50),0,0,0);
X_1:=INDEXH;
X_2:=INDEXO;
X_3:=INDEXL;
X_4:=INDEXC;
X_5:=INDEXV;
X_6:=(3*CLOSE+HIGH+LOW+OPEN)/6;
X_7:=EMA(X_6,35);
X_8:=(HHV(X_7,5)+HHV(X_7,15)+HHV(X_7,30))/3;
X_9:=(LLV(X_7,5)+LLV(X_7,15)+LLV(X_7,30))/3;
牛线:(HHV(X_8,5)+HHV(X_8,15)+HHV(X_8,30))/3,COLORYELLOW;
X_10:=(LLV(X_9,5)+LLV(X_9,15)+LLV(X_9,30))/3;
X_11:=X_4/EMA(X_4,120);
大盘中线:EMA(EMA(CLOSE,120)*X_11,2),COLORRED;
STICKLINE(1,0,大盘中线,0.1,1),COLORRED;
X_12:=X_6>=牛线 AND X_6>=大盘中线;
X_13:=X_6<牛线 AND X_6>=大盘中线 AND 牛线>大盘中线;
X_14:=X_6<=大盘中线 AND X_6<=牛线 OR (X_6>=牛线 AND X_6<大盘中线 AND 牛线<大盘中线);
STICKLINE(X_12=1,HIGH,LOW,3,1),COLORMAGENTA;
STICKLINE(X_12=1,OPEN,CLOSE,3,0),COLORMAGENTA;
STICKLINE(X_13=1,HIGH,LOW,3,1),COLORRED;
STICKLINE(X_13=1,OPEN,CLOSE,3,0),COLORRED;
STICKLINE(X_14=1,HIGH,LOW,3,1),COLORGRAY;
美女:=IF(X_12=1,1,(-1)),NODRAW,COLORWHITE;
关注:=IF(美女=1 AND REF(美女,1)=(-1),1,0),NODRAW,COLORGREEN;