DRAWGBK(CLOSE>0,RGB(150,50,175),RGB(0,25,100),0,2,0);
DRAWTEXT_FIX(CURRBARSCOUNT=1,0.5,0,0,1),COLORCYAN;
赚钱轨道:(MA(CLOSE,3)+MA(CLOSE,6)+MA(CLOSE,12)+MA(CLOSE,24))/4,COLORRED,LINETHICK2;
X_1:=MA(CLOSE,20);
DRAWBAND(赚钱轨道,RGB(155,50,50),X_1,RGB(0,100,50));
IF(赚钱轨道< X_1 OR CLOSE< 赚钱轨道,赚钱轨道,DRAWNULL),COLORBLUE,LINETHICK2;
拉升线:IF(赚钱轨道>X_1,X_1,DRAWNULL),COLORMAGENTA,LINETHICK3;
下跌线:IF(赚钱轨道<=X_1,X_1,DRAWNULL),COLORLIBLUE,LINETHICK2;
X_2:=(CLOSE+HIGH+LOW+OPEN)/4;
X_3:=MA((CLOSE*2+HIGH)/3,5);
X_4:=MA((OPEN*2+HIGH)/3,5);
X_5:=MA((CLOSE+LOW*2)/3,5);
X_6:=MA((OPEN+LOW*2)/3,5);
X_7:=OPEN+(CLOSE-OPEN)/2;
DRAWKLINE(HIGH,OPEN,LOW,CLOSE);
STICKLINE(DMI.PDI>DMI.MDI,CLOSE,OPEN,2.9,0),COLOR000099;
STICKLINE(DMI.PDI>DMI.MDI,CLOSE,OPEN,1.5,0),COLOR0000CC;
STICKLINE(DMI.PDI>DMI.MDI,CLOSE,OPEN,0.1,0),COLOR9966FF;
STICKLINE(X_3>=X_4,CLOSE,OPEN,2.9,0),COLOR000099;
STICKLINE(X_3>=X_4,CLOSE,OPEN,1.5,0),COLOR0000CC;
STICKLINE(X_3>=X_4,CLOSE,OPEN,0.1,0),COLOR9966FF;
STICKLINE(X_3< X_4 AND DMI.PDI< DMI.MDI,CLOSE,OPEN,2.9,0),COLOR999900;
STICKLINE(X_3< X_4 AND DMI.PDI< DMI.MDI,CLOSE,OPEN,1.5,0),COLORCCCC00;
STICKLINE(X_3< X_4 AND DMI.PDI< DMI.MDI,CLOSE,OPEN,0.1,0),COLORFFFF66;
STICKLINE(X_3>=X_4 AND CLOSE< X_4,X_7,MAX(OPEN,CLOSE),2.8,0),COLORMAGENTA;
STICKLINE(CROSS(X_3,X_4),CLOSE,OPEN,2.8,0),COLORYELLOW;
STICKLINE(X_3< X_4 AND (CROSS(CLOSE,X_6) OR CROSS(X_2,X_6)),X_7,MIN(CLOSE,OPEN),2.8,0),COLORWHITE;
STICKLINE(CROSS(X_4,X_3) AND CLOSE< OPEN AND DMI.PDI< DMI.MDI,CLOSE,OPEN,2.8,0),COLORFF3300;