大智慧夏卫东老师的横盘上突指标公式
-
相关简介:大智慧夏卫东老师的横盘上突指标公式 {横盘上突} ddx:=DDX.DDX#day; DDY:=DDY.DDY#day; DDZ:=WDDDZ.DDZ#day; DRAWTEXTREL(60,680,'DDX:'+ NUMTOSTRN(DDX,3)+' DDY:'+ NUMTOSTRN(DDY,3)+' DDZ:'+ NUMTOSTRN(DDZ,3)),colorccff99; {横盘上突} tt:=BARSCOUNT(C); CC:=CLOSE; zz:=SUM(AMOUNT,tt)/SUM(
-
文章来源:股海网作者:股海网发布时间:2012-12-09浏览次数:
大智慧夏卫东老师的横盘上突指标公式
{横盘上突}
ddx:="DDX.DDX#day";
DDY:="DDY.DDY#day";
DDZ:="WDDDZ.DDZ#day";
DRAWTEXTREL(60,680,'DDX:'+ NUMTOSTRN(DDX,3)+' DDY:'+ NUMTOSTRN(DDY,3)+' DDZ:'+ NUMTOSTRN(DDZ,3)),colorccff99;
{横盘上突}
tt:=BARSCOUNT(C);
CC:=CLOSE;
zz:=SUM(AMOUNT,tt)/SUM(VOL*100,tt);
zz1:=BETWEEN(C/zz,1.05,0.95);
均线:=IF(zz1=0,MA(C,TT),zz);
上均:=均线 + AVEDEV(C,tt)*2;
时长:=if(HOUR>=10.5 AND HOUR<15 ,1,0);
涨幅:=(close/DYNAINFO(3))>=1.03;
跌幅:=(close/DYNAINFO(3))<=0.97;
涨跌幅:=涨幅 OR 跌幅;
yy:=SMA(vol,30,1);
放量:=(yy-LLV(Llv(yy,1),30))/(HHV(Hhv(yy,1),30)-LLV(Llv(yy,1),30))>0;
横盘:=((HHV(CLOSE,TT)-LLV(CLOSE,TT))/CLOSE)<=0.05;
横涨:=涨跌幅=0 and 横盘 and 时长 and 放量 and CROSS(CC,上均) and DYNAINFO(22)<DYNAINFO(23) ;
上突:=FILTER(横涨,100) ;
DRAWTEXT(上突,上均,'★横盘上突'),COLOR0080FF;
{主力扫盘}
VAR23:=HHV(CLOSE,90);
VAR24:=LLV(CLOSE,90);
VAR25:=VAR23-VAR24;
VAR26:=EMA((CLOSE-VAR24)/VAR25-0.5,14);
ZLSP:=VAR26*20;
VAR27:=REF(HHV(CLOSE,66),2);
VAR28:=CROSS(CLOSE,VAR27) and (HHV(CLOSE,110)/LLV(CLOSE,110)-1)*100<45 and ZLSP<5.666;
VAR31:=15*FILTER(VAR28,41)>10;
主力扫盘:=VAR31;
DRAWTEXT(VAR31,C*1.001,'主力扫盘'),COLORMAGENTA;
VERTLINE( var31,1),COLORMAGENTA;
KP30:=TIME0<36000;
KPGD:=H=HHV(H,0) AND KP30;
GDSJ:=BARSLAST(KPGD);
HH:REF(H,GDSJ),COLOR00FF00,POINTDOT,LINETHICK1;
过顶:=IF(CROSS(C,HH),1,0);
冲高:=IF(FILTER(CROSS(C,HH*1.01),15),1,0);
DRAWTEXT(过顶,HH,'♂过顶'),COLOR0080FF,ALIGN1;
DRAWTEXT(冲高,C,'♂冲高'),COLORRED,ALIGN1;
{主力扫盘+突破}
aa:=(CLOSE-MA(CLOSE,21))/MA(CLOSE,21)*100;
ab:=HHv(c,10)/llv(c,10)<1.50 and count(c>o,10)>=1 and count(c<o,10)>=1 and count(l>ref(l,1),10)<=3;
突破:=ref(aa,1) and c>o and (c-o)>ref(hhv(abs(c-o),10),1)*1.3 and c>ref(hhv(h,10),1);
VAR32:=VAR31 AND 突破 ;
VERTLINE( var32,1),COLOR008CFF;
{量价新高}
T:=BARSCOUNT(C);
分钟数:=IF(TIME0/60-570<=130,TIME0/60-570,TIME0/60-660);
AA:=VOL/((HIGH-LOW)*2-ABS(CLOSE-OPEN));
主买a:=IF(CLOSE>OPEN,AA*(HIGH-LOW),IF(CLOSE<OPEN,AA*((HIGH-OPEN)+(CLOSE-LOW)),VOL/2));
主卖a:=IF(CLOSE>OPEN,0-AA*((HIGH-CLOSE)+(OPEN-LOW)),IF(CLOSE<OPEN,0-AA*(HIGH-LOW),0-VOL/2));
量:=VOL;
额:=AMOUNT/100000000;
流入额:=MA(主买a,4)/100000;
流出额:=MA((0-主卖a),4)/100000;
净流入:=SUM(流入额-流出额,0);
价新高:=COUNT(H=HHV(H,分钟数),30);
量新高:=COUNT(V=HHV(V,分钟数) ,30);
量价新高:=价新高=量新高 AND 价新高>0 AND 价新高>REF(价新高,1) AND 量新高>REF(量新高,1) AND 净流入>0;
DRAWTEXT(量价新高,C,'★量价新高'),COLORRED,ALIGN1;
{进场}
VarF:=(2*CLOSE+HIGH+LOW)/4;
Var10:=LLV(LOW,34);
Var11:=HHV(HIGH,34);
Var12:=EMA((VarF-Var10)/(Var11-Var10)*100,6);
Var13:=EMA(0.667*REF(Var12,1)+0.333*Var12,4);
Var14:=LLV(LOW,120);
Var15:=HHV(HIGH,120);
Var16:=Var15-Var14;
DRAWTEXT(IF(COUNT(CLOSE<REF(CLOSE,1),8)/8>0.3 AND COUNT
(Var12>Var13,3) AND REF(LOW,1)=LLV(LOW,120) AND
CLOSE>OPEN,1,0),LOW,'☆进场'),Color00ffff;
{分时线}
最新:C,COLORWHITE,LINETHICK2,PRECIS2,LAYER0;
{条件}
特大:=(bigorder(1,3)-bigorder(2,3))*DYNAINFO(10)/10000;
大单:=((bigorder(1,2)-bigorder(1,3))-(bigorder(2,2)-bigorder(2,3)))*DYNAINFO(10)/10000;
中单:=((bigorder(1,1)-bigorder(1,2))-(bigorder(2,1)-bigorder(2,2)))*DYNAINFO(10)/10000;
小单:=((1-bigorder(1,1))-(1-bigorder(2,1)))*DYNAINFO(10)/10000;
DRAWTEXTREL(875,20,'特净额:'),color0000ff;
DRAWTEXTREL(875,90,'大净额:'),color1e90ff;
DRAWTEXTREL(875,160,'中净额:'),ColorFF850B;
DRAWTEXTREL(875,230,'小净额:'),color00FF00;
DRAWTEXTREL(935,20,NUMTOSTRN(特大,2)),color0000ff;
DRAWTEXTREL(935,90,NUMTOSTRN(大单,2)),color1e90ff;
DRAWTEXTREL(935,160,NUMTOSTRN(中单,2)),ColorFF850B;
DRAWTEXTREL(935,230,NUMTOSTRN(小单,2)),color00FF00;
{画柱图}
最大值:=250/(MAX(特大,大单,中单,小单));
特净:=600-(特大*最大值);
大净:=600-(大单*最大值);
中净:=600-(中单*最大值);
小净:=600-(小单*最大值);
DRAWRECTREL(900,特净,920,670,RGB(200,0,0)),color0000ff,LAYER5;
DRAWRECTREL(925,大净,945,670,RGB(255,144,30)),color1e90ff,LAYER5;
DRAWRECTREL(950,中净,970,670,RGB(11,133,255)),ColorFF850B,LAYER5;
DRAWRECTREL(975,小净,995,670,RGB(0,200,0)),color00FF00,LAYER5;
DRAWTEXTREL(905,660,'特'),COLORFFFFCC;
DRAWTEXTREL(930,660,'大'),COLORFFFFCC;
DRAWTEXTREL(955,660,'中'),COLORFFFFCC;
DRAWTEXTREL(980,660,'小'),COLORFFFFCC;
{主力线}
BBD1:=特大+大单;
ee:=if(bbd1=0,ref(bbd1,BARSLAST(bbd1)),bbd1);
BBD:=ee;
gqc:=DYNAINFO(3);
gh:=DYNAINFO(5);
gL:=DYNAINFO(6);
当前波幅:=max(gh-gqc,gqc-gL);
gf:=当前波幅/gqc;
最低位置:=gqc-当前波幅;
BBD(万元):BBD,linethick0,coloryellow;
zjc:=BBD;
zjcbf:=max(hhvall(zjc),0-llvall(zjc));
p1:=zjc*gf/zjcbf;
zjcx:=(p1+1)*gqc;
zjcx1:=ma(zjcx,3);
zjcx2:=ref(zjcx1,1);
partline(zjcx1,zjcx1>=zjcx2,rgb(255,0,0),zjcx1<zjcx2,rgb(0,255,0)),linethick1;
DRAWFLAGTEXT(1,c,'<*t=80FF00*><*c=0000FF*><*p=95*>'+datestr(date)+' '+HOUR+':'+MINUTE+'\n'+'<*t=E7FFFF*><*c=111100*><*p=95*>'+'【现价】 '+NUMTOSTRN(C,2)+'<*t=E7FFFF*><*c=0000FF*><*p=95*>'+' 【涨幅】'+NUMTOSTRN(100*(C/DYNAINFO(3)-1),2)+'%');