当前位置: 网站首页 > 股票软件公式 > 通达信公式 > 文章 当前位置: 通达信公式 > 文章

通达信源码:623战法,底部留心走强,三度主图 三度量柱

点击: 次    来源:顶尖财经    作者:股市狙击 - 小 + 大

623战法:

{623主图四线}

MA5:MA(CLOSE,5),COLORWHITE,LINETHICK2;
MA7:MA(CLOSE,7),COLORYELLOW,LINETHICK2;
MA10:MA(CLOSE,10),COLORMAGENTA,LINETHICK3;
HIGHN:=10;
AA:=REF(C,HIGHN)=HHV(C,2*HIGHN+1);
QY:=BACKSET(AA,HIGHN+1);
CC:=FILTER(QY,HIGHN) AND C=HHV(C,HIGHN+1);
DDD:=BARSLAST(CC);
GDTS:=IF(CC,CURRBARSCOUNT,0);
 
DINGBU:=IF(DDD,REF(C,DDD),C);
 
DINGBU1:=REF(DINGBU,DDD+1);
 
DINGBUTS:=IF(DDD,REF(GDTS,DDD),GDTS);
 
GDCS1:=CONST(DINGBUTS);
 
DINGBUTS1:=REF(DINGBUTS,DDD+10);
 
LOWN:=10;
 
AA1:=REF(L,LOWN)=LLV(L,2*LOWN+1);
 
QY1:=BACKSET(AA1,LOWN+1);
 
CC1:=FILTER(QY1,LOWN) AND L=LLV(L,LOWN+1);
 
DDTS:=IF(CC1,CURRBARSCOUNT,0);
 
DD1:=BARSLAST(CC1);
 
DDTS1:=IF(DD1,REF(DDTS,DD1),DDTS);
 
DDCS1:=CONST(DDTS1);
 
GDCS2:=CONST(DINGBUTS1);
 
DINGBU2:=REF(DINGBU1,DDD+1);
 
DDTS2:=REF(DDTS1,DD1+1);
 
DDCS2:=CONST(DDTS2);
 
 
 
ZZ:=5;
 
AC:=REF(C,ZZ)=HHV(C,2*ZZ+1);
 
AD:=BACKSET(AC,ZZ+1);
 
AE:=FILTER(AD,ZZ) AND C=HHV(C,ZZ+1);
 
AF:=BARSLAST(AE);
 
AG:=IF(AE,CURRBARSCOUNT,0);
 
AH:=IF(AF,REF(C,AF),C);
 
AI:=IF(AF,REF(AG,AF),AG);
 
AL:=CONST(AI);
 
短T:DRAWLINE(CURRBARSCOUNT=AL,C,ISLASTBAR,REF(C,AL-1),1),DOTLINE,COLORYELLOW LINETHICK3; 
 
T线:DRAWLINE(CURRBARSCOUNT=GDCS1,C,ISLASTBAR,REF(C,GDCS1-1),1),DOTLINE,COLORGREEN;
 
 
 
 
 
ZT:= CLOSE>=ZTPRICE(REF(CLOSE,1),0.1) AND CLOSE=HIGH;
 
冲击涨停:=HIGH>=ZTPRICE(REF(CLOSE,1),0.1) AND CLOSE < HIGH AND CLOSE > OPEN AND (PERIOD=5);
 
开盘%:(OPEN - REF(CLOSE,1))/REF(CLOSE,1)*100,NODRAW,COLORLIMAGENTA;
 
KBTB:=(CLOSE>=ZTPRICE(REF(CLOSE,1),0.1)) AND OPEN = CLOSE;
 
KB_CNT:=COUNT(KBTB,135);
 
 
 
DRAWTEXT(ZT AND 开盘%>5 AND (PERIOD=5),HIGH*0.96,'★'),COLOR00D7FF;
 
STICKLINE(ZT AND NOT(KBTB) AND (PERIOD=5),CLOSE*0.9985,OPEN*1.0015,1.286,0),COLOR00D7FF;
 
STICKLINE(冲击涨停 AND (PERIOD=5),CLOSE*0.9985,OPEN+(C-O)*0.4,1.286,0),COLOR00D7FF;
 
{布中:EMA(CLOSE,20) COLORYELLOW  LINETHICK2;}
 
 BOLL轨:=EMA(CLOSE,20) COLORBLUE LINETHICK1  DOTLINE;
 
BOLL翘:=IF(BOLL轨>REF(BOLL轨,1),BOLL轨,DRAWNULL),COLORRED,LINETHICK1 POINTDOT{ DOTLINE};
 
UB:BOLL+2*STD(CLOSE,20)COLORRED  LINETHICK2   DOTLINE;
 
LB:=BOLL-2*STD(CLOSE,20)COLORRED LINETHICK1  DOTLINE;
 
SS1:=C>O AND C/O<1.02 ;
 
SS2:=C>MA(C,13) AND C/MA(C,13)<1.03;
 
SS3:=MA(C,13)>REF(MA(C,13),2);
 
Z1:=STRCAT(DYBLOCK,' ');
 
Z2:=STRCAT(Z1,HYBLOCK);
 
Z3:=STRCAT(Z2,' ');
 
DRAWTEXT_FIX(ISLASTBAR,0.4,0,0,STRCAT(Z3,GNBLOCK)),COLORYELLOW;
 




底部留心走强( 顶尖财经 股票学院: http://www.58188.com ):

GUPANGA:=BARSCOUNT(CLOSE)*3.142/180;
A2: SIN(GUPANGA*8)*100,linethick2;
A3: COS(GUPANGA*8)*100,linethick2;
X1: 0;
GUPANG1:=MA(CLOSE,5);
GUPANG2:=MA(CLOSE,10);
GUPANG3:=MA(CLOSE,20);
GUPANG4:=MA(CLOSE,30);
GUPANG5:=(GUPANG1+GUPANG2+GUPANG3+GUPANG4)/4;
GUPANG6:=(GUPANG5-REF(GUPANG5,5))/REF(GUPANG5,5)*1500;
GUPANG7:=(GUPANG5-REF(GUPANG5,5))/REF(GUPANG5,5)*1500;
GUPANG8:=EMA(GUPANG6,8);
底部留心: STICKLINE(GUPANG6>REF(GUPANG6,1) AND GUPANG6<0 AND GUPANG6<GUPANG8,GUPANG6,0,5,0);
低位走强: STICKLINE(GUPANG8>REF(GUPANG8,1) AND GUPANG6<0 AND GUPANG6>GUPANG8,GUPANG8,0,5,0),coloryellow;
买入: STICKLINE(GUPANG6>REF(GUPANG6,1) AND GUPANG6>0 AND GUPANG8<0,GUPANG6,GUPANG8,10,0);
DRAWICON(FILTER(GUPANG6>REF(GUPANG6,1) AND GUPANG6>0 AND GUPANG8<0,30),-140,4);
DRAWTEXT(FILTER(GUPANG6>REF(GUPANG6,1) AND GUPANG6>0 AND GUPANG8<0,30),-40,'买入'),COLORffffff;
铁心持股: STICKLINE(GUPANG8>REF(GUPANG8,1) AND GUPANG8>0,GUPANG6,0,5,0),colorred;
小心观望: STICKLINE(GUPANG6<REF(GUPANG6,1) AND GUPANG8>REF(GUPANG8,1) AND GUPANG6>0,GUPANG6,GUPANG8,10,0);
坚定持币: STICKLINE(GUPANG6<REF(GUPANG6,1) AND GUPANG6<GUPANG8,GUPANG6,GUPANG8,5,1),COLORffff00;




三度主图 三度量柱:

{手机三度主图}
Z1:=STRCAT(DYBLOCK,' ');
Z2:=STRCAT(Z1,HYBLOCK);
Z3:=STRCAT(Z2,' ');
Z4:=STRCAT(Z3,GNBLOCK);
Z5:=STRCAT(Z4,' ');
Z6:=STRCAT(Z5,FGBLOCK);
DRAWTEXT_FIX(ISLASTBAR,0.01,0.012,0,STRCAT(Z6,ZHBLOCK)),COLORCYAN;
筹码95:COST(95);
筹码85:COST(85);
DRAWBAND(筹码95,RGB(110 ,139 ,61),筹码85,RGB(110 ,139 ,61));
DRAWKLINE(HIGH,OPEN,LOW,CLOSE);
DRAWKLINE(HIGH,OPEN,LOW,CLOSE);
STICKLINE(C>O,O,C,3,0),COLORRED;
ST:=NAMELIKE('ST')=1 OR NAMELIKE('*ST')=1 OR NAMELIKE('SST')=1 
                     OR NAMELIKE('S*ST')=1 OR NAMELIKE('S ST')=1;
涨停:=C/REF(C,1)>1.097 OR (C/REF(C,1)>1.0495 AND ST);
跌停:=(C-REF(C,1))/REF(C,1)*100;
STICKLINE(跌停<-9.9,O,C,3,0),COLORGREEN;
STICKLINE(涨停,C,O,3,0),COLORMAGENTA;
DRAWICON(H=ZTPRICE(REF(CLOSE,1),0.1)  AND C!=H,L*0.965,15);
均价:=AMOUNT/VOL/100;
标志阴:=REF(C,1)/C>1.04;
STICKLINE(标志阴,O,C,1,0)COLORWHITE;
假阴:=O>C   AND  均价>REF(C,1) ;
STICKLINE(假阴,O,C,1,0),COLORRED;
MA10:MA(C,10),COLORWHITE,LINETHICK2;
MA30:MA(C,30),COLORYELLOW;
MA60:MA(C,60),COLORLIMAGENTA;
MA120:MA(C,120),COLORBLUE,LINETHICK2;
开盘:="999999$O";
收盘:="999999$C";
最高:="999999$H";
最低:="999999$L";
大盘下跌:=(REF(收盘,1)-收盘)/REF(收盘,1)>0.00001;
DRAWTEXT(涨停  AND  大盘下跌 AND NOT(H=L), H*1.025, '异'),COLORWHITE;
STICKLINE(C/REF(C,1)>=1.04 OR C/REF(C,1)<=0.96  AND C<=1000,(C+O)/2,(C+O)/2,2,1),COLORLIBLUE;{中分线};
STICKLINE(C/REF(C,1)>=1.04 OR C/REF(C,1)<=0.96 AND C<=1000,(MAX(O,C)-MIN(O,C))*2/3+MIN(O,C),(MAX(O,C)-MIN(O,C))*2/3+MIN(O,C),2,1),COLORLIBLUE;{上三一线};
STICKLINE(C/REF(C,1)>=1.04 OR C/REF(C,1)<=0.96  AND C<=1000,(MAX(O,C)-MIN(O,C))/3+MIN(O,C),(MAX(O,C)-MIN(O,C))/3+MIN(O,C),2,1),COLORLIBLUE;{下三一线};
STICKLINE(C/REF(C,1)>=1.005 OR C/REF(C,1)<=0.995  AND C>1000,(C+O)/2,(C+O)/2,2,1),COLORLIBLUE;{中分线};
STICKLINE(C/REF(C,1)>=1.005 OR C/REF(C,1)<=0.995  AND C>1000,(MAX(O,C)-MIN(O,C))*2/3+MIN(O,C),(MAX(O,C)-MIN(O,C))*2/3+MIN(O,C),2,1),COLORLIBLUE;{上三一线};
STICKLINE(C/REF(C,1)>=1.005 OR C/REF(C,1)<=0.995  AND C>1000,(MAX(O,C)-MIN(O,C))/3+MIN(O,C),(MAX(O,C)-MIN(O,C))/3+MIN(O,C),2,1),COLORLIBLUE;{下三一线};
N:=14;
MM:=6;
MTR:=EXPMEMA(MAX(MAX(HIGH-LOW,ABS(HIGH-REF(CLOSE,1))),ABS(REF(CLOSE,1)-LOW)),N);
HD :=HIGH-REF(HIGH,1);
LD :=REF(LOW,1)-LOW;
DMP:=EXPMEMA(IF(HD>0&&HD>LD,HD,0),N);
DMM:=EXPMEMA(IF(LD>0&&LD>HD,LD,0),N);
PDI:=DMP*100/MTR;
MDI:= DMM*100/MTR;
ADX:= EXPMEMA(ABS(MDI-PDI)/(MDI+PDI)*100,MM);
ADXR:=EXPMEMA(ADX,MM);
最大值:=MAX(MAX(MAX(PDI,MDI),ADX),ADXR);
最小值:=MIN(MIN(MIN(PDI,MDI),ADX),ADXR);
同心结:=CROSS(PDI,ADXR)  AND  CROSS(PDI,ADX)  AND  CROSS(ADX,MDI) AND  CROSS(ADXR,MDI) AND 涨停 ;
上兄弟结:=COUNT(PDI>MDI,3)=2  AND  CROSS(PDI,ADXR)  AND  CROSS(PDI,ADX)  AND 涨停 ;
下兄弟结:=COUNT(PDI>MDI,3)=2  AND  CROSS(ADX,MDI)  AND CROSS(ADXR,MDI) AND 涨停 ;
娇集:=IF(涨停,1/(最大值-最小值)*100,0)>15;
顺向结:=PDI>REF(PDI,1)  AND PDI>30  AND ADX>REF(ADX,1)  AND  ADXR>REF(ADXR,1) AND 涨停  AND DYNAINFO(4)>0;
DRAWICON(同心结,L,1);
DRAWICON(上兄弟结,L,26);
DRAWICON(下兄弟结,L*0.95,24);
DRAWICON(顺向结,L*0.98,27);
DRAWICON(娇集,L,38);
阳量0:=IF(C>O,V,0);
阳量1:=IF(REF(C,1)>REF(O,1),REF(V,1),0);
阳量2:=IF(REF(C,2)>REF(O,2),REF(V,2),0);
阳量3:=IF(REF(C,3)>REF(O,3),REF(V,3),0);
阳量4:=IF(REF(C,4)>REF(O,4),REF(V,4),0);
阳量5:=IF(REF(C,5)>REF(O,5),REF(V,5),0);
阳量6:=IF(REF(C,6)>REF(O,6),REF(V,6),0);
阳量7:=IF(REF(C,7)>REF(O,7),REF(V,7),0);
阳量8:=IF(REF(C,8)>REF(O,8),REF(V,8),0);
阳量9:=IF(REF(C,9)>REF(O,9),REF(V,9),0);
阳量10:=IF(REF(C,10)>REF(O,10),REF(V,10),0);
阳量11:=IF(REF(C,11)>REF(O,11),REF(V,11),0);
阳量12:=IF(REF(C,12)>REF(O,12),REF(V,12),0);
阳量13:=IF(REF(C,13)>REF(O,13),REF(V,13),0);
阳量14:=IF(REF(C,14)>REF(O,14),REF(V,14),0);
阳量15:=IF(REF(C,15)>REF(O,15),REF(V,15),0);
阳量16:=IF(REF(C,16)>REF(O,16),REF(V,16),0);
阳量17:=IF(REF(C,17)>REF(O,17),REF(V,17),0);
阳量18:=IF(REF(C,18)>REF(O,18),REF(V,18),0);
阳量19:=IF(REF(C,19)>REF(O,19),REF(V,19),0);
阳量20:=IF(REF(C,20)>REF(O,20),REF(V,20),0);
阴量0:=IF(C<O,V,0);
阴量1:=IF(REF(C,1)<REF(O,1),REF(V,1),0);
阴量2:=IF(REF(C,2)<REF(O,2),REF(V,2),0);
阴量3:=IF(REF(C,3)<REF(O,3),REF(V,3),0);
阴量4:=IF(REF(C,4)<REF(O,4),REF(V,4),0);
阴量5:=IF(REF(C,5)<REF(O,5),REF(V,5),0);
阴量6:=IF(REF(C,6)<REF(O,6),REF(V,6),0);
阴量7:=IF(REF(C,7)<REF(O,7),REF(V,7),0);
阴量8:=IF(REF(C,8)<REF(O,8),REF(V,8),0);
阴量9:=IF(REF(C,9)<REF(O,9),REF(V,9),0);
阴量10:=IF(REF(C,10)<REF(O,10),REF(V,10),0);
阴量11:=IF(REF(C,11)<REF(O,11),REF(V,11),0);
阴量12:=IF(REF(C,12)<REF(O,12),REF(V,12),0);
阴量13:=IF(REF(C,13)<REF(O,13),REF(V,13),0);
阴量14:=IF(REF(C,14)<REF(O,14),REF(V,14),0);
阴量15:=IF(REF(C,15)<REF(O,15),REF(V,15),0);
阴量16:=IF(REF(C,16)<REF(O,16),REF(V,16),0);
阴量17:=IF(REF(C,17)<REF(O,17),REF(V,17),0);
阴量18:=IF(REF(C,18)<REF(O,18),REF(V,18),0);
阴量19:=IF(REF(C,19)<REF(O,19),REF(V,19),0);
阴量20:=IF(REF(C,20)<REF(O,20),REF(V,20),0);
阳总量:=阳量0+阳量1+阳量2+阳量3+阳量4+阳量5+阳量6+阳量7+阳量8+阳量9+阳量10+阳量11+阳量12+阳量13+阳量14+阳量15+阳量16+阳量17+阳量18+阳量19+阳量20;
阴总量:=阴量0+阴量1+阴量2+阴量3+阴量4+阴量5+阴量6+阴量7+阴量8+阴量9+阴量10+阴量11+阴量12+阴量13+阴量14+阴量15+阴量16+阴量17+阴量18+阴量19+阴量20;
对比:=IF(DYNAINFO(4)>0 ,阳总量/阴总量,0);
DRAWTEXT_FIX(1,0,0.9,0,'【三阳控三阴】')COLORRED;
DRAWTEXT_FIX(1,0.15,0.9,0,CON2STR(REF(对比,1),2))COLORWHITE;
{手机三度量柱}
均价:=AMOUNT/VOL/100;
假阴真阳:=O>C   AND  均价>REF(C,1) ;
STICKLINE(C>O,0,V,3,0),COLORRED;
STICKLINE(C<O,0,V,3,0),COLORGREEN;
STICKLINE(C=O,0,V,3,0),COLORWHITE;
STICKLINE(假阴真阳,0,V,1,0),COLORLIMAGENTA;
DRAWTEXT_FIX(1,0,0,0,'三阳控三阴,庄进我也进,量时空释风险,量形态找庄影,量价动均归位,交易区求最佳,单强洗缺口强,再度强更无价。'),COLORWHITE;
换手率:VOL/CAPITAL*100,NODRAW,COLORMAGENTA;
STICKLINE(VOL/2,VOL/2,VOL/2,3,0),COLORBLACK;
MA1:MA(V,5),COLORWHITE,LINETHICK2;
MA2:MA(V,21),COLORYELLOW;

上一篇:通达信源码:抓大牛,三度量柱,资金看涨

下一篇:通达信源码:牛熊百彩K线,股性叠加,MACD趋势