主图
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,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;
副图2
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;