DRAWGBK(CLOSE>0,RGB(20,0,28),RGB(20,0,28),0,0,1); MA2:MA(CLOSE,1),COLORYELLOW,LINETHICK2; X_6:=EMA(CLOSE,21); X_7:=X_6<REF(X_6,1); X_8:=IF(X_7-1,X_6,DRAWNULL); X_9:=EMA(CLOSE,3)>EMA(CLOSE,21); X_10:=EMA(CLOSE,3)<EMA(CLOSE,21); X_11:=EMA(CLOSE,3)>EMA(CLOSE,8); X_12:=EMA(CLOSE,3)<EMA(CLOSE,8); STICKLINE(X_9,LOW,HIGH,0,0),COLOR0088EE; STICKLINE(X_9,CLOSE,OPEN,3,0),COLOR0055AA; STICKLINE(X_9,CLOSE,OPEN,2.8,0),COLOR0066BB; STICKLINE(X_9,CLOSE,OPEN,2.5,0),COLOR0077CC; STICKLINE(X_9,CLOSE,OPEN,2.2,0),COLOR0088DD; STICKLINE(X_9,CLOSE,OPEN,1.7,0),COLOR0099EE; STICKLINE(X_9,CLOSE,OPEN,1.2,0),COLOR00AAFF; STICKLINE(X_9,CLOSE,OPEN,0.7,0),COLOR00CCFF; STICKLINE(X_9,CLOSE,OPEN,0.2,0),COLORYELLOW; STICKLINE(X_10,HIGH,LOW,0,1),COLORGREEN; STICKLINE(X_10,CLOSE,OPEN,3.2,0),COLOR006600; STICKLINE(X_10,CLOSE,OPEN,2.6,0),COLOR008800; STICKLINE(X_10,CLOSE,OPEN,1.9,0),COLOR00AA00; STICKLINE(X_10,CLOSE,OPEN,1.1,0),COLOR00CC00; STICKLINE(X_10,CLOSE,OPEN,0.3,0),COLORGREEN; STICKLINE(X_10 AND X_11,HIGH,LOW,0,1),COLORFF55FF; STICKLINE(X_10 AND X_11,CLOSE,OPEN,3.2,0),COLOR880088; STICKLINE(X_10 AND X_11,CLOSE,OPEN,2.6,0),COLORAA00AA; STICKLINE(X_10 AND X_11,CLOSE,OPEN,1.9,0),COLORCC00CC; STICKLINE(X_10 AND X_11,CLOSE,OPEN,1.1,0),COLOREE00EE; STICKLINE(X_10 AND X_11,CLOSE,OPEN,0.3,0),COLORFF44FF; STICKLINE(X_9 AND X_12,HIGH,LOW,0,1),COLORFF8800; STICKLINE(X_9 AND X_12,CLOSE,OPEN,3.2,0),COLORFF2200; STICKLINE(X_9 AND X_12,CLOSE,OPEN,2.6,0),COLORFF4400; STICKLINE(X_9 AND X_12,CLOSE,OPEN,1.9,0),COLORFF6600; STICKLINE(X_9 AND X_12,CLOSE,OPEN,1.1,0),COLORFF8800; STICKLINE(X_9 AND X_12,CLOSE,OPEN,0.3,0),COLORFFAA00; X_13:=EMA(CLOSE,13)-EMA(CLOSE,55); X_14:=EMA(0.618*REF(X_13,1)+0.382*X_13,3); X_15:=REF(CLOSE,1); X_16:=EMA(HHV(HIGH,1),8); X_17:=EMA(CLOSE,8); X_18:=X_17<REF(X_17,1) AND CLOSE<X_17; X_19:=IF(X_16<REF(X_16,1) OR X_18,1,0); X_20:=SMA(MAX(CLOSE-X_15,0),2,1)/SMA(ABS(CLOSE-X_15),2,1)*100; X_21:=45; X_22:=20; X_23:=X_20<X_21 AND REF(X_20,1)>X_21; X_24:=X_20<X_22 AND REF(X_20,1)>X_22; X_25:=(COUNT(X_19=1,4)=3 AND X_19=0 AND OPEN<CLOSE AND (CLOSE-REF(CLOSE,1))/REF(CLOSE,1)>0.065)*10>=10 OR ((CLOSE-REF(CLOSE,1))/REF(CLOSE,1)>0.065 AND (REF(X_24,1) OR REF(X_23,1))); DRAWICON(X_25,LOW,25); STICKLINE(X_25,LOW,LOW+(HIGH-LOW)/2,2.7,0),COLORYELLOW; STICKLINE(X_25,LOW+(HIGH-LOW)/2,HIGH,2.7,0),COLORRED; N:=8;AAB:=REF(H,10)=HHV(H,2*11); QQHY:=BACKSET(AAB,10+1); CCW:=FILTER(QQHY,10) AND H=HHV(H,11); 賣出:DRAWICON(CCW,H*1.0,26); AAB1:=REF(L,10)=LLV(L,2*11); QYY1:=BACKSET(AAB1,11); CCD1:=FILTER(QYY1,10) AND L=LLV(L,11); 買入:DRAWICON(CCD1,L*1.0,11); ZGD:=HHV(H,60); ZGD2:=CONST(ZGD); ZDD:=LLV(L,60); ZDD2:=CONST(ZDD); GJ:=(C+H+L+O)/4;明日阻力:=L+(GJ-L)+(C-L); 明日支撐:=L+(C-GJ); KOH:=L>REF(H,1); KOL:=H<REF(L,1); HIF:=L>REF(H,BARSLAST(KOH)+1); NHIF:=L<=REF(H,BARSLAST(KOH)+1); LIF:=H<REF(L,BARSLAST(KOL)+1); NLIF:=H>=REF(L,BARSLAST(KOL)+1); 下檔線:=(((CLOSE - LLV(LOW,13)) / (HHV(HIGH,13) - LLV(LOW,13))) * 100); RRRSV:=SMA(下檔線,3,1); KKK:=SMA(RRRSV,3,1); DDDDD:=((3 * RRRSV) - (2 * KKK)); JJ12:=(((CLOSE - LLV(LOW,55)) / (HHV(HIGH,55) - LLV(LOW,55))) * 100); RSV24:=SMA(JJ12,3,1); K24:=SMA(RSV24,3,1); D24:=((3 * RSV24) - (2 * K24)); 壓力2:=IF(CROSS(D24,DDDDD),HIGH,REF(HIGH,BARSLAST(CROSS(D24,DDDDD)))),COLORFFFFFF;底部:=LLV(HIGH,30),COLOR00FF00;AA:=REF(H,N)=HHV(H,2*N+1); AA1:=REF(L,N)=LLV(L,2*N+1); QY:=BACKSET(AA,N+1); QY1:=BACKSET(AA1,N+1); CC:=FILTER(QY,N) AND H=HHV(H,N+1); CC1:=FILTER(QY1,N) AND L=LLV(L,N+1); DDD:=BARSLAST(CC); DD1:=BARSLAST(CC1); GDTS:=IF(CC,CURRBARSCOUNT,0); DDTS:=IF(CC1,CURRBARSCOUNT,0); DINGBUTS:=IF(DDD,REF(GDTS,DDD),GDTS); DDTS1:=IF(DD1,REF(DDTS,DD1),DDTS); GDCS1:=CONST(DINGBUTS); DDCS1:=CONST(DDTS1); S13:=CONST(REF(HIGH,GDCS1-1)); GDCS13:=S13;DDCS13:=CONST(REF(L,DDCS1-1)); DINGBUTS1:=REF(DINGBUTS,DDD+1); DDTS2:=REF(DDTS1,DD1+1); GDCS2:=CONST(DINGBUTS1); DDCS2:=CONST(DDTS2); S23:=CONST(REF(HIGH,DINGBUTS1-1)); GDCS23:=S23;DDCS23:=CONST(REF(L,DDTS2-1)); XG1:=BACKSET(ISLASTBAR,GDCS1); XD1:=BACKSET(ISLASTBAR,DDCS1); XG2:=BACKSET(ISLASTBAR,DINGBUTS1); XD2:=BACKSET(ISLASTBAR,DDTS2); XDD:=IF(DDCS13<=DDCS23,XD1,XD2); BCG:=SUM(XG1,0); BCD:=SUM(XDD,0); 今日阻力:=REF(明日阻力 , 1),NODRAW;今日支撐:=REF(明日支撐 , 1),NODRAW;壓力位:=IF(ISLASTBAR,壓力2,DRAWNULL),NODRAW;底部位:=IF(ISLASTBAR,底部,DRAWNULL),NODRAW;高點(diǎn)壓力:DRAWLINE(CURRBARSCOUNT=GDCS2,H,CURRBARSCOUNT=GDCS1,H,1) ,COLORGREEN,LINETHICK2;低點(diǎn)支撐:DRAWLINE(CURRBARSCOUNT=DDCS2,L,CURRBARSCOUNT=DDCS1,L,1),COLORGREEN,LINETHICK2;高:=CONST(MAX(MAX(MAX(ZGD2,高點(diǎn)壓力),GDCS13),GDCS23)); 低:=CONST(MIN(MIN(MIN(ZDD2,DDCS23),DDCS13),低點(diǎn)支撐)); ZGSTAR:=(高點(diǎn)壓力+低點(diǎn)支撐)/2;ZGEND:=CONST((高點(diǎn)壓力+低點(diǎn)支撐)/2); STARDAY:=IF(DDCS2<GDCS2,DDCS2,GDCS2); 中軌:=DRAWLINE(CURRBARSCOUNT=STARDAY,ZGSTAR,ISLASTBAR,ZGEND,1),COLOR555555,LINETHICK2;M:=INTPART(3*N/5); AAA:=REF(H,M)=HHV(H,2*M+1); QYY:=BACKSET(AAA,M+1); CCC:=FILTER(QYY,M) AND H=HHV(H,M+1); DDDD:=BARSLAST(CCC),NODRAW;GDTSS:=IF(CCC,CURRBARSCOUNT,0); DINGBUTSS:=IF(DDDD,REF(GDTSS,DDDD),GDTSS); GDCS11:=CONST(DINGBUTSS); DINGBUTS11:=REF(DINGBUTSS,DDDD+1); GDCS22:=CONST(DINGBUTS11); 高點(diǎn)壓力M:DRAWLINE(CURRBARSCOUNT=GDCS22,H,CURRBARSCOUNT=GDCS11,H,1),COLORRED,LINETHICK1;AA11:=REF(L,M)=LLV(L,2*M+1); QY11:=BACKSET(AA11,M+1); CC11:=FILTER(QY11,M) AND L=LLV(L,M+1); DD11:=BARSLAST(CC11); DDTSS:=IF(CC11,CURRBARSCOUNT,0); DDTS11:=IF(DD11,REF(DDTSS,DD11),DDTSS); DDCS11:=CONST(DDTS11); DDTS22:=REF(DDTS11,DD11+1); DDCS22:=CONST(DDTS22); 低點(diǎn)支撐M:DRAWLINE(CURRBARSCOUNT=DDCS22,L,CURRBARSCOUNT=DDCS11,L,1) COLORRED,LINETHICK3;STICKLINE(XG2 ,GDCS23,GDCS23,2.5,1), COLORWHITE;STICKLINE(XG1,GDCS13,GDCS13,2.3,1), COLORYELLOW;STICKLINE(XD2 ,DDCS23,DDCS23,0.5,1),COLORMAGENTA;STICKLINE(XD1,DDCS13,DDCS13,0.5,1),COLORCYAN;STICKLINE(ISLASTBAR ,壓力位,壓力位,120,0),COLORFFFFFF;STICKLINE(ISLASTBAR ,底部位,底部位,100,0),COLOR00FF00;莊家控籌:=MA(EMA(WINNER(C),3),40); VARS:=莊家控籌>REF(莊家控籌,4); 量比:=VOL*5/SUM(REF(VOL,1),5)>1;換手:=V/CAPITAL*100>3;VAR1:=EMA(EMA(CLOSE,9),9); KP:=(VAR1-REF(VAR1,1))/REF(VAR1,1); VAR2:=100*WINNER(CLOSE*0.95); GKP:=VARS AND 量比 AND 換手 ;高控盤:=GKP;DRAWICON(CROSS(C,GDCS23) AND 高控盤,L-0.20,5); DRAWICON(CROSS(C,GDCS13) AND 高控盤,L-1.0,5); DRAWICON(CROSS(C,DDCS23) AND 高控盤,L-1.0,5); DRAWBAND(EMA(C,4),RGB(160,55,250),EMA(EMA(C,4),4),RGB(83,223,68)); MA5:MA(CLOSE,3),COLORCYAN,LINETHICK2; |
|