八戒1:=BARSLAST(DATE<>REF(DATE,1))+1;
八戒2:=REF(八戒1,八戒1);
八戒3:=REF(HHV(H,八戒1),八戒1);
八戒4:=REF(LLV(L,八戒1),八戒1);
八戒5:=VALUEWHEN(DATE<>REF(DATE,1),REF(C,1));
八戒6:=REF(O,八戒2+八戒1-1);
八戒7:=REF(HHV(H,八戒1),八戒2+八戒1);
八戒8:=REF(LLV(L,八戒1),八戒2+八戒1);
八戒9:=REF(HHV(H,八戒1),八戒2*2+八戒1);
八戒10:=REF(LLV(L,八戒1),八戒2*2+八戒1);
八戒11:=REF(HHV(H,八戒1),八戒2*3+八戒1);
八戒12:=REF(LLV(L,八戒1),八戒2*3+八戒1);
八戒13:=HHV(HIGH,八戒1);
八戒14:=LLV(LOW,八戒1);
八戒15:=VALUEWHEN(DATE<>REF(DATE,1),OPEN);
八戒16:=八戒15+((八戒3-八戒8)+(八戒7-八戒10)+(八戒9-八戒12))/3,COLORCYAN;
八戒17:=八戒15+(ABS(八戒3-八戒7)+ABS(八戒7-八戒9)+ABS(八戒9-八戒11))/3,COLORCYAN;
八戒18:=八戒15+((八戒6-八戒4)+(八戒3-八戒6)+ABS(八戒6-八戒5))/3*2,COLORCYAN;
八戒19:(八戒16+八戒17+八戒18+八戒3)/4,LINETHICK2,COLORCYAN;
STICKLINE(八戒16>0,八戒16,八戒16,2,0),COLORGREEN;
STICKLINE(八戒17>0,八戒17,八戒17,2,0),COLORGREEN;
STICKLINE(八戒18>0,八戒18,八戒18,2,0),COLORGREEN;
八戒20:=八戒15-((八戒7-八戒4)+(八戒9-八戒8)+(八戒11-八戒10))/3;
八戒21:=八戒15-(ABS(八戒4-八戒8)+ABS(八戒8-八戒10)+ABS(八戒10-八戒12))/3;
八戒22:=八戒15-((八戒6-八戒4)+(八戒3-八戒6)+ABS(八戒6-八戒5))/3*2;
八戒23:(八戒20+八戒21+八戒22+八戒4)/4,LINETHICK2,COLORMAGENTA;
STICKLINE(八戒20>0,八戒20,八戒20,2,0),COLORYELLOW;
STICKLINE(八戒21>0,八戒21,八戒21,2,0),COLORYELLOW;
STICKLINE(八戒22>0,八戒22,八戒22,2,0),COLORYELLOW;
DRAWTEXT(CURRBARSCOUNT=15,CONST(八戒16),'漲壓'),COLORGREEN;
DRAWTEXT(CURRBARSCOUNT=15,CONST(八戒17),'高壓'),COLORGREEN;
DRAWTEXT(CURRBARSCOUNT=15,CONST(八戒18),'LSS壓'),COLORGREEN;
DRAWTEXT(CURRBARSCOUNT=15,CONST(八戒19),'平均壓'),COLORCYAN;
DRAWTEXT(CURRBARSCOUNT=15,CONST(八戒20),'跌支'),COLORYELLOW;
DRAWTEXT(CURRBARSCOUNT=15,CONST(八戒21),'低支'),COLORYELLOW;
DRAWTEXT(CURRBARSCOUNT=15,CONST(八戒22),'LSS支'),COLORYELLOW;
DRAWTEXT(CURRBARSCOUNT=15,CONST(八戒23),'平均支'),COLORMAGENTA;
DRAWNUMBER(ISLASTBAR,八戒16,八戒16),COLORGREEN;
DRAWNUMBER(ISLASTBAR,八戒17,八戒17),COLORGREEN;
DRAWNUMBER(ISLASTBAR,八戒18,八戒18),COLORGREEN;
DRAWNUMBER(ISLASTBAR,八戒19,八戒19),COLORCYAN;
DRAWNUMBER(ISLASTBAR,八戒20,八戒20),COLORYELLOW;
DRAWNUMBER(ISLASTBAR,八戒21,八戒21),COLORYELLOW;
DRAWNUMBER(ISLASTBAR,八戒22,八戒22),COLORYELLOW;
DRAWNUMBER(ISLASTBAR,八戒23,八戒23),COLORMAGENTA;
Z1:=STRCAT(HYBLOCK,' ');
Z2:=STRCAT(Z1,DYBLOCK);
Z3:=STRCAT(Z2,' ');
HAN:=DATE< 1141230;
當前獲利籌碼:=IF(WINNER(CLOSE),WINNER(CLOSE)*100,0);
九十成本集中:=(COST(95)-COST(5))/(COST(95)+COST(5))*100;
成本價:COST(九十成本集中),LINETHICK2,COLORMAGENTA;
入1:IF(成本價>REF(成本價,1),成本價,DRAWNULL),COLORRED,LINETHICK2;
出1:IF(成本價< REF(成本價,1),成本價,DRAWNULL),COLORGREEN,LINETHICK2;
STICKLINE(成本價>LOW AND 成本價< HIGH,成本價,MIN(MIN(OPEN,CLOSE),成本價),3.2,0)*HAN,COLOR0077FF;
STICKLINE(成本價>LOW AND 成本價< HIGH,成本價,MIN(MIN(OPEN,CLOSE),成本價),2.5,0)*HAN,COLOR0099FF;
STICKLINE(成本價>LOW AND 成本價< HIGH,成本價,MIN(MIN(OPEN,CLOSE),成本價),1.9,0)*HAN,COLOR00BBFF;
STICKLINE(成本價>LOW AND 成本價< HIGH,成本價,MIN(MIN(OPEN,CLOSE),成本價),1.2,0)*HAN,COLOR00DDFF;
STICKLINE(成本價>LOW AND 成本價< HIGH,成本價,MIN(MIN(OPEN,CLOSE),成本價),0.3,0)*HAN,COLOR00FFFF;
STICKLINE(成本價>MIN(C,O) AND 成本價< MAX(C,O),成本價,MIN(OPEN,CLOSE),3.2,0)*HAN,COLOR0077FF;
STICKLINE(成本價>MIN(C,O) AND 成本價< MAX(C,O),成本價,MIN(OPEN,CLOSE),2.5,0)*HAN,COLOR0099FF;
STICKLINE(成本價>MIN(C,O) AND 成本價< MAX(C,O),成本價,MIN(OPEN,CLOSE),1.9,0)*HAN,COLOR00BBFF;
STICKLINE(成本價>MIN(C,O) AND 成本價< MAX(C,O),成本價,MIN(OPEN,CLOSE),1.2,0)*HAN,COLOR00DDFF;
STICKLINE(成本價>MIN(C,O) AND 成本價< MAX(C,O),成本價,MIN(OPEN,CLOSE),0.3,0)*HAN,COLOR00FFFF;
STICKLINE(成本價>HIGH,CLOSE,OPEN,3.2,0)*HAN,COLOR0077FF;
STICKLINE(成本價>HIGH,CLOSE,OPEN,2.5,0)*HAN,COLOR0099FF;
STICKLINE(成本價>HIGH,CLOSE,OPEN,1.9,0)*HAN,COLOR00BBFF;
STICKLINE(成本價>HIGH,CLOSE,OPEN,1.2,0)*HAN,COLOR00DDFF;
STICKLINE(成本價>HIGH,CLOSE,OPEN,0.3,0)*HAN,COLOR00FFFF;
STICKLINE(成本價>HIGH,HIGH,LOW,0,0),COLORGREEN;
DF2:=(C-REF(C,1))/REF(C,1)*100>5;
DF3:=(C-O)/O*100>4;
當天漲幅:(C-O)/O*100,NODRAW;
V型反轉:=L< 成本價 AND DF2;
V型反轉2:=CROSS(C,成本價) AND DF2;
V型反轉3:=L< 成本價 AND DF3;
DRAWTEXT(V型反轉,L*0.98,'↖狙擊1'),COLORCYAN;
DRAWTEXT(V型反轉2,L*0.95,'↖狙擊2'),COLORCYAN;
DRAWTEXT(V型反轉3,L*0.90,'↖狙擊3'),COLORCYAN;
STICKLINE(V型反轉=1,C,O,3.2,0),COLORRED;
STICKLINE(V型反轉2=1,C,O,3.2,0),COLORRED;
STICKLINE(V型反轉3=1,C,O,3.2,0),COLORRED;
八戒1:=MA(HHV(H,500),13);
八戒2:=MA(HHV(H,250),13);
八戒3:=MA(HHV(H,89),13);
八戒4:=MA(LLV(L,500),13);
八戒5:=MA(LLV(L,250),13);
八戒6:=MA(LLV(L,89),13);
八戒7:=MA((八戒1*0.558+八戒2*0.558+八戒3*0.558+八戒4*0.96+八戒5*0.96+八戒6*0.96)/6,17);
八戒8:=MA((八戒1*0.55+八戒2*0.55+八戒3*0.65+八戒4*1.25+八戒5*1.23+八戒6*1.2)/6,17);
八戒9:=MA((八戒1*0.68+八戒2*0.68+八戒3*0.68+八戒4*1.3+八戒5*1.3+八戒6*1.3)/6,17);
八戒10:=MA((八戒7*3+八戒8*2+八戒9)/6*1.738,17);
八戒11:=SMA(ABS(L-REF(L,1)),3,1)/SMA(MAX(L-REF(L,1),0),3,1)*100;
八戒12:=MA(IF(C*1.35<=八戒10,八戒11*10,八戒11/10),3);
八戒H:=HHV(八戒12,30);
關注:MA(IF(L<=LLV(L,42),(八戒H+八戒11*2)/3,0),3)/200;
DRAWBAND(關注,RGB(255,255,50),0.00001,RGB(0,100,50));
STICKLINE(CROSS(3.8,關注) AND 關注<REF(關注,1),0,3.8,1,0),COLORFF00FF;
DRAWTEXT(CROSS(3.8,關注) AND 關注<REF(關注,1),3.8,'買底'),COLORFF00FF;
STICKLINE(CROSS(10,關注) AND 關注<REF(關注,1),0,10,2,0),COLORYELLOW;
DRAWTEXT(CROSS(10,關注) AND 關注<REF(關注,1),10,'金山'),COLORYELLOW;
STICKLINE(CROSS(62,關注) AND 關注<REF(關注,1),0,18,4,0),COLORRED;
DRAWTEXT(CROSS(38,關注) AND 關注<REF(關注,1),18,'傾買'),COLORRED;
JS:=LAST(關注>0.618,3,1) AND (COUNT(CROSS(0.618,關注) OR CROSS(62,關注),21)>=2);
STICKLINE(FILTER(JS,13),15,0,4,0),COLORRED;
DRAWTEXT(FILTER(JS,13),15,'←★★★牛'),COLORRED;
DRAWTEXT( CURRBARSCOUNT=120,180,'5分鐘IF快速下穿20時1-2-3柱最佳買點'),COLORWHITE;
DRAWTEXT( CURRBARSCOUNT=120,155,'30-60分鐘IF上穿100時應在最高位收盤'),COLORYELLOW;
DRAWTEXT( CURRBARSCOUNT=120,125,'30-60分鐘IF下行時開盤價應是最高位'),COLORMAGENTA;
DRAWTEXT( CURRBARSCOUNT=120,95,'30-60分鐘IF下穿100時應在最低位收盤'),COLORGREEN;
高拋:160,COLORGREEN,LINETHICK2;
預測收盤:100,COLORWHITE,LINETHICK2;
低吸區(qū):20,COLORLIMAGENTA,LINETHICK2;
A1:=MA(H,6);
RSV:=EMA((CLOSE-LLV(LOW,13))/(HHV(HIGH,13)-LLV(LOW,13))*100,3);
K:=EMA(RSV,3);
D:=MA(K,3);
LS:=K+D,COLORRED;
GS:=MA(REF(LS,1),1);
J:3*LS-2*GS,NODRAW;
高拋區(qū):STICKLINE(J>160,J,160,1,0),COLORMAGENTA;
風險區(qū):STICKLINE(LS>160,LS,160,1,0),COLORCYAN;
持股:STICKLINE(LS>=GS,LS,GS,0.001,0),COLORRED;
持幣:STICKLINE(LS<=GS,LS,GS,0.3,0),COLORBLUE;
階段底部:STICKLINE(J<=20,J,20,0.01,0),COLORLIRED;
IF(持股,GS,DRAWNULL),COLORYELLOW,LINETHICK2;
IF(持幣,GS,DRAWNULL),COLORCYAN,LINETHICK2;