主图
YX:=C<O;
ZGJ:=HHV(H,0);
ZD:=LLV(L,60);
DWTS:=YX AND COUNT(YX,0)=4;
TS:=BARSLAST(DWTS);
SJ:=INTPART(TS/6);
ZQ:=BARSLASTCOUNT(SJ=REF(SJ,1))=5;
TJ11:=(DWTS OR ZQ) AND TS>=0;
FB:=C=ZTPRICE(REF(C,1),0.1);
MB:=H=ZTPRICE(REF(C,1),0.1) AND C<H;
FB20:=C=ZTPRICE(REF(C,1),0.2);
CMB:=H=ZTPRICE(REF(C,1),0.2) AND C<H;
STICKLINE(FB,C,O,2,0),COLORYELLOW;
STICKLINE(MB,C,O,2,0),COLORMAGENTA;
STICKLINE(FB20,C,O,2,0),COLORRED;
STICKLINE(CMB,C,O,2,0),COLORWHITE;
ZDJ:=C=LLV(C,60);
DW:=BARSLAST(ZDJ),NODRAW,COLORRED;
CD60:=CONST(REF(C,DW)),COLORGREEN;
TJ:=BETWEEN(DW,1,60) AND C/REF(C,1)>1.043;
拐点:=TJ AND COUNT(TJ,DW)=1;
STICKLINE(拐点, ZGJ,ZD,0.3,1);
GDTS:=BARSLAST(拐点),NODRAW,COLORRED;
拐点价:=CONST(REF(C,GDTS)),COLORRED;
LJD:=C=LLV(C,GDTS);
LJTS:=BARSLAST(LJD);
MD:=LJTS=1 AND C>REF(C,LJTS) AND H>L;
Z1:=STRCAT(HYBLOCK,' ');
Z2:=STRCAT(Z1,DYBLOCK);
Z3:=STRCAT(Z2,' ');
DRAWTEXT_FIX(ISLASTBAR,0,0,0,STRCAT(Z3,GNBLOCK)),COLORRED;
M1:=COUNT(MD,GDTS)=1;
D1:=BARSLAST(M1 AND MD);
M2:=COUNT(MD,GDTS)=2;
D2:=BARSLAST(M2 AND MD);
M3:=COUNT(MD,GDTS)=3;
D3:=BARSLAST(M3 AND MD);
M4:=COUNT(MD,GDTS)>3;
C1:=REF(C,D1);
C2:=REF(C,D2);
C3:=REF(C,D3);
G1:=MAX(C1,C2);
G2:=MAX(G1,C3);
GJ1:=IF(M1,C1,0);
GJ2:=IF(M2,G1,0);
GJ3:=IF(M3,G2,0);
GJ:=GJ1 + GJ2 + GJ3;
地平线:CONST(GJ),COLORMAGENTA;
JCCD:=C>=地平线 AND C/REF(C,1)>1.043;
CDTJ:=COUNT(JCCD,GDTS)=1 AND JCCD ;
DRAWTEXT(CDTJ,1.03*H,'拐点起飞'),COLORYELLOW;
GUHAI:=VOL/((HIGH-LOW)*2-ABS(CLOSE-OPEN));
DRAWTEXT(BARSLASTCOUNT(M4)=1,0.97*L,'拐点关注'),COLORWHITE;
DRAWICON(CDTJ,0.99*L,29);
DRAWICON(BARSLASTCOUNT(M4)=1,L,9);
CDTS:=BARSLAST(CDTJ);
FXJ:=CONST(REF(C,CDTS));
FXX:=IF(M4 OR CDTS>GDTS,0,FXJ);
起飞线:CONST(FXX),COLORGREEN;
副图1
A1:=VOL/((HIGH-LOW)*2-ABS(CLOSE-OPEN));
主动买盘:=IF(CLOSE>OPEN,A1*(HIGH-LOW),IF(CLOSE<OPEN,A1*((HIGH-OPEN)+(CLOSE-LOW)),VOL/2)),COLORRED;
主动卖盘:=IF(CLOSE>OPEN,A1*((HIGH-CLOSE)+(OPEN-LOW)),IF(CLOSE<OPEN,A1*(HIGH-LOW),VOL/2)),COLORGREEN;
量:=(主动买盘-MA(主动买盘,20))/MA(主动买盘,20),COLORYELLOW;
量能:IF(量>0,量,0),COLORYELLOW;
累积量能:SUM(量能,5)/1,COLOR000077;
DRAWBAND(累积量能,RGB(108,0,0),0,RGB(100,100,100));
STICKLINE(量>0,量*2,0,2,1),COLORYELLOW;
{20110922将走势分为底部注意、低位转强、买点出现、坚定持股、谨慎观望、果断持币六区,看图解势}
{参数:周期 1 100 15 过滤 1 100 8 选股 -30 -20 -26 抄底 -50 -25 -40 }
{可操作的三区城}
周期:=15;
过滤:=8;
选股:=-26;
抄底:=-40;
VAR5:=(MA(CLOSE,5)+MA(CLOSE,10)+MA(CLOSE,20)+MA(CLOSE,30))/4;
VAR6:=(VAR5-REF(VAR5,周期))/REF(VAR5,周期)*100;
VAR8:=EMA(VAR6,过滤);
底部注意:=VAR8>REF(VAR8,1) AND VAR6<0 AND VAR6>VAR8;{底部注意}
买点:=VAR6>REF(VAR6,1) AND VAR6>0 AND VAR8<0,COLORRED;{买点}
坚定持股:=VAR8>REF(VAR8,1) AND VAR8>0,COLORFF00FF;{坚定持股}
三区:=底部注意 OR 买点 OR 坚定持股;{可操作的三区城}
买天数:BARSLASTCOUNT(买点=1),COLORRED,NODRAW;
STICKLINE(VAR6>REF(VAR6,1) AND VAR6<0 AND VAR6<VAR8,VAR6,0,3,0),COLORLICYAN;{底部注意}
STICKLINE(VAR8>REF(VAR8,1) AND VAR6<0 AND VAR6>VAR8,VAR8,0,3,0),COLOR0080FF;{低位转强}
STICKLINE(VAR6>REF(VAR6,1) AND VAR6>0 AND VAR8<0,VAR6,VAR8,3,0),COLORRED;{买点}
STICKLINE(VAR8>REF(VAR8,1) AND VAR8>0,VAR6,0,0,0),COLORFF00FF;{坚定持股}
STICKLINE(VAR6<REF(VAR6,1) AND VAR8>REF(VAR8,1) AND VAR6>0,VAR6,VAR8,2,0),COLORFFFF80;{谨慎观望}
STICKLINE(VAR6<REF(VAR6,1) AND VAR6<VAR8,VAR6,VAR8,5,1),COLORGREEN;{果断持币}
VAR9:=(CLOSE-MA(CLOSE,58))/MA(CLOSE,58)*100;
VARA:=VAR9>1*REF(VAR9,1) AND VAR9<选股 AND VAR9>抄底*1.5;
VARB:=VOL/CAPITAL*100;
VARC:=LLVBARS(LOW,50);
VARD:=SUM(VOL,VARC);
VARE:=HHVBARS(HIGH,50);
VARF:=SUM(VOL,VARE);
VAR10:=(CLOSE-REF(OPEN,VARE))/REF(OPEN,VARE)*100;
VAR11:=VARF/CAPITAL*100;
VAR12:=(CLOSE-REF(OPEN,VARC))/REF(OPEN,VARC)*100;
VAR13:=VARD/CAPITAL*100;
VAR14:=MA(CLOSE,3);
VAR15:=REF(CLOSE,2)*0.865;
VAR16:=REF(CLOSE,13)*0.772;
VAR17:=MIN(VAR15,VAR16);
VAR18:=MA(CLOSE,13);
超跌:IF((CLOSE-VAR17)/CLOSE<0.03 AND VAR10<-35 AND SUM(VARB,5)/5<1.8,1,0)*10,COLOR808080;
DRAWTEXT(超跌,超跌,'抄底'),COLORFF0000 ;
VAR19:=(CLOSE-REF(CLOSE,1))/REF(CLOSE,1)*100;
VAR1A:=(EMA(CLOSE,12)-EMA(CLOSE,26))*100;
VAR1B:=EMA(VAR1A,9);
VAR1C:=2*(VAR1A-VAR1B);
DRAWTEXT(VAR1A<-50 AND VAR19>7 AND VAR1A<VAR1B,-10,'底'),COLORWHITE;
DRAWTEXT(VAR1A<-50 AND VAR19>7 AND VAR1A>=VAR1B,5,'追'),COLORWHITE;
STICKLINE(VAR1A<-50 AND VAR19>7,0,-10,5,0),COLORFFFF00 ;
DRAWTEXT_FIX(1,0.00,0.05,0,'底部注意'),COLORLICYAN;
DRAWTEXT_FIX(1,0.00,0.15,0,'低位转强'),COLOR0080FF;
DRAWTEXT_FIX(1,0.00,0.25,0,'买点出现'),COLORRED;
DRAWTEXT_FIX(1,0.08,0.05,0,'坚定持股'),COLORFF00FF;
DRAWTEXT_FIX(1,0.08,0.15,0,'谨慎观望'),COLORFFFF80;
DRAWTEXT_FIX(1,0.08,0.25,0,'果断持币'),COLORGREEN;
DRAWTEXT_FIX(1,0.16,0.05,0,'黄量能柱'),COLORYELLOW;
副图2
涨幅:=9;
跨度:=10;
高度:=20;
N4:=34;
短线:=EMA(CLOSE,17);
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);
长线:=EMA(KKC,50);
中期:=100*(C-LLV(L,N4))/(HHV(C,N4)-LLV(L,N4));
KDD:=REF(中期,1)<1 AND 中期>1;
持股:=3*SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1)-2*SMA(SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1),3,1);
支撑:=LLV(持股,3);
中期线:=MA(持股,12);
VAR1:=1;
VAR2:=LLV(LOW,10);
VAR3:=HHV(HIGH,25);
短期线:=EMA((CLOSE-VAR2)/(VAR3-VAR2)*4,4)*VAR1*30;
AAA:=(3*C+L+O+H)/6;
C2:=EMA(AAA,6);
C3:=EMA(AAA,5);
SHORT:=12;
LONG:=26;
MID:=9;
DIF:=EMA(CLOSE,SHORT)-EMA(CLOSE,LONG);
DEA:=EMA(DIF,MID);
MACD:=(DIF-DEA)*2;
N:=9;
M1:=3;
M2:=3;
RSV:=(CLOSE-LLV(LOW,N))/(HHV(HIGH,N)-LLV(LOW,N))*100;
K:=SMA(RSV,M1,1);
D:=SMA(K,M2,1);
J:=3*K-2*D;
KAAA1:=EXIST(KDD,3);
KBBB1:=C/REF(C,1)>1+0.01*涨幅;
KAAA2:=支撑>中期线 AND 持股=支撑;
KBBB2:=CROSS(C2,C3);
KCCC2:=EXIST(C/REF(C,1)>1+0.01*涨幅,跨度);
KDDD2:=BARSLAST(中期线>短期线)<跨度;
KAAA3:=REF(C,1)<REF(中线,1) AND C>中线;
KBBB3:=C/REF(C,1)>1+0.01*涨幅;
KCCC3:=中线/长线<1+0.01*高度;
超级资金1:IF(KAAA1 AND KBBB1,100,0),LINETHICK3,COLORRED;
超级资金2:IF(KAAA2 AND KBBB2 AND KCCC2,100,0),LINETHICK3,COLORYELLOW;
超级资金3:IF(KAAA3 AND KBBB3 AND KCCC3,100,0),LINETHICK3,COLORWHITE;
资金1:REF(中期,1)<1 AND 中期>1,COLORWHITE;
资金2:EXIST(CROSS(C2,C3),2),COLORGREEN;
资金3:支撑>中期线 AND 持股=支撑 AND REF(支撑,2)<REF(持股,2),COLORFF00FF;
资金4:J<D AND DIF>DEA AND REF(J,1)>REF(D,1),COLORYELLOW;
资金5:MACD<0 AND REF(MACD>0,1),COLORRED;
资金6:CROSS(中期线,短期线),COLORGRAY;
STICKLINE(资金1,0,20,2,0),COLORWHITE;
STICKLINE(资金2,20,40,2,0),COLORGREEN;
STICKLINE(资金3,40,60,2,0),COLORFF00FF;
STICKLINE(资金4,60,80,2,0),COLORYELLOW;
STICKLINE(资金5,80,100,2,0),COLORRED;
STICKLINE(资金6,100,120,2,0),COLORGRAY;
STICKLINE(1,0,1,5,0),COLORBLACK;