主图
WD:= (COST(99.99)-COST(0.01));
STICKLINE(ISLASTBAR,COST(1) ,COST(1) , WD/(COST(1)-COST(0.1)),0 ), COLORGRAY;
STICKLINE(ISLASTBAR,COST(2) ,COST(2) , WD/(COST(2)-COST(1)),0 ), COLORGRAY;
STICKLINE(ISLASTBAR,COST(3) ,COST(3) , WD/(COST(3)-COST(2)),0 ), COLORGRAY;
STICKLINE(ISLASTBAR,COST(4) ,COST(4) , WD/(COST(4)-COST(3)),0 ), COLORGRAY;
STICKLINE(ISLASTBAR,COST(5) ,COST(5) , WD/(COST(5)-COST(4)),0 ), COLORGRAY;
STICKLINE(ISLASTBAR,COST(6) ,COST(6) , WD/(COST(6)-COST(5)),0 ), COLORGRAY;
STICKLINE(ISLASTBAR,COST(7) ,COST(7) , WD/(COST(7)-COST(6)),0 ), COLORGRAY;
STICKLINE(ISLASTBAR,COST(8) ,COST(8) , WD/(COST(8)-COST(7)),0 ), COLORGRAY;
STICKLINE(ISLASTBAR,COST(9) ,COST(9) , WD/(COST(9)-COST(8)),0 ), COLORGRAY;
STICKLINE(ISLASTBAR,COST(10) ,COST(10) , WD/(COST(10)-COST(9)),0 ), COLORGRAY;
STICKLINE(ISLASTBAR,COST(11) ,COST(11) , WD/(COST(11)-COST(10)),0 ), COLORYELLOW;
STICKLINE(ISLASTBAR,COST(12) ,COST(12) , WD/(COST(12)-COST(11)),0 ), COLORYELLOW;
STICKLINE(ISLASTBAR,COST(13) ,COST(13) , WD/(COST(13)-COST(12)),0 ), COLORYELLOW;
STICKLINE(ISLASTBAR,COST(14) ,COST(14) , WD/(COST(14)-COST(13)),0 ), COLORYELLOW;
STICKLINE(ISLASTBAR,COST(15) ,COST(15) , WD/(COST(15)-COST(14)),0 ), COLORYELLOW;
STICKLINE(ISLASTBAR,COST(16) ,COST(16) , WD/(COST(16)-COST(15)),0 ), COLORYELLOW;
STICKLINE(ISLASTBAR,COST(17) ,COST(17) , WD/(COST(17)-COST(16)),0 ), COLORYELLOW;
STICKLINE(ISLASTBAR,COST(18) ,COST(17) , WD/(COST(18)-COST(17)),0 ), COLORYELLOW;
STICKLINE(ISLASTBAR,COST(19) ,COST(19) , WD/(COST(19)-COST(18)),0 ), COLORYELLOW;
STICKLINE(ISLASTBAR,COST(20) ,COST(20) , WD/(COST(20)-COST(19)),0 ), COLORYELLOW;
STICKLINE(ISLASTBAR,COST(21) ,COST(21) , WD/(COST(21)-COST(20)),0 ), COLORRED;
STICKLINE(ISLASTBAR,COST(22) ,COST(22) , WD/(COST(22)-COST(21)),0 ), COLORRED;
STICKLINE(ISLASTBAR,COST(23) ,COST(23) , WD/(COST(23)-COST(22)),0 ), COLORRED;
STICKLINE(ISLASTBAR,COST(24) ,COST(24) , WD/(COST(24)-COST(23)),0 ), COLORRED;
STICKLINE(ISLASTBAR,COST(25) ,COST(25) , WD/(COST(25)-COST(24)),0 ), COLORRED;
STICKLINE(ISLASTBAR,COST(26) ,COST(26) , WD/(COST(26)-COST(25)),0 ), COLORRED;
STICKLINE(ISLASTBAR,COST(27) ,COST(27) , WD/(COST(27)-COST(26)),0 ), COLORRED;
STICKLINE(ISLASTBAR,COST(28) ,COST(28) , WD/(COST(28)-COST(27)),0 ), COLORRED;
STICKLINE(ISLASTBAR,COST(29) ,COST(29) , WD/(COST(29)-COST(28)),0 ), COLORRED;
STICKLINE(ISLASTBAR,COST(30) ,COST(30) , WD/(COST(30)-COST(29)),0 ), COLORRED;
STICKLINE(ISLASTBAR,COST(31) ,COST(31) , WD/(COST(31)-COST(30)),0 ), COLORGREEN;
STICKLINE(ISLASTBAR,COST(32) ,COST(32) , WD/(COST(32)-COST(31)),0 ), COLORGREEN;
STICKLINE(ISLASTBAR,COST(33) ,COST(33) , WD/(COST(33)-COST(32)),0 ), COLORGREEN;
STICKLINE(ISLASTBAR,COST(34) ,COST(34) , WD/(COST(34)-COST(33)),0 ), COLORGREEN;
STICKLINE(ISLASTBAR,COST(35) ,COST(35) , WD/(COST(35)-COST(34)),0 ), COLORGREEN;
STICKLINE(ISLASTBAR,COST(36) ,COST(36) , WD/(COST(36)-COST(35)),0 ), COLORGREEN;
STICKLINE(ISLASTBAR,COST(37) ,COST(37) , WD/(COST(37)-COST(36)),0 ), COLORGREEN;
STICKLINE(ISLASTBAR,COST(38) ,COST(38) , WD/(COST(38)-COST(37)),0 ), COLORGREEN;
STICKLINE(ISLASTBAR,COST(39) ,COST(39) , WD/(COST(39)-COST(38)),0 ), COLORGREEN;
STICKLINE(ISLASTBAR,COST(40) ,COST(40) , WD/(COST(40)-COST(39)),0 ), COLORGREEN;
STICKLINE(ISLASTBAR,COST(41) ,COST(41) , WD/(COST(41)-COST(40)),0 ), COLORBLUE;
STICKLINE(ISLASTBAR,COST(42) ,COST(42) , WD/(COST(42)-COST(41)),0 ), COLORBLUE;
STICKLINE(ISLASTBAR,COST(43) ,COST(43) , WD/(COST(43)-COST(42)),0 ), COLORBLUE;
STICKLINE(ISLASTBAR,COST(44) ,COST(44) , WD/(COST(44)-COST(43)),0 ), COLORBLUE;
STICKLINE(ISLASTBAR,COST(45) ,COST(45) , WD/(COST(45)-COST(44)),0 ), COLORBLUE;
STICKLINE(ISLASTBAR,COST(46) ,COST(46) , WD/(COST(46)-COST(45)),0 ), COLORBLUE;
STICKLINE(ISLASTBAR,COST(47) ,COST(47) , WD/(COST(47)-COST(46)),0 ), COLORBLUE;
STICKLINE(ISLASTBAR,COST(48) ,COST(48) , WD/(COST(48)-COST(47)),0 ), COLORBLUE;
STICKLINE(ISLASTBAR,COST(49) ,COST(49) , WD/(COST(49)-COST(48)),0 ), COLORBLUE;
STICKLINE(ISLASTBAR,COST(50) ,COST(50) , WD/(COST(50)-COST(49)),0 ), COLORBLUE;
STICKLINE(ISLASTBAR,COST(51) ,COST(51) , WD/(COST(51)-COST(50)),0 ), COLORMAGENTA;
STICKLINE(ISLASTBAR,COST(52) ,COST(52) , WD/(COST(52)-COST(51)),0 ), COLORMAGENTA;
STICKLINE(ISLASTBAR,COST(53) ,COST(53) , WD/(COST(53)-COST(52)),0 ), COLORMAGENTA;
STICKLINE(ISLASTBAR,COST(54) ,COST(54) , WD/(COST(54)-COST(53)),0 ), COLORMAGENTA;
STICKLINE(ISLASTBAR,COST(55) ,COST(55) , WD/(COST(56)-COST(55)),0 ), COLORMAGENTA;
STICKLINE(ISLASTBAR,COST(56) ,COST(56) , WD/(COST(56)-COST(55)),0 ), COLORMAGENTA;
STICKLINE(ISLASTBAR,COST(57) ,COST(57) , WD/(COST(57)-COST(56)),0 ), COLORMAGENTA;
STICKLINE(ISLASTBAR,COST(58) ,COST(58) , WD/(COST(58)-COST(57)),0 ), COLORMAGENTA;
STICKLINE(ISLASTBAR,COST(59) ,COST(59) , WD/(COST(59)-COST(58)),0 ), COLORMAGENTA;
STICKLINE(ISLASTBAR,COST(60) ,COST(60) , WD/(COST(60)-COST(59)),0 ), COLORMAGENTA;
STICKLINE(ISLASTBAR,COST(61) ,COST(61) , WD/(COST(61)-COST(60)),0 ), COLORBROWN;
STICKLINE(ISLASTBAR,COST(62) ,COST(62) , WD/(COST(62)-COST(61)),0 ), COLORBROWN;
STICKLINE(ISLASTBAR,COST(63) ,COST(63) , WD/(COST(63)-COST(62)),0 ), COLORBROWN;
STICKLINE(ISLASTBAR,COST(64) ,COST(64) , WD/(COST(64)-COST(63)),0 ), COLORBROWN;
STICKLINE(ISLASTBAR,COST(65) ,COST(65) , WD/(COST(65)-COST(64)),0 ), COLORBROWN;
STICKLINE(ISLASTBAR,COST(66) ,COST(66) , WD/(COST(66)-COST(65)),0 ), COLORBROWN;
STICKLINE(ISLASTBAR,COST(67) ,COST(67) , WD/(COST(67)-COST(66)),0 ), COLORBROWN;
STICKLINE(ISLASTBAR,COST(68) ,COST(68) , WD/(COST(68)-COST(67)),0 ), COLORBROWN;
STICKLINE(ISLASTBAR,COST(69) ,COST(69) , WD/(COST(69)-COST(68)),0 ), COLORBROWN;
STICKLINE(ISLASTBAR,COST(70) ,COST(70) , WD/(COST(70)-COST(69)),0 ), COLORBROWN;
STICKLINE(ISLASTBAR,COST(71) ,COST(71) , WD/(COST(71)-COST(70)),0 ), COLORLICYAN;
STICKLINE(ISLASTBAR,COST(72) ,COST(72) , WD/(COST(72)-COST(71)),0 ), COLORLICYAN;
STICKLINE(ISLASTBAR,COST(73) ,COST(73) , WD/(COST(73)-COST(72)),0 ), COLORLICYAN;
STICKLINE(ISLASTBAR,COST(74) ,COST(74) , WD/(COST(74)-COST(73)),0 ), COLORLICYAN;
STICKLINE(ISLASTBAR,COST(75) ,COST(75) , WD/(COST(75)-COST(74)),0 ), COLORLICYAN;
STICKLINE(ISLASTBAR,COST(76) ,COST(76) , WD/(COST(76)-COST(75)),0 ), COLORLICYAN;
STICKLINE(ISLASTBAR,COST(77) ,COST(77) , WD/(COST(77)-COST(76)),0 ), COLORLICYAN;
STICKLINE(ISLASTBAR,COST(78) ,COST(78) , WD/(COST(78)-COST(77)),0 ), COLORLICYAN;
STICKLINE(ISLASTBAR,COST(79) ,COST(79) , WD/(COST(79)-COST(78)),0 ), COLORLICYAN;
STICKLINE(ISLASTBAR,COST(80) ,COST(80) , WD/(COST(80)-COST(79)),0 ), COLORLICYAN;
STICKLINE(ISLASTBAR,COST(81) ,COST(81) , WD/(COST(81)-COST(80)),0 ), COLORWHITE;
STICKLINE(ISLASTBAR,COST(82) ,COST(82) , WD/(COST(82)-COST(81)),0 ), COLORWHITE;
STICKLINE(ISLASTBAR,COST(83) ,COST(83) , WD/(COST(83)-COST(82)),0 ), COLORWHITE;
STICKLINE(ISLASTBAR,COST(84) ,COST(84) , WD/(COST(84)-COST(83)),0 ), COLORWHITE;
STICKLINE(ISLASTBAR,COST(85) ,COST(85) , WD/(COST(85)-COST(84)),0 ), COLORWHITE;
STICKLINE(ISLASTBAR,COST(86) ,COST(86) , WD/(COST(86)-COST(85)),0 ), COLORWHITE;
STICKLINE(ISLASTBAR,COST(87) ,COST(87) , WD/(COST(87)-COST(86)),0 ), COLORWHITE;
STICKLINE(ISLASTBAR,COST(88) ,COST(88) , WD/(COST(88)-COST(87)),0 ), COLORWHITE;
STICKLINE(ISLASTBAR,COST(89) ,COST(89) , WD/(COST(89)-COST(88)),0 ), COLORWHITE;
STICKLINE(ISLASTBAR,COST(90) ,COST(90) , WD/(COST(90)-COST(89)),0 ), COLORWHITE;
STICKLINE(ISLASTBAR,COST(91) ,COST(91) , WD/(COST(91)-COST(90)),0 ), COLORLIRED;
STICKLINE(ISLASTBAR,COST(92) ,COST(92) , WD/(COST(92)-COST(91)),0 ), COLORLIRED;
STICKLINE(ISLASTBAR,COST(93) ,COST(93) , WD/(COST(93)-COST(92)),0 ), COLORLIRED;
STICKLINE(ISLASTBAR,COST(94) ,COST(94) , WD/(COST(94)-COST(93)),0 ), COLORLIRED;
STICKLINE(ISLASTBAR,COST(95) ,COST(95) , WD/(COST(95)-COST(94)),0 ), COLORLIRED;
STICKLINE(ISLASTBAR,COST(96) ,COST(96) , WD/(COST(96)-COST(95)),0 ), COLORLIRED;
STICKLINE(ISLASTBAR,COST(97) ,COST(97) , WD/(COST(97)-COST(96)),0 ), COLORLIRED;
STICKLINE(ISLASTBAR,COST(98) ,COST(98) , WD/(COST(98)-COST(97)),0 ), COLORLIRED;
STICKLINE(ISLASTBAR,COST(99) ,COST(99) , WD/(COST(99)-COST(98)),0 ), COLORLIRED;
DRAWKLINE(H,O,L,C);
操作区间副图
MA5:=EMA(C,5);
MA13:=EMA(C,6);
橙色持有:0,COLOR0066CC;
绿色快走:10,COLOR003300;
灰色不要操作:0,COLOR666666;
黄小方块都要买:0,COLORYELLOW;
蓝小方块走要快:0,COLORBLUE;
UP:=DRAWLINE(L=LLV(L,BARSLAST(CROSS(MA13,MA5))+1),LLV(L,BARSLAST(CROSS
(MA13,MA5))+1),H=HHV(H,BARSLAST(CROSS(MA5,MA13))+1),HHV(H,BARSLAST(CROSS
(MA5,MA13))+1),0),COLOR0000FF;
DOWN:=DRAWLINE(H=HHV(H,BARSLAST(CROSS(MA5,MA13))+1),HHV(H,BARSLAST(CROSS
(MA5,MA13))+1),L=LLV(L,BARSLAST(CROSS(MA13,MA5))+1),LLV(L,BARSLAST(CROSS
(MA13,MA5))+1),0),COLOR00FF00;
STICKLINE(橙色持有+绿色快走,0,10,5,0),COLOR666666;
STICKLINE(UP,0,10,5,0),COLOR0066CC;
STICKLINE(DOWN,0,10,5,0),COLOR003300;
A7:=(2*C+H+L)/4;
VARR:=LLV(A7,21);
VAR11:=CLOSE>REF(CLOSE,1) AND CLOSE>REF(CLOSE,2);
VAR22:=REF(VAR11,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);
VAR33:=REF(VAR22,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);
VAR44:=REF(VAR33,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);
VAR55:=REF(VAR44,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);
VAR66:=REF(VAR55,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);
VAR77:=REF(VAR66,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);
VAR88:=REF(VAR77,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);
VAR99:=REF(VAR88,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);
VARAA:=REF(VAR99,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);
VARBB:=REF(VARAA,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);
VARCC:=REF(VARBB,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);
VARDD:=CLOSE<REF(CLOSE,1) AND CLOSE<REF(CLOSE,2);{股票下载网WWW.GPXIAZAI.COM}
VAREE:=REF(VARDD,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);
VARFF:=REF(VAREE,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);
VAR100:=REF(VARFF,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);
VAR110:=REF(VAR100,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);
VAR120:=REF(VAR110,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);
VAR130:=REF(VAR120,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);
VAR140:=REF(VAR130,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);
VAR150:=REF(VAR140,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);
VAR160:=REF(VAR150,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);
VAR170:=REF(VAR160,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);
VAR180:=REF(VAR170,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);
VAR190:=REF(VARDD OR VAREE OR VARFF OR VAR100 OR VAR110 OR VAR120 OR VAR130 OR
VAR140 OR VAR150 OR VAR160 OR VAR170 OR VAR180,1) AND VAR11;
VAR1A:=REF(VAR11 OR VAR22 OR VAR33 OR VAR44 OR VAR55 OR VAR66 OR VAR77 OR
VAR88 OR VAR99 OR VARAA OR VARBB OR VARCC,1) AND VARDD;
A1:=(CLOSE-LLV(LOW,7))/(HHV(HIGH,7)-LLV(LOW,7))*10;
K:=MA(3*SMA(A1,6,1)-2*SMA(SMA(A1,5,1),5,1),3),LINETHICK1,COLORF00FF0;
D:=MA(K,3),COLORFF0000,LINETHICK1;
J:=3*K-2*D,LINETHICK1,COLORF00FF0;
DRAWBAND(J,RGB(128,1,1),D,RGB(12,124,0));
STICKLINE(VAR190,-0.5,-1,3,0),COLORYELLOW;
STICKLINE(VAR1A,10.5,11,3,0),COLORBLUE;
波段底副图
X_1:=(-100)*(HHV(HIGH,14)-CLOSE)/(HHV(HIGH,14)-LLV(LOW,14));
X_2:=EMA((-100)*(HHV(HIGH,34)-CLOSE)/(HHV(HIGH,34)-LLV(LOW,34)),4);
X_3:=X_1+100;
X_4:=X_2+100;
X_5:=BETWEEN((CLOSE-REF(CLOSE,27))/REF(CLOSE,27),(-0.37),(-0.17));
X_6:=BETWEEN((CLOSE-REF(CLOSE,60))/REF(CLOSE,60),(-0.4),(-0.2));
参考底:CLOSE>OPEN AND X_4<20 AND CROSS(X_3,X_4) AND (X_5 OR X_6),NODRAW,COLORWHITE;
STICKLINE(参考底,0,0.5,2.2,0),COLORWHITE;
波段底:CLOSE>OPEN AND VOL>REF(VOL,1) AND X_4<20 AND CROSS(X_3,X_4) AND (X_5 OR X_6),NODRAW,COLORYELLOW;
STICKLINE(波段底,0,1,1.3,0),COLORYELLOW;