婁建東
EMA5:MA(C,5)LINETHICK3;
EM14:MA(C,14),COLORRED LINETHICK2; EMA23:MA(C,23),COLOR00FFFF; EMA30:MA(C,30),COLORFFFFFF LINETHICK2; EMA55:MA(C,55),COLORGREEN; EMA99:MA(C,99),COLORBLUE;多頭線:=(SUM((((2)*(CLOSE-CLOSE*0.2)+(OPEN-OPEN*0.2)+(HIGH-HIGH*0.2)+(LOW-LOW*0.2))/(5))*(VOL),8))/(SUM(VOL,8)),COLOR0099FF; 空頭線:=LLV(多頭線,8),COLORGREEN; AA:=C-C*0.2,COLORWHITE; VAR1:=BACKSET(REF(HIGH,2)=HHV(HIGH,5),3); VAR2:=CROSS(VAR1,0.9); VAR3:=BACKSET(REF(LOW,2)=LLV(LOW,5),3); VAR4:=CROSS(VAR3,0.9); 壓力: REF(HIGH,BARSLAST(VAR2)), POINTDOT,COLOREA91B5; STICKLINE(CLOSE,REF(HIGH,BARSLAST(VAR2)),REF(HIGH,BARSLAST(VAR2)),5,0),COLOREA91B5; 支撐: REF(LOW,BARSLAST(VAR4)), POINTDOT,COLOR3791B5; STICKLINE(CLOSE,REF(LOW,BARSLAST(VAR4)),REF(LOW,BARSLAST(VAR4)),5,0),COLOR3791B5; DRAWTEXT(VAR2,HIGH*1.02,'跌'),COLOR00E40E; DRAWTEXT(VAR4,LOW*0.99,'停'),COLOR00E40E; VAR5:=IF(VAR2,HIGH,IF(VAR4,LOW,0)); VAR6:=BACKSET(REF(HIGH,2)=HHV(HIGH,5) AND LOW<REF(LOW,1) AND HIGH<REF(HIGH,1),3); VAR7:=BACKSET(REF(HIGH,2)=HHV(HIGH,5) AND LOW>REF(LOW,1) AND HIGH>REF(HIGH,1),3); VAR8:=BACKSET(REF(HIGH,2)=HHV(HIGH,5) AND HIGH<REF(HIGH,1) AND LOW>REF(LOW,1) AND REF(LOW,1)>REF(LOW,2) AND REF(HIGH,1)<REF(HIGH,2),3); VAR9:=BACKSET(REF(LOW,2)=LLV(LOW,5) AND LOW>REF(LOW,1) AND HIGH>REF(HIGH,1),3); VARA:=BACKSET(REF(LOW,2)=LLV(LOW,5) AND LOW<REF(LOW,1) AND HIGH<REF(HIGH,1),3); VARB:=BACKSET(REF(LOW,2)=LLV(LOW,5) AND HIGH<REF(HIGH,1) AND LOW>REF(LOW,1) AND REF(LOW,1)>REF(LOW,2) AND REF(HIGH,1)<REF(HIGH,2),3); DRAWTEXT(CROSS(VAR6,0.9),HIGH*1.01,'堅(jiān)定'),COLORMAGENTA; DRAWTEXT(CROSS(VAR9,0.9),LOW*0.99,'停定'),COLOR0000FF; DRAWTEXT(CROSS(VAR7,0.9),HIGH*1.03,'猶豫'),COLOR00E5E9; DRAWTEXT(CROSS(VARA,0.9),HIGH*1.03,'猶豫'),COLOR00E5E9; DRAWTEXT(CROSS(VAR8,0.9),HIGH,'等待'),COLORFF4100; 牛牛 V1:=ABS((2*CLOSE+HIGH+LOW)/4-MA(CLOSE,20))/MA(CLOSE,20);
V2:=(1-7/100)*(DMA(CLOSE,V1)); V3:=(1+7/100)*(DMA(CLOSE,V1)); V5:=MA((LOW+HIGH+CLOSE)/3,5); 支撐:REFDATE(V2,DATE),POINTDOT,LINETHICK3,COLORCC66FF; 阻力:REFDATE(V3,DATE),POINTDOT,LINETHICK3,COLORGREEN; VAR1:=CLOSE>REF(CLOSE,1) AND CLOSE>REF(CLOSE,2); VAR2:=REF(VAR1,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2); VAR3:=REF(VAR2,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2); VAR4:=REF(VAR3,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2); VAR5:=REF(VAR4,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2); VAR6:=REF(VAR5,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2); VAR7:=REF(VAR6,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2); VAR8:=REF(VAR7,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2); VAR9:=REF(VAR8,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2); VARA:=REF(VAR9,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2); VARB:=REF(VARA,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2); VARC:=REF(VARB,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2); VARD:=CLOSE<REF(CLOSE,1) AND CLOSE<REF(CLOSE,2); VARE:=REF(VARD,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2); VARF:=REF(VARE,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2); VAR10:=REF(VARF,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2); VAR11:=REF(VAR10,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2); VAR12:=REF(VAR11,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2); VAR13:=REF(VAR12,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2); VAR14:=REF(VAR13,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2); VAR15:=REF(VAR14,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2); VAR16:=REF(VAR15,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2); VAR17:=REF(VAR16,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2); VAR18:=REF(VAR17,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2); VAR19:=REF(VARD OR VARE OR VARF OR VAR10 OR VAR11 OR VAR12 OR VAR13 OR VAR14 OR VAR15 OR VAR16 OR VAR17 OR VAR18,1) AND VAR1; STICKLINE(VAR19,L,L*0.98,3,0),COLORYELLOW; VAR1A:=REF(VAR1 OR VAR2 OR VAR3 OR VAR4 OR VAR5 OR VAR6 OR VAR7 OR VAR8 OR VAR9 OR VARA OR VARB OR VARC,1) AND VARD; STICKLINE(VAR1A,H*1.01,H,3,0),COLOR00FF00{98FD}; MA3:MA(C,3); MA5:MA(C,5),COLORWHITE; MA10:=MA(C,10),NODRAW; MA30:MA(C,34),NODRAW; 五日乖離率:=(C-MA5)/MA5*100; BB5:=ATAN((MA5/REF(MA5,1)-1)*100)*180/3.1416; IF(BB5>30 AND MA5>REF(MA5,1), MA5,DRAWNULL),LINETHICK1,COLORRED; BB10:=ATAN((MA10/REF(MA10,1)-1)*100)*180/3.1416; IF(BB5<0 AND MA5<REF(MA5,1), MA5,DRAWNULL),LINETHICK1,COLORGREEN; DD5:=MA5<REF(MA5,1); IF(DD5,MA5,DRAWNULL),COLOR00FF00; X:=(3*C+L+O+H)/6; 多空線:(20*X+19*REF(X,1)+18*REF(X,2)+17*REF(X,3)+16*REF(X,4)+15*REF(X,5)+14*REF(X,6) +13*REF(X,7)+12*REF(X,8)+11*REF(X,9)+10*REF(X,10)+9*REF(X,11)+8*REF(X,12) +7*REF(X,13)+6*REF(X,14)+5*REF(X,15)+4*REF(X,16)+3*REF(X,17)+2*REF(X,18)+ REF(X,20))/210,COLORFF00FF,LINETHICK1; {用法:黃托底買進(jìn),綠壓頂買出。} DD:=多空線<REF(多空線,1); IF(DD,多空線,DRAWNULL),COLORBLUE,LINETHICK2; A:=(MA5>多空線); IF(A,多空線,DRAWNULL),COLORYELLOW,POINTDOT; A1:=(MA5<多空線); IF(A1,多空線,DRAWNULL),COLORWHITE; A2:=3*EMA((C-LLV(L,30))/(HHV(H,30)-LLV(L,30))*100,5)-2*EMA((C-LLV(L,30))/(HHV(H,30)-LLV(L,30))*100,5); A4:=(HHV(H,34)-C)/(HHV(H,34)-LLV(L,34))*100; A5:=EMA(CLOSE,12)-EMA(CLOSE,26); A6:=EMA(A5,9); A7:=(A5<-0.1 AND A5>A6); 財(cái)神:IF(A7,LLV(L,21),DRAWNULL)COLORRED,CIRCLEDOT; CYS:=(EMA((CLOSE-V2)/V2,1)*100); AA:=CYS; MIDD:=MA(CYS,20); CC:=MIDD+0.85*STD(CYS,10); TM6:=AA>CC; IF(TM6,MA5,DRAWNULL),COLORRED,LINETHICK1; A0:=(L+H+C*2)/4; 工作:=EMA(A0,14)COLORYELLOW,LINETHICK1; 度假:=EMA(A0,25)COLORYELLOW,LINETHICK1; A1X:=(工作-REF(工作,1))/REF(工作,1)*100; A2X:=(度假-REF(度假,1))/REF(度假,1)*100; G:=BARSLAST(CROSS(A1X,0)); {KDJ} 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; 金叉:=CROSS(J,D); 死叉:=CROSS(D,J); 買1:=(VAR14 OR VAR15) AND VAR11; 買2:=(VAR14 OR VAR15) AND VAR4; 買3:=(VAR14 OR VAR15) AND VAR2; 買4:=(VAR2 AND VAR11) OR (VAR4 AND VAR11); 買5:=(金叉 AND VAR4) OR (金叉 AND VAR2) OR (金叉 AND VAR11); {漲停} STICKLINE(CLOSE>REF(CLOSE,1)*1.0985 AND CLOSE=HIGH,CLOSE,OPEN,4,-1),COLOR00FFFF; {跌停} STICKLINE(CLOSE<REF(CLOSE,1)*0.9015 AND CLOSE=LOW,CLOSE,OPEN,4,-1),COLORGREEN; {藍(lán)} STICKLINE(OPEN>=CLOSE,CLOSE,OPEN,3,0),COLORFF7700; STICKLINE(OPEN>=CLOSE,CLOSE,OPEN,2.2,0),COLORFF9900; STICKLINE(OPEN>=CLOSE,CLOSE,OPEN,1.5,0),COLORFFBB00; STICKLINE(OPEN>=CLOSE,CLOSE,OPEN,0.5,0),COLORCYAN; {紅} STICKLINE(CLOSE>OPEN,CLOSE,OPEN,3,0),COLOR000099; STICKLINE(CLOSE>OPEN,CLOSE,OPEN,2.2,0),COLOR0000CC; STICKLINE(CLOSE>OPEN,CLOSE,OPEN,1.5,0),COLOR0000FF; STICKLINE(CLOSE>OPEN,CLOSE,OPEN,0.5,0),COLORCC66FF; {綠} STICKLINE(VAR3,OPEN,(OPEN+CLOSE)/2,3,0),COLOR009900; STICKLINE(VAR3,OPEN,(OPEN+CLOSE)/2,2.2,0),COLOR00BB00; STICKLINE(VAR3,OPEN,(OPEN+CLOSE)/2,1.5,0),COLOR00DD00; STICKLINE(VAR3,OPEN,(OPEN+CLOSE)/2,0.5,0),COLOR00FF00; {灰} STICKLINE(VAR4,OPEN,(OPEN+CLOSE)/2,3,0),COLOR999999; STICKLINE(VAR4,OPEN,(OPEN+CLOSE)/2,2.2,0),COLORBBBBBB; STICKLINE(VAR4,OPEN,(OPEN+CLOSE)/2,1.5,0),COLORDDDDDD; STICKLINE(VAR4,OPEN,(OPEN+CLOSE)/2,0.5,0),COLORFFFFFF; STICKLINE(金叉,OPEN,CLOSE,0.5,0),COLORYELLOW; STICKLINE(死叉,OPEN,CLOSE,0.5,0),COLOR000099; DRAWICON(VAR16,LOW-0.02,7); DRAWICON(買1 OR 買2 OR 買3 OR 買4 OR 買5,LOW-0.01,1); DRAWICON(死叉 OR VAR12 OR CROSS(40,VAR9),HIGH+0.01,2); STICKLINE(CROSS(A1X,0),C,O,1,0)COLORFFFFFF; STICKLINE(CROSS(0,A1X),C,O,1,0)COLORGREEN; 密戰(zhàn)
N:=8;
M:=REF(CLOSE,1); A:=SMA(MAX(CLOSE-M,0),N,1)/SMA(ABS(CLOSE-M),N,1)*100,COLORYELLOW,LINETHICK1; B0:=A=DRAWLINE(A>=HHV(A,N),A,A<=LLV(A,N),1,A),COLOR00FF00; B1:=A=DRAWLINE(A>=HHV(A,N),A,A<=LLV(A,N),A,1),COLOR00FF00; B2:= A<REF(A,1); B3:=A>REF(1,A); C1:=DRAWICON(B1 AND B2,A,9); C2:=DRAWICON(B0 AND B3,A,15); DRAWICON(FILTER(C1>0,1),L*0.97,9); DRAWICON(FILTER(C2>0,1),H*1.02,15); 網(wǎng)1:EXPMEMA(CLOSE,5); 網(wǎng)2:MA(CLOSE,12),POINTDOT; 網(wǎng)3:MA(CLOSE,33),COLORFF00FF,LINETHICK3; IF(網(wǎng)3<REF(網(wǎng)3,1),網(wǎng)3,DRAWNULL),COLOR00FF00,LINETHICK3; 垂點(diǎn):=REFDATE(HHV(H,N)/1.01,DATE); DRAWTEXT(CURRBARSCOUNT=N,垂點(diǎn),'密戰(zhàn) '),COLORDDDD00; 極品
INPUT:N(13,1,99),M(1,0,60),P(3,1,300),P2(5,1,300),P3(36,1,300),P4(13,1,300),P5(65,1,300);}
A1:=REF(HIGH,3)=HHV(HIGH,2*3+1);
B1:=FILTER(A1,3);
C1:=BACKSET(B1,3+1);
D1:=FILTER(C1,3);{高點(diǎn)}
A2:=REF(LOW,3)=LLV(LOW,2*3+1);
B2:=FILTER(A2,3);
C2:=BACKSET(B2,3+1);
D2:=FILTER(C2,3);{低點(diǎn)}
E1:=(REF(LLV(LOW,2*3),1)+REF(HHV(HIGH,2*3),1))/2;
E2:=(HIGH+LOW)/2;
{高低點(diǎn)出現(xiàn)在同一K線上時(shí)可作取舍}
H1:=(D1 AND NOT((D2 AND E1>=E2))) OR ISLASTBAR OR BARSCOUNT(CLOSE)=1;
L1:=(D2 AND NOT((D1 AND E1<E2)));
H2:=D1 AND NOT((D2 AND E1>=E2));
X1:=REF(BARSLAST(H1),1)+1;
F1:=BACKSET(H1 AND COUNT(L1,X1)>0,LLVBARS(IF(L1,LOW,10000),X1));
G1:=F1>REF(F1,1);
I1:=BACKSET(G1,2);
LD:=I1>REF(I1,1);{過(guò)濾后低點(diǎn)}
L2:=LD OR ISLASTBAR OR BARSCOUNT(CLOSE)=1;
X2:=REF(BARSLAST(L2),1)+1;
F2:=BACKSET(L2 AND COUNT(H2,X2)>0,HHVBARS(IF(H2,HIGH,0),X2));
G2:=F2>REF(F2,1);
I2:=BACKSET(G2,2);
HD:=I2>REF(I2,1);{過(guò)濾后高點(diǎn)}
DRAWLINE(LD,L,HD,H,0),COLORWHITE,LINETHICK3;
DRAWLINE(HD,H,LD,L,0),COLORWHITE,LINETHICK3;
J1:=BACKSET(ISLASTBAR ,MIN(BARSLAST(HD),BARSLAST(LD))+1);
J2:=J1>REF(J1,1);
DRAWLINE(J2,IF(HD,H,L),ISLASTBAR ,IF(BARSLAST(HD)>BARSLAST(LD),H,L),0),COLORWHITE,LINETHICK2;
{以下是兩條趨勢(shì)線原碼}
UU:=BACKSET(ISLASTBAR ,BARSLAST(LD)+1);
VV:=UU>REF(UU,1);
WW:=BACKSET(VV,REF(BARSLAST(LD),1)+2);
XX:=WW>REF(WW,1);
UU2:=BACKSET(ISLASTBAR ,BARSLAST(HD)+1);
VV2:=UU2>REF(UU2,1);
WW2:=BACKSET(VV2,REF(BARSLAST(HD),1)+2);
XX2:=WW2>REF(WW2,1);
前一低:REF(L,BARSLAST(VV)),COLOR99FF66,LINETHICK1;
前二低:REF(L,BARSLAST(XX)),COLORFF66FF,LINETHICK1;
前一高:REF(H,BARSLAST(VV2)),COLOR99FF66,LINETHICK1;
前二高:REF(H,BARSLAST(XX2)),COLORFF66FF,LINETHICK1;
DRAWLINE(XX,L,VV,L,1),COLORMAGENTA,LINETHICK2;
DRAWLINE(XX2,H,VV2,H,1),COLORMAGENTA,LINETHICK2;
DRAWTEXT(CURRBARSCOUNT=60,MA(C,120),' 上升五浪,下跌三浪,趨勢(shì)自畫:');
DRAWTEXT(CURRBARSCOUNT=60,MA(C,120)*0.90,' 長(zhǎng)短均線,阻力支撐,高低自明:');
牛牛牛
A1:=EMA(C,14)COLORWHITE,LINETHICK1;
A1X:=(A1-REF(A1,1))/REF(A1,1)*100,NODRAW; 出擊:IF(A1X>=0,REF(EMA(C,14),BARSLAST(CROSS(A1X,0))+1),DRAWNULL)COLORRED,LINETHICK1; 休假:IF(A1X<0,REF(EMA(C,14),BARSLAST(CROSS(0,A1X))+1),DRAWNULL)COLORGREEN,LINETHICK1; STICKLINE(CROSS(A1X,0),C,O,2,0)COLORYELLOW; STICKLINE(CROSS(0,A1X),C,O,2,0)COLORGREEN; STICKLINE(CROSS(A1X,0)OR CROSS(0,A1X),REF(EMA(C,14),1),REF(EMA(C,14),1)*0.998,2,0)COLORWHITE; STICKLINE(ISLASTBAR,REF(EMA(C,14),1),REF(EMA(C,14),1)*0.998,5,0)COLORWHITE; 工作線:=EMA(C,14); 止盈線:EMA(C,7),LINETHICK1,COLORGRAY; 工作區(qū):IF(C>=工作線 AND EMA(C,14)>=EMA(C,25),工作線,DRAWNULL), COLORRED,LINETHICK2; 準(zhǔn)備區(qū):IF(C>=工作線 AND EMA(C,14)<EMA(C,25),工作線,DRAWNULL), COLORMAGENTA; 休息區(qū):IF(C<工作線,工作線,DRAWNULL), COLORGREEN; 生命線:EMA(C,25),COLORYELLOW; {DRAWICON(CROSS(工作線,生命線),工作線*0.95,5);原句} IF(CROSS(工作線,生命線),工作線*0.975,DRAWNULL),CIRCLEDOT,COLORRED; DRAWICON(CROSS(C,生命線) AND C>EMA(C,14),L*0.99,1); DRAWICON(COUNT(C<EMA(C,7),2)=2 AND EMA(C,7)>EMA(C,14) AND COUNT(C>止盈線,6)>=3,H*1.03,2); DRAWICON(CROSS(工作線,C) AND EMA(C,14)>EMA(C,25),H*1.01,8);{止損位} IF(CROSS(生命線,工作線),HIGH*1.04,DRAWNULL),CIRCLEDOT,COLORGREEN; 婁建東1
買線:=EMA(C,2);賣線:=EMA(SLOPE(C,21)*20+C,42);BU:=CROSS(買線,賣線);SEL:=CROSS(賣線,買線);
DRAWICON(BU,L-0.1,5);DRAWICON(SEL,H+0.1,6); STICKLINE(買線>=賣線,LOW,HIGH,0.0,1),COLORRED; STICKLINE(買線>=賣線,CLOSE,OPEN,2,1),COLORRED; STICKLINE(買線<賣線,LOW,HIGH,0.0,1),COLORGREEN; STICKLINE(買線<賣線,CLOSE,OPEN,2,1),COLORGREEN; 散戶:EMA(CLOSE,5),COLORWHITE;操盤:MA(CLOSE,9),COLORCYAN,LINETHICK2; 界點(diǎn):MA(CLOSE,20),COLORMAGENTA;LC:=REF(CLOSE,1); RSI:=((SMA(MAX((CLOSE - LC),0),3,1) / SMA(ABS((CLOSE - LC)),3,1)) * 100); FF:=EMA(CLOSE,3);MA15:=EMA(CLOSE,21);日:=150;昨前:=3;高1:=REF(HHV(H,日),昨前); 低1:=REF(LLV(L,日),昨前);H1:=高1-(高1-低1)*0.191; H2:=高1-(高1-低1)*0.382; H3:=高1-(高1-低1)*0.5;H4:=高1-(高1-低1)*0.618; H5:=高1-(高1-低1)*0.809; 頂:REFDATE(高1,DATE),COLORRED;一0.809:REFDATE(H1,DATE),COLORYELLOW; 二0.618:REFDATE(H2,DATE),COLORMAGENTA;三0.500:REFDATE(H3,DATE),COLORWHITE; 四0.382:REFDATE(H4,DATE),COLORGREEN;五0.191:REFDATE(H5,DATE),COLORYELLOW; 低:REFDATE(低1,DATE),COLORRED; 賺錢
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); 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); 線1:DRAWLINE(CURRBARSCOUNT=GDCS22,H,CURRBARSCOUNT=GDCS11,H,1),COLORFFAA99,LINETHICK1; 線2:DRAWLINE(CURRBARSCOUNT=DDCS22,L,CURRBARSCOUNT=DDCS11,L,1) COLOR9966FF,LINETHICK1; 預(yù)報(bào):H>=線1 AND REF(H<線1,1),NODRAW; 預(yù)警:L<=線2 AND REF(L>線2 ,1),NODRAW; STICKLINE(預(yù)報(bào),O,C,3,0),COLOR00FFFF; STICKLINE(預(yù)警,O,C,3,0),COLORFF0033; 精品
EMA10:MA(C,14);
EMA250:MA(C,250),COLORRED; EMA6:MA(C,6),COLORRED LINETHICK2; EMA18:MA(C,23),COLORYELLOW; EMA55:MA(C,55),COLORFF00FF; EMA144:MA(C,144),COLORGREEN; EMA288:MA(C,288),COLORBLUE; 中線【買入】:=COUNT(CLOSE<EMA18,5)=4 AND CLOSE/EMA18>1.004 AND CROSS(CLOSE,EMA18) AND EMA18>= REF(EMA18,1),LINETHICK,COLORRED; DRAWTEXT(中線【買入】,LOW*0.95,' 中線【買入】'),COLORRED; VL:=REF(LOW,1); VAR12:=(SMA(ABS(LOW-VL),13,1))/(SMA(MAX(LOW-VL,0),13,1))*100; VAR14:=MA(VAR12,13); VAR15:=LLV(LOW,34); VAR18:=EMA(IF(LOW<=VAR15,VAR14,0),3); VAR110:=SMA(SMA((CLOSE-LLV(LOW,54))/(HHV(HIGH,54)-LLV(LOW,54))*100,7,1),5,1); VAR111:=SMA((CLOSE-LLV(LOW,54))/(HHV(HIGH,54)-LLV(LOW,54))*100,7,1)*16.18-VAR110*10.9; T:=FILTER(IF(VAR111<=VAR110 AND VAR18>REF(VAR18,1),VAR18*8,0),20); DRAWTEXT(T,LOW-0.4,'←洗盤結(jié)束'),COLORFF00FF; DRAWTEXT(T,LOW-0.2,'|'),COLORFF00FF; VAR21:=(CLOSE-LLV(LOW,36))/(HHV(HIGH,36)-LLV(LOW,36))*100; VAR22:=SMA(VAR21,3,1); VAR23:=SMA(VAR22,3,1); VAR24:=SMA(VAR23,3,1); VAR25:=CROSS(VAR23,VAR24) AND VAR23<20; DRAWTEXT(FILTER(VAR25,10)=1,LOW-0.4,'←抄底'),COLORRED; DRAWTEXT(FILTER(VAR25,10)=1,LOW-0.2,'|'),COLORRED; VAR29:=CROSS(VAR24,VAR23) AND VAR23>80; DRAWTEXT(FILTER(VAR29,5)=1,HIGH+0.4,'←逃頂'),COLORBLUE; DRAWTEXT(FILTER(VAR29,5)=1,HIGH+0.2,'|'),COLORBLUE; HIGHN:=10;LOWN:=10;HIGHDISPLAY:=0;LOWDISPLAY:=0;ZGDISPLAY:=0;MADISPLAY:=0;
AA:=REF(H,HIGHN)=HHV(H,2*HIGHN+1); QY:=BACKSET(AA,HIGHN+1); CC:=FILTER(QY,HIGHN) AND H=HHV(H,HIGHN+1); DRAWICON(CC,H*1.02,2); DDD:=BARSLAST(CC); GDTS:=IF(CC,CURRBARSCOUNT,0); DINGBU:=IF(DDD,REF(H,DDD),H);{頂部} DINGBUTS:=IF(DDD,REF(GDTS,DDD),GDTS); DINGBU1:=REF(DINGBU,DDD+1); GDCS1:=CONST(DINGBUTS); DINGBUTS1:=REF(DINGBUTS,DDD+1); GDCS2:=CONST(DINGBUTS1); DINGBU2:=REF(DINGBU1,DDD+1); MM:=IF(CURRBARSCOUNT>GDCS2,0,1); 高點(diǎn)壓力:DRAWLINE(CURRBARSCOUNT=GDCS2,H,CURRBARSCOUNT=GDCS1,H,1) COLORGREEN,LINETHICK2; DRAWLINE(CURRBARSCOUNT=GDCS2,H,ISLASTBAR,REF(H,GDCS2-1),1),COLOR0055FF,POINTDOT; DRAWLINE(CURRBARSCOUNT=GDCS1,H,ISLASTBAR,REF(H,GDCS1-1),1),COLORYELLOW,POINTDOT; AA1:=REF(L,LOWN)=LLV(L,2*LOWN+1); QY1:=BACKSET(AA1,LOWN+1); CC1:=FILTER(QY1,LOWN) AND L=LLV(L,LOWN+1); DRAWICON(CC1,L*0.98,1); DD1:=BARSLAST(CC1); DDTS:=IF(CC1,CURRBARSCOUNT,0); YDB:=IF(DD1,REF(L,DD1),L); DDTS1:=IF(DD1,REF(DDTS,DD1),DDTS); DDCS1:=CONST(DDTS1); ZDB:=REF(YDB,DD1+1); DDTS2:=REF(DDTS1,DD1+1); DDCS2:=CONST(DDTS2); 低點(diǎn)支撐:DRAWLINE(CURRBARSCOUNT=DDCS2,L,CURRBARSCOUNT=DDCS1,L,1) COLORRED,LINETHICK2; 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),COLORFF55BB,LINETHICK2; DRAWLINE(CURRBARSCOUNT=DDCS1,L,ISLASTBAR,REF(L,DDCS1-1),1),COLORMAGENTA,POINTDOT,; DRAWLINE(CURRBARSCOUNT=DDCS2,L,ISLASTBAR,REF(L,DDCS2-1),1),COLORCYAN,POINTDOT; 開花
MA20:MA(C,20),COLORWHITE,LINETHICK2;
MA120:MA(C,120),COLORFFCCCC,LINETHICK2; MA250:MA(C,250),COLORFFCC66,LINETHICK2; 乖離線:=((C-REF(MA20,1))/20+MA20)*1.20; TT1:=CROSS(MA20,MA120) AND CROSS(MA20,MA250) AND V>REF(V,1); TT2:=MA20>REF(MA20,2) AND V>REF(V,1) AND CROSS(C,MA20); STICKLINE(TT1,L,L-0.09,4,0),COLORYELLOW; DRAWTEXT(TT1,L-0.13,'金叉'),COLORYELLOW; STICKLINE(CROSS(C,MA120) AND CROSS(C,MA250) AND CROSS(C,MA20),L,L-0.09,4,0),COLORYELLOW; DRAWTEXT(CROSS(C,MA120) AND CROSS(C,MA250) AND CROSS(C,MA20),L-0.13,'并線開花'),COLORYELLOW; STICKLINE(TT2,L,L-0.09,4,0),COLORYELLOW; DRAWTEXT(TT2,L-0.13,'買點(diǎn)1'),COLORYELLOW; STICKLINE(CROSS(C,乖離線),H,H+0.09,4,0),COLOR00FF00; DRAWTEXT(CROSS(C,乖離線) ,H+0.13,'賣點(diǎn)'),COLOR00FF00; STICKLINE(MA250>=REF(MA250,1) AND MA20>=REF(MA20,1) AND CROSS(C,MA250),L,L-0.09,4,0),COLORFFCC66; DRAWTEXT(MA250>=REF(MA250,1) AND MA20>=REF(MA20,1) AND CROSS(C,MA250),L-0.13,'牛象'),COLORFFCC66; STICKLINE(MA120>=REF(MA120,1) AND CROSS(C,MA20) AND CROSS(C,MA120) AND V>REF(V,1),L,L-0.09,4,0),COLORFF00FF; DRAWTEXT(MA120>=REF(MA120,1) AND CROSS(C,MA20) AND CROSS(C,MA120) AND V>REF(V,1),L-0.13,'買點(diǎn)2'),COLORFF00FF ; A1:=SUM(AMOUNT,3)/SUM(VOL,3)/100; A2:=SUM(AMOUNT,8)/SUM(VOL,8)/100; A3:=SUM(AMOUNT,21)/SUM(VOL,21)/100; DIFF:=(EMA(CLOSE,12) - EMA(CLOSE,26)); DEA:=EMA(DIFF,9); MACD:=2*(DIFF-DEA); V1:=C-(A1+MA(C,3))/2; V2:=C-(A2+MA(C,8))/2; V3:=C-(A3+MA(C,21))/2; VA1:=(C+V3-V1+MACD); VA4:=(C+V2-V1+MACD); 短線:EMA(VA1,6),LINETHICK2,COLORYELLOW; |
|