加了倆條線,改了改顏色..<畫線方法:選主圖替換> A1:=(EMA((OPEN+HIGH+LOW+CLOSE)/4,3)+EMA((OPEN+HIGH+LOW+CLOSE)/4,6)+EMA((OPEN+HIGH+LOW+CLOSE)/4,9))/3; A2:=(EMA((OPEN+HIGH+LOW+CLOSE)/4,5)+EMA((OPEN+HIGH+LOW+CLOSE)/4,10)+EMA((OPEN+HIGH+LOW+CLOSE)/4,20))/3; A3:=(EMA((OPEN+HIGH+LOW+CLOSE)/4,7)+EMA((OPEN+HIGH+LOW+CLOSE)/4,14)+EMA((OPEN+HIGH+LOW+CLOSE)/4,28))/3; A4:=(EMA((OPEN+HIGH+LOW+CLOSE)/4,9)+EMA((OPEN+HIGH+LOW+CLOSE)/4,18)+EMA((OPEN+HIGH+LOW+CLOSE)/4,36))/3; A5:=(EMA((OPEN+HIGH+LOW+CLOSE)/4,11)+EMA((OPEN+HIGH+LOW+CLOSE)/4,22)+EMA((OPEN+HIGH+LOW+CLOSE)/4,44))/3; A6:=(EMA((OPEN+HIGH+LOW+CLOSE)/4,13)+EMA((OPEN+HIGH+LOW+CLOSE)/4,26)+EMA((OPEN+HIGH+LOW+CLOSE)/4,52))/3; A7:=(EMA((OPEN+HIGH+LOW+CLOSE)/4,21)+EMA((OPEN+HIGH+LOW+CLOSE)/4,34)+EMA((OPEN+HIGH+LOW+CLOSE)/4,68))/3; VAR1:=FORCAST(A1,6); VAR2:=FORCAST(A2,6); VAR3:=FORCAST(A3,6); VAR4:=FORCAST(A4,6); VAR5:=FORCAST(A5,6); VAR6:=FORCAST(A6,6); VAR7:=FORCAST(A7,6); IF(VAR7>REF(VAR7,1),VAR7,DRAWNULL),LINETHICK2,COLORFF00FF; IF(VAR7<REF(VAR7,1),VAR7,DRAWNULL),LINETHICK2,COLORD98719; TOWERC:=FORCAST(EMA((3*CLOSE+2*OPEN+HIGH+LOW)/7,3),6); DIRECTIONMAX:=MAX(REF(TOWERC,1),REF(TOWERC,1)); DIRECTIONMIN:=MIN(REF(TOWERC,1),REF(TOWERC,1)); STICKLINE(TOWERC>=REF(TOWERC,1),TOWERC,DIRECTIONMAX,4,0),COLOR0000FF; STICKLINE(TOWERC<REF(TOWERC,1),TOWERC,DIRECTIONMIN,4,0), COLORD98719; FD:=(H-L)/3;{分段} OPEN1:=O>FD*2+L; OPEN3:=O<FD+L; OPEN2:=NOT(OPEN1 OR OPEN3); CLOSE1:=C>FD*2+L; CLOSE3:=C<FD+L; CLOSE2:=NOT(CLOSE1 OR CLOSE3); DFZD:=CLOSE1 OR (OPEN3 AND CLOSE2); WQS1:=OPEN2 AND CLOSE2; KFZD:=NOT(DFZD OR WQS1); ZD:=(H+L)/2; QSXS:=ZD>REF(H,1); QSXX:=ZD<REF(L,1); WQS2:=NOT(QSXS OR QSXX); S1:=DFZD AND QSXS ; S2:=KFZD AND QSXX ; S3:=DFZD AND QSXX; S4:=KFZD AND QSXS; S5:=DFZD AND WQS2; S6:=KFZD AND WQS2; S7:=WQS1 AND (QSXS OR QSXX OR WQS2); MID:=(3*CLOSE+LOW+OPEN+HIGH)/6; 牛線:(20*MID+19*REF(MID,1)+18*REF(MID,2)+17*REF(MID,3)+16*REF(MID,4)+15*REF(MID,5)+14*REF(MID,6)+13*REF(MID,7)+12*REF(MID,8)+11*REF(MID,9)+10*REF(MID,10)+9*REF(MID,11)+8*REF(MID,12)+7*REF(MID,13)+6*REF(MID,14)+5*REF(MID,15)+4*REF(MID,16)+3*REF(MID,17)+2*REF(MID,18)+REF(MID,20))/210,COLORRED; 馬線:MA(牛線,6),COLORGREEN; 五日線:MA(CLOSE,5),POINTDOT,COLORLIBLUE; {自用K}
STICKLINE(C>0,-20,5,4,0),COLORBLACK; F1:=ZIG(3,15); F2:=IF((F1> REF(F1,1)),100,80); RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100; K:SMA(RSV,3,1); D:SMA(K,3,1); J:3*K-2*D,COLORLIMAGENTA; MA勢:=SMA(MAX(C-REF(C,1),0),8,1)/SMA(ABS(C-REF(C,1)),8,1)*100; 勢:EMA(MA勢,5),COLORLIRED,DOTLINE; IF(勢<=45,勢,DRAWNULL),COLORGREEN,DOTLINE; 趨勢:=3*SMA((C-LLV(L,27))/(HHV(H,27)-LLV(L,27))*100,5,1)-2* SMA(SMA((C-LLV(L,27))/(HHV(H,27)-LLV(L,27))*100,5,1),3,1); ZZ:=趨勢>REF(趨勢,1); K1:=DVOL/1000000; K2:=DCLOSE; V1:=EMA(K1,5); V2:=EMA(K2,5); 價(jià)異動:=K2>REF(V2,1)*1.06; 量異動:=K1>REF(V1,1)*1.6&&ZZ; 停牌:=DYNAINFO(17)>0; M1:=SUM(價(jià)異動,2)>0 AND 停牌; M2:=SUM(量異動,2)>0 AND REF(趨勢,1)<89; 共鳴:(F2=100 AND C>REF(C,1) AND FILTER(M1 AND M2,3))*60,COLORRED; DIF:=EMA(CLOSE,12)-EMA(CLOSE,26); DEA:=EMA(DIF,9); MACD:=(DIF-DEA)*2; 低2:=IF(CURRBARSCOUNT<=60, CONST(IF(ISLASTBAR=1,LLV(L, BARSLAST(CURRBARSCOUNT=60)),1)),DRAWNULL); TX:=BARSLAST(C>REF(C,1)*1.095 AND C=H); T2L:=BARSLAST(C<REF(C,1)*1.095 AND C>REF(C,1)*1.08); T3L:=BARSLAST(C<REF(C,1)*1.08 AND C>REF(C,1)*1.07); T4L:=BARSLAST(C<REF(C,1)*1.07 AND C>REF(C,1)*1.06); T5L:=BARSLAST(C<REF(C,1)*1.06 AND C>REF(C,1)*1.05); TJ1X:=COUNT(TX=0,100)=0; TJ2:=COUNT(T2L=0,100)=0; TJ3:=COUNT(T3L=0,100)=0; TJ4:=COUNT(T4L=0,100)=0; TJ5:=COUNT(T5L=0,100)=0; TJA:=C>REF(C,1)*1.05; AA:=REF(TX,1)>100 AND REF(T2L,1)>100 AND REF(T3L,1)>100 AND REF(T4L,1)>100 AND REF(T5L,1)>80 AND TJA; HHM:=HHV(MACD.MACD*100,200); LLM:=LLV(MACD.MACD*100,200); M5:=MA(C,5);M10:=MA(C,10);M20:=MA(C,20);M60:=MA(C,60); D3:=MIN(MIN(M5,M10),M20)>M60; XGT:=BARSLAST(AA AND HHM<60 AND LLM>-55); D6:=BARSSINCEN(MIN(MIN(M5,M10),M20)>M60,XGT+1); XGX:=CROSS((XGT=0 AND D3) OR D6=0,0.5); TJX:=COUNT(XGX,30)=2 AND XGX; SR11:=REF(HIGH,10)=HHV(HIGH,2*10+1); SR21:=FILTER(SR11,10); SR31:=BACKSET(SR21,10+1); HDH:=FILTER(SR31,10); 前高G:=REF(H,BARSLAST(HDH)); 倍量G:=VOL/REF(VOL,1)>=1.9; 突破前高G:=CROSS(C,前高G); YG:= 倍量G AND 突破前高G; SJG:=BARSLAST(YG); H300:=HHVBARS(DIF,300); AL:=BOLL.UB; TQ:=BARSLAST(CROSS(AL>=REF(AL,1),0.5)); E25:=EXPMA(C,25); ZF:=EVERY(RANGE(C/REF(C,1),0.97,1.05),TQ+1); ZFF:=(HHV(H,TQ+1)-LLV(L,TQ+1))/LLV(L,TQ+1)*100; TJQ:=EVERY(MAX(C,O)/AL<1.02 ,TQ+1); XL:=(ATAN((E25/REF(E25,TQ)-1)*100)*180/3.1415926); TJ1Q:=CROSS(DIF>=REF(DIF,H300),0.5) AND ZFF<17 AND ZF AND TJQ; 起程:=TJ1Q AND XL>75; A1F:=REF(C,1); A3F:=(DCLOSE-A1F)/A1F*100; AA1F:=(A3F-REF(A3F,1)); 選股1:=CROSS(AA1F,9.8); A11F:=REF(V,1); A13F:=DVOL/A11F; AA3F:=(A13F-REF(A13F,1)); 選股2:=CROSS(AA3F,500); 潛伏:=選股1 AND 選股2; 爆發(fā)點(diǎn):=(DCLOSE-REF(C,1))/REF(C,1)*100; XB:=CROSS(爆發(fā)點(diǎn),20); TJ1L:=REF(CROSS(MA(C,5),C),1) AND CROSS(C,MA(C,5)); TJ2L:=REF(CROSS(MA(C,10),C),1) AND CROSS(C,MA(C,10)); TJ3L:=REF(CROSS(MA(C,20),C),1) AND CROSS(C,MA(C,20)); TJ4L:=TJ1L OR TJ2L OR TJ3L; TJ5L:=REF(C,2)/REF(C,1)>=1.045 AND REF(C,1)<REF(O,1) AND C/REF(C,1)>1.09 AND C=H AND TJ4L; A:=(3*C+L+O+H)/6; X:=(20*A+19*REF(A,1)+18*REF(A,2)+17*REF(A,3)+16*REF(A,4)+15*REF(A,5)+ 14*REF(A,6)+13*REF(A,7)+12*REF(A,8)+11*REF(A,9)+10*REF(A,10)+9*REF(A,11)+8*REF(A,12) +7*REF(A,13)+6*REF(A,14)+5*REF(A,15)+4*REF(A,16)+3*REF(A,17)+2*REF(A,18)+ REF(A,20))/210; 中線:=EMA(X,13); KKA:=EMA(C,5); KKB:=EMA(KKA,8); KKC:=EMA(KKB,13); 長線1:=EMA(KKC,50); KAAA3:=REF(C,1)<REF(中線,1) AND C>中線; KBBB3:=C/REF(C,1)>1+0.01*9; KCCC3:=中線/長線1<1+0.01*20; 大牛:=KAAA3 AND KBBB3 AND KCCC3 AND TJ5L; VARAA:=LLV(LOW,5); VARBA:=HHV(HIGH,5); 確:=EMA((CLOSE-VARAA)/(VARBA-VARAA)*100,4); MA500:=MA(CLOSE,500); MA250:=MA(CLOSE,250); MA120:=MA(CLOSE,120); MA30:=MA(CLOSE,33); MA60:=MA(CLOSE,55); 漲停收盤:=(C-REF(C,1))*100/REF(C,1)>=4 AND H-C<0.02; HD30:=FILTER(BACKSET(FILTER(REF(H,30)=HHV(H,2*30+1),30),30+1),30); LD30:=FILTER(BACKSET(FILTER(REF(H,30)=LLV(H,2*30+1),30),30+1),30); AX30:=REF(H,BARSLAST(HD30)); T300:=BARSLAST(HD30)<BARSLAST(LD30) AND NOT(HD30); 頂30:=IF(T300,AX30,AX30); JZ:=(CROSS(C,頂30) AND DIF>=-0.21 AND DEA<=0.37 AND MA30>MA60 AND (CROSS(C,MA30)OR CROSS(C,MA120)OR CROSS(C,MA250)OR CROSS(C,MA500) OR LOW< MA30)) AND MA30- MA60<0.7 AND 漲停收盤 AND ABS((頂30-MA30)/頂30*100)<10; 信號:IF(確>REF(確,1) AND DIF>DEA AND (JZ OR 大牛 OR XB OR 潛伏 OR 起程 OR CURRBARSCOUNT=CONST(SJG)+2 OR TJX OR (CCI<=100 AND L<=低2)),100,0),STICK,COLORFF00FF,LINETHICK2; 賣警:IF(PEAKBARS(3,15,1)=1,80,100),COLORGREEN; 泥淖:IF((F1> REF(F1,1)),100,80),COLORFF9900; Q_1:=C-REF(C,1); Q_2:=100*EMA(EMA(Q_1,6),6)/EMA(EMA(ABS(Q_1),6),6); Q_3:=CROSS(EMA(C,19),EMA(C,7)); Q_4:=CROSS(EMA(C,7),EMA(C,19)); Z1:=L=LLV(L,BARSLAST(Q_3)+1); Z2:=LLV(L,BARSLAST(Q_3)+1); Z3:=H=HHV(H,BARSLAST(Q_4)+1); Z4:=HHV(H,BARSLAST(Q_4)+1); 上0:=DRAWLINE(Z1,Z2,Z3,Z4,0); Y1:=H=HHV(H,BARSLAST(Q_4)+1); Y2:=HHV(H,BARSLAST(Q_4)+1); Y3:=L=LLV(L,BARSLAST(Q_3)+1); Y4:=LLV(L,BARSLAST(Q_3)+1); 下0:=DRAWLINE(Y1,Y2,Y3,Y4,0); TJ:=IF(上0<REF(上0,1) AND 下0=上0,1,0); 未來空柱:=IF(REF(TJ,1)=0 AND TJ>=1,100,0); {K線形態(tài)解盤} TT:=240/FROMOPEN; 比:=TT; J12:=(HIGH - ((HIGH - LOW) / 3)); J23:=(LOW + ((HIGH - LOW) / 3)); T1{早晨之星}:=CONST(IF((REF(CLOSE,2)/REF(OPEN,2) < 0.95 AND REF(OPEN,1) < REF(CLOSE,2) AND ABS(REF(OPEN,1)-REF(CLOSE,1))/REF(CLOSE,1)<0.03 AND CLOSE/OPEN>1.05 AND CLOSE>REF(CLOSE,2)),1,0)); T2{黃昏之星}:=CONST(IF((REF(CLOSE,2)/REF(OPEN,2) > 1.03 AND REF(OPEN,1) > REF(CLOSE,2) AND ABS(REF(OPEN,1)-REF(CLOSE,1))/REF(CLOSE,1)<0.02 AND CLOSE/OPEN<0.97 AND CLOSE<REF(CLOSE,2)),1,0)); T3{長十字}:=CONST(IF((CLOSE=OPEN AND HIGH/LOW >1.03),1,0)); T4{垂死十字}:=CONST(IF((CLOSE=OPEN AND CLOSE=LOW AND CLOSE!=HIGH),1,0)); T5{早晨十字星}:=CONST(IF((REF(CLOSE,2)/REF(OPEN,2) < 0.95 AND REF(OPEN,1) < REF(CLOSE,2) AND REF(OPEN,1)=REF(CLOSE,1) AND CLOSE/OPEN>1.05 AND CLOSE>REF(CLOSE,2)),1,0)); T6{黃昏十字星}:=CONST(IF((REF(CLOSE,2)/REF(OPEN,2) > 1.05 AND REF(OPEN,1) > REF(CLOSE,2) AND REF(OPEN,1)=REF(CLOSE,1) AND CLOSE/OPEN<0.95 AND CLOSE<REF(CLOSE,2)),1,0)); T7{射擊之星}:=CONST(IF((MIN(OPEN,CLOSE)=LOW AND HIGH-LOW > 3*(MAX(OPEN,CLOSE)-LOW) AND CLOSE > MA(CLOSE,5)),1,0)); T8{倒轉(zhuǎn)錘頭}:=CONST(IF((MIN(OPEN,CLOSE)=LOW AND HIGH-LOW > 3*(MAX(OPEN,CLOSE)-LOW) AND CLOSE < MA(CLOSE,5)),1,0)); T9{錘頭}:=CONST(IF((HIGH = MAX(OPEN,CLOSE) AND HIGH-LOW > 3*(HIGH-MIN(OPEN,CLOSE)) AND CLOSE < MA(CLOSE,5)),1,0)); T10{吊頸}:=CONST(IF((HIGH = MAX(OPEN,CLOSE) AND HIGH-LOW > 3*(HIGH-MIN(OPEN,CLOSE)) AND CLOSE>MA(CLOSE,5)),1,0)); T11{穿頭破腳}:=CONST(IF(((REF(CLOSE,1)/REF(OPEN,1)>1.03 AND CLOSE/OPEN<0.96 AND CLOSE<REF(OPEN,1) AND OPEN>REF(CLOSE,1))OR (REF(CLOSE,1)/REF(OPEN,1)<0.97 AND CLOSE/OPEN>1.04 AND CLOSE>REF(OPEN,1) AND OPEN<REF(CLOSE,1))),1,0)); T12{烏云蓋頂}:=CONST(IF((REF(CLOSE,1)/REF(OPEN,1)>1.03 AND CLOSE/OPEN<0.97 AND OPEN>REF(CLOSE,1) AND CLOSE<REF(CLOSE,1)),1,0)); T13{曙光初現(xiàn)}:=CONST(IF((REF(CLOSE,1)/REF(OPEN,1)<0.97 AND CLOSE/OPEN>1.03 AND OPEN<REF(CLOSE,1) AND CLOSE>REF(CLOSE,1)),1,0)); T14{身懷六甲}:=CONST(IF((ABS(REF(CLOSE,1)-REF(OPEN,1))/REF(CLOSE,1) > 0.04 AND ABS(CLOSE-OPEN)/CLOSE<0.005 AND MAX(CLOSE,OPEN) < MAX(REF(CLOSE,1),REF(OPEN,1)) AND MIN(CLOSE,OPEN) > MIN(REF(CLOSE,1),REF(OPEN,1))),1,0)); T15{十字胎}:=CONST(IF((ABS(REF(CLOSE,1)-REF(OPEN,1))/REF(CLOSE,1) > 0.04 AND CLOSE=OPEN AND CLOSE < MAX(REF(CLOSE,1),REF(OPEN,1)) AND CLOSE > MIN(REF(CLOSE,1) ,REF(OPEN,1))),1,0)); T16{平頂}:=CONST(IF((ABS(HIGH-REF(HIGH,1))/HIGH<0.001),1,0)); T17{平底}:=CONST(IF(((ABS(LOW-REF(LOW,1))/LOW<0.001 AND ABS(REF(LOW,1) -REF(LOW,2))/REF(LOW,1)<=0.001)),1,0)); T18{大陽燭}:=CONST(IF((CLOSE/OPEN>1.05 AND HIGH/LOW < CLOSE/OPEN+0.018),1,0)); T19{三個(gè)白武士}:=CONST(IF((REF(CLOSE,2)>REF(OPEN,2) AND REF(CLOSE,1) >REF(OPEN,1) AND CLOSE>OPEN AND REF(CLOSE,1)>REF(CLOSE,2) AND CLOSE>REF(CLOSE,1)),1,0)); T20{雙飛烏鴉}:=CONST(IF((REF(CLOSE,1)<REF(OPEN,1) AND CLOSE<OPEN AND CLOSE/OPEN<0.98),1,0)); T21{孕育線}:=CONST(IF((REF(CLOSE,2)>REF(OPEN,2) AND (REF(CLOSE,2) -REF(OPEN,2))/REF(OPEN,2)>=2/100 AND REF(OPEN,1)>=REF(CLOSE,1) AND (REF(OPEN,1)-REF(CLOSE,1))/REF(CLOSE,1)<=2/100 AND REF(OPEN,1) <=REF(CLOSE,2) AND REF(CLOSE,1)>=REF(OPEN,2) AND C>=OPEN AND (CLOSE-OPEN)/OPEN>=2/100 AND CLOSE>=REF(OPEN,1) AND OPEN<=REF(CLOSE,1) AND (MAX(CLOSE,REF(C,2))-MIN(CLOSE,REF(CLOSE,2)))/MIN(CLOSE,REF(CLOSE,2)) <=1/100),1,0)); T22{多方炮}:=CONST(IF((REF(CLOSE,2)>REF(OPEN,2) AND REF(CLOSE,1)<REF(OPEN,1) AND CLOSE>OPEN),1,0)); T23{出水芙蓉}:=CONST(IF(((OPEN<EMA(C,20) OR OPEN<EMA(C,40) OR OPEN< EMA(C,60)) AND (C>MAX(EMA(C,20),MAX(EMA(C,40),EMA(C,60))))AND (V/MA(V,30) >1.2 AND C/REF(C,1)>1.049)),1,0)); T24{上升三部曲}:=CONST(IF((REF(CLOSE,4)/REF(OPEN,4)>1.03 AND REF(CLOSE,3) <REF(OPEN,3) AND REF(CLOSE,2)<REF(OPEN,2) AND REF(CLOSE,1)<REF(OPEN,1) AND REF(LOW,4)<REF(LOW,3) AND REF(LOW,4)<REF(LOW,2) AND REF(LOW,4) <REF(LOW,1) AND REF(HIGH,4)>REF(HIGH,3) AND REF(HIGH,4)>REF(HIGH,2) AND REF(HIGH,4)>REF(HIGH,1) AND CLOSE/OPEN>1.03 AND CLOSE>REF(CLOSE,4)),1,0)); T25{下跌三部曲}:=CONST(IF(( REF(CLOSE,4)/REF(OPEN,4)<0.97 AND REF(CLOSE,3) >REF(OPEN,3) AND REF(CLOSE,2)>REF(OPEN,2) AND REF(CLOSE,1)>REF(OPEN,1) AND REF(LOW,4)<REF(LOW,3) AND REF(LOW,4)<REF(LOW,2) AND REF(LOW,4) <REF(LOW,1) AND REF(HIGH,4)>REF(HIGH,3) AND REF(HIGH,4)>REF(HIGH,2) AND REF(HIGH,4)>REF(HIGH,1) AND CLOSE/OPEN<0.97 AND CLOSE<REF(CLOSE,4)),1,0)); T26{跳空缺口}:=CONST(IF(HIGH<REF(LOW,1) OR LOW>REF(HIGH,1),1,0)); T27{三只烏鴉}:=CONST(IF((REF(CLOSE,2)<REF(OPEN,2) AND REF(CLOSE,1) <REF(OPEN,1) AND CLOSE<OPEN AND REF(CLOSE,1)<REF(CLOSE,2) AND CLOSE<REF(CLOSE,1)),1,0)); T28{光腳陰線}:=CONST(IF((LOW=CLOSE AND HIGH!=LOW),1,0)); T29{光頭陽線}:=CONST(IF((HIGH=CLOSE AND HIGH!=LOW),1,0)); T30{分離}:=CONST(IF((OPEN=REF(OPEN,1) AND (CLOSE-OPEN)*(REF(CLOSE,1) -REF(OPEN,1))<0),1,0)); T31{長下影}:=CONST(IF(((MIN(CLOSE,OPEN)-LOW)/(HIGH-LOW)>0.667),1,0)); T32{長上影}:=CONST(IF(((HIGH-MAX(CLOSE,OPEN))/(HIGH-LOW)>0.667),1,0)); T33{十字星}:=CONST(IF((CLOSE=OPEN AND HIGH!=LOW),1,0)); T34{大陰燭}:=CONST(IF((OPEN/CLOSE > 1.05 AND HIGH/LOW < OPEN/CLOSE+0.018),1,0)); T35{好友反攻}:=CONST(IF(((REF(CLOSE,1)<REF(OPEN,1) AND CLOSE>OPEN AND ABS(CLOSE-REF(CLOSE,1))/CLOSE<0.002) OR (REF(CLOSE,1)>REF(OPEN,1) AND CLOSE<OPEN AND ABS(CLOSE-REF(CLOSE,1)) /CLOSE<0.002)),1,0)); T36{傾盆大雨}:=CONST(IF((REF(C,1)/REF(O,1)>=1.03 AND O<REF(C,1) AND O >REF(O,1) AND C<REF(O,1)),1,0)); T37{M9}:=CONST(V*比>REF(V,1) AND MA(V,5)>REF(MA(V,5),1)); T38{M10}:=CONST(V*比<REF(V,1) AND MA(V,5)>REF(MA(V,5),1)); T39{M11}:=CONST(V*比>REF(V,1)AND MA(V,5)<REF(MA(V,5),1)); T40{M12}:=CONST(V*比<REF(V,1)AND MA(V,5)<REF(MA(V,5),1)); T41{M13}:=CONST((((IF((CLOSE = OPEN),1,0) + IF((CLOSE >= J12),1,0)) + IF((CLOSE <= J23),1,0)) > 1)); T42{M14}:=CONST((((AMOUNT / VOL) / 100) > REF(HIGH,1))); T43{M15}:=CONST((((AMOUNT / VOL) / 100) < REF(LOW,1))); TS1:=IF(T1=1,0.02+0.02,0.02),NODRAW; TS2:=IF(T2=1,TS1+0.08,TS1),NODRAW; TS3:=IF(T3=1,TS2+0.08,TS2),NODRAW; TS4:=IF(T4=1,TS3+0.08,TS3); TS5:=IF(T5=1,TS4+0.08,TS4); TS6:=IF(T6=1,TS5+0.08,TS5); TS7:=IF(T7=1,TS6+0.08,TS6); TS8:=IF(T8=1,TS7+0.08,TS7); TS9:=IF(T9=1,TS8+0.08,TS8); TS10:=IF(T10=1,TS9+0.08,TS9),NODRAW; TS11:=IF(T11=1,TS10+0.08,TS10); TS12:=IF(T12=1,TS11+0.08,TS11); TS13:=IF(T13=1,TS12+0.08,TS12); TS14:=IF(T14=1,TS13+0.08,TS13); TS15:=IF(T15=1,TS14+0.08,TS14); TS16:=IF(T16=1,TS15+0.08,TS15); TS17:=IF(T17=1,TS16+0.08,TS16); TS18:=IF(T18=1,TS17+0.08,TS17); TS19:=IF(T19=1,TS18+0.08,TS18); TS20:=IF(T20=1,TS19+0.08,TS19); TS21:=IF(T21=1,TS20+0.08,TS20); TS22:=IF(T22=1,TS21+0.08,TS21); TS23:=IF(T23=1,TS22+0.08,TS22); TS24:=IF(T24=1,TS23+0.08,TS23); TS25:=IF(T25=1,TS24+0.08,TS24); TS26:=IF(T26=1,TS25+0.08,TS25); TS27:=IF(T27=1,TS26+0.08,TS26); TS28:=IF(T28=1,TS27+0.08,TS27); TS29:=IF(T29=1,TS28+0.08,TS28); TS30:=IF(T30=1,TS29+0.08,TS29); TS31:=IF(T31=1,TS30+0.08,TS30); TS32:=IF(T32=1,TS31+0.08,TS31); TS33:=IF(T33=1,TS32+0.08,TS32); TS34:=IF(T34=1,TS33+0.08,TS33); TS35:=IF(T35=1,TS34+0.08,TS34); TS36:=IF(T36=1,TS35+0.08,TS35); TS37:=IF(T37=1,TS36+0.08,TS36); TS38:=IF(T38=1,TS37+0.08,TS37); TS39:=IF(T39=1,TS38+0.08,TS38); TS40:=IF(T40=1,TS39+0.08,TS39); TS41:=IF(T41=1,TS36+0.08,TS36); TS42:=IF(T42=1,TS41+0.08,TS41); TS43:=IF(T43=1,TS42+0.08,TS42); DRAWTEXT_FIX(T1=1,0,TS1,0,'早晨之星,僅在低位見底回升【其余區(qū)域忽略】'),COLORFF00FF ; DRAWTEXT_FIX(T2=1,0,TS2,0,'黃昏之星,處高位見頂回落'),COLORFFFF00 ; DRAWTEXT_FIX(T3=1,0,TS3,0,'長十字,重要的警告信號,原趨勢停頓或反轉(zhuǎn)'),COLORGREEN ; DRAWTEXT_FIX(T4=1,0,TS4,0,'垂死十字,下跌信號'),COLORFFFF00 ; DRAWTEXT_FIX(T5=1,0,TS5,0,'早晨十字星,處低位時(shí)為上漲信號,見底回升'),COLORFF00FF ; DRAWTEXT_FIX(T6=1,0,TS6,0,'黃昏十字星,趨勢停頓或反轉(zhuǎn),下跌或見頂回落'),COLORFFFF00 ; DRAWTEXT_FIX(T7=1,0,TS7,0,'射擊之星,可能見頂回落'),COLORFFFF00 ; DRAWTEXT_FIX(T8=1,0,TS8,0,'倒轉(zhuǎn)錘頭構(gòu)成一個(gè)看漲信號,可能見底回升'),COLORFF00FF ; DRAWTEXT_FIX(T9=1,0,TS9,0,'錘頭,在低位可能見底回升,如有量配合,信號強(qiáng)烈【高位觀望】'),COLOR0000FF ; DRAWTEXT_FIX(T10=1,0,TS10,0,'吊頸,上升行情中見頂回落,如高位出現(xiàn),見頂信號'),COLORFFFF00 ; DRAWTEXT_FIX(T11=1,0,TS11,0,'穿頭破腳,處高位出現(xiàn),見頂回落信號'),COLORFFFF00 ; DRAWTEXT_FIX(T12=1,0,TS12,0,'烏云蓋頂,見頂回落信號'),COLORFFFF00 ; DRAWTEXT_FIX(T13=1,0,TS13,0,'曙光初現(xiàn),將演化為V型反轉(zhuǎn)或橫盤。'),COLORFF00FF ; DRAWTEXT_FIX(T14=1,0,TS14,0,'身懷六甲,低位或見底回升;高位見頂回落信號'),COLORGREEN ; DRAWTEXT_FIX(T15=1,0,TS15,0,'十字胎'),COLORGREEN ; DRAWTEXT_FIX(T16=1,0,TS16,0,'平頂,行情見頂,股價(jià)將反轉(zhuǎn)。但下跌力度較小'),COLORFFFFFF ; DRAWTEXT_FIX(T17=1,0,TS17,0,'平底,行情探低見底,股價(jià)行將反轉(zhuǎn)上升,但力度較小'),COLORFFFFFF ; DRAWTEXT_FIX(T21=1,0,TS21,0,'孕育線,注意股價(jià)位置'),COLOR00FFFF ; DRAWTEXT_FIX(T22=1,0,TS22,0,'多方炮,低位可能上漲,中位上漲中繼,高位或?yàn)橐婍旑A(yù)警信號'),COLORFFFFFF ; DRAWTEXT_FIX(T23=1,0,TS23,0,'出水芙蓉,陽線穿過20、40、60日均線,上攻勢頭初現(xiàn)'),COLORRED ; DRAWTEXT_FIX(T24=1,0,TS24,0,'上升三部曲,上漲信號'),COLORFF00FF ; DRAWTEXT_FIX(T25=1,0,TS25,0,'下跌三部曲,下跌信號'),COLORFFFF00 ; DRAWTEXT_FIX(T27=1,0,TS27,0,'三只烏鴉站枝頭,見頂回落'),COLORFFFF00 ; DRAWTEXT_FIX(T28=1,0,TS28,0,'光腳陰線,下跌信號'),COLORFFFF00 ; DRAWTEXT_FIX(T29=1,0,TS29,0,'光頭陽線,低位或中位是積極上攻態(tài)勢,后市看漲【高位謹(jǐn)慎】'),COLOR00FFFF ; DRAWTEXT_FIX(T31=1,0,TS31,0,'長下影,有可能止跌回升,但在高位升勢末期須小心'),COLORGREEN ; DRAWTEXT_FIX(T32=1,0,TS32,0,'長上影,表明行情上檔壓力沉重,升勢受阻'),COLORFFFF00 ; DRAWTEXT_FIX(T33=1,0,TS33,0,'十字星,重要的警告信號,原趨勢停頓或反轉(zhuǎn)'),COLORGREEN ; DRAWTEXT_FIX(T34=1,0,TS34,0,'大陰燭,后市向淡,發(fā)生逆轉(zhuǎn)'),COLORLIBLUE ; DRAWTEXT_FIX(T36=1,0,TS36,0,'傾盆大雨,見頂信號'),COLORFFFF00 ; DRAWTEXT_FIX(T41=1,0,TS41,0,'極端行情,在未來的幾日內(nèi)可能變更方向'),COLORFFFF00 ; SR1:=REF(HIGH,10)=HHV(HIGH,2*10+1); SR2:=FILTER(SR1,10); SR3:=BACKSET(SR2,10+1); HD:=FILTER(SR3,10); 前高:=REF(H,BARSLAST(HD)); 倍量:=VOL/REF(VOL,1)>=1.9; 突破前高:=CROSS(C,前高); Y:= 倍量 AND 突破前高; SJ:=BARSLAST(Y); DRAWTEXT(CURRBARSCOUNT=CONST(SJ)+2,45,'過左峰'),COLORYELLOW; B:=ZIG(3,10); G:=MA(B,2); W:=CROSS(G,B); DRAWTEXT(W=1,70,'賣' ),COLOR00FF00; VARA1:=(((CLOSE - MA(CLOSE,6)) / MA(CLOSE,6)) * 100); VARA2:=(((CLOSE - MA(CLOSE,12)) / MA(CLOSE,12)) * 100); VARA3:=(((CLOSE - MA(CLOSE,24)) / MA(CLOSE,24)) * 100); VARA4:=(((VARA1 + (2 * VARA2)) + (3 * VARA3)) / 6); VARA5:=MA(VARA4,3); 底部反轉(zhuǎn):=CROSS(KDJ.J,0) AND (VARA5 <= (0 - 7)); DRAWTEXT(F2=100 AND 底部反轉(zhuǎn),50,'反轉(zhuǎn)預(yù)警'),COLORRED; 值:=(EMA(((CLOSE-LLV(LOW,14))/(HHV(HIGH,35)-LLV(LOW,56)))*(4),4))*(25),COLORGREEN,LINETHICK2; DRAWTEXT(FILTER(CROSS(值,5),10), 40,'超低'),COLORYELLOW; DIFX:=(2*EMA(CLOSE, 12)-EMA(EMA(CLOSE,12),12))-(2*EMA(CLOSE, 26)-EMA(EMA(CLOSE, 26),26)); DEAX:=2*EMA(DIFX, 9) - EMA(EMA(DIFX, 9),9); FF:=C=LLV(C,180); GG:= DEAX> REF(DEAX,1) AND REF(DEAX> REF(DEAX,1),1)=1; LL:=C< REF(C,1) AND REF(C< REF(C,1),1)=1; 拐點(diǎn)出擊:=(NOT(未來空柱=100) AND F2=100 AND LL AND GG)*DEAX; VAR1:=(CLOSE-LLV(LOW,34))/(HHV(HIGH,34)-LLV(LOW,34))*100; VAR2:=SMA(VAR1,3,1); VAR3:=SMA(VAR2,3,1); VAR4:=SMA(VAR3,3,1); 山底:=IF(CLOSE>SAR(4,6,20),SAR(4,6,20),DRAWNULL),CIRCLEDOT,COLORGREEN; 山頂:=IF(CLOSE<SAR(4,6,20),SAR(4,6,20),DRAWNULL),CIRCLEDOT,COLORRED; DIFF:=EMA(CLOSE,12) - EMA(CLOSE,26),COLORWHITE; DIFF變紅:=IF(DIFF>=REF(DIFF,1),DIFF,DRAWNULL),COLORLIRED; {DEA:=EMA(DIFF,9),COLORWHITE;} DEA變紅:=IF(DEA>=REF(DEA,1),DEA,DRAWNULL),COLORLIMAGENTA; {MACD:=2*(DIFF-DEA),COLORSTICK;} NOTEXT上買下賣:=CLOSE-REF(CLOSE,49),COLORWHITE; NOTEXT紅買綠賣:=MA(NOTEXT上買下賣,49),COLORGREEN; 上買下賣:=IF(NOTEXT上買下賣>NOTEXT紅買綠賣,NOTEXT上買下賣,DRAWNULL),LINETHICK2,COLORMAGENTA; 紅買綠賣:=IF(NOTEXT紅買綠賣>=REF(NOTEXT紅買綠賣,1) AND NOTEXT上買下賣>NOTEXT紅買綠賣,NOTEXT紅買綠賣,DRAWNULL),LINETHICK3,COLORRED; 紅買:=上買下賣 AND 紅買綠賣 AND DEA變紅,COLORRED,NODRAW; 綠賣:=紅買!=1,COLORGREEN,NODRAW; 底:=SMA(VAR2,3,1),COLORGREEN; 頂:=SMA(底,3,1),COLORRED; 方向:=ABS((2*CLOSE+HIGH+LOW)/4-MA(CLOSE,30))/MA(CLOSE,30); 方向向下:=(DMA((2*CLOSE+LOW+HIGH)/4,方向)),COLORGREEN; 紅燈停:=IF(CLOSE<SAR(4,6,20),SAR(4,6,20),DRAWNULL),CIRCLEDOT,COLORRED; 向下:=方向向下 AND 紅燈停,COLORGREEN,NODRAW; 空倉基因:=綠賣 AND 向下,COLORGREEN,NODRAW; B2:=BARSLAST(REF(CROSS(頂,底),1)); 頂背離:=空倉基因 AND REF(C,B2+1)<HHV(H,3) AND REF(底,B2+1)>底 AND CROSS(頂,底) AND 底>80 AND MA(C,5)>MA(C,377) AND 山頂; DRAWTEXT(頂背離=1,85,'頂背'),COLORFFFF00; DRAWTEXT(FILTER(拐點(diǎn)出擊,30), 30,'拐點(diǎn)→'),COLORWHITE; |
|