当前位置:→ 公式网 > 大智慧公式 > 正文 ℃ 公式解密、改选股等业务 联系点击查看详情...
以下是大智慧分时买卖力度副图指标来至于虎拓圣龙源码(无源码的请下载附件导入)
把虎拓圣龙用于分时求得分时买卖的力度 竟管不是【DDX】的流入,但是可以在股价涨跌之中,取得买卖双方的愿意的大小,其流入数据不重要,但可以比较大小,比较方向对于我们操作还有参考价值 对于免费用户还是有用的,收费的就不必来了,它替代不了【DDX】
{公式在线提供:www.gszx.com.cn}
{买卖力度}
DRAWRECTREL(-1,0,1000,1000,RGB(0,0,20)),color00FFFF,LINETHICK2,LAYER7;
0,color888888,DOTLINE;
Mm:=if(c=DYNAINFO(54) and l=DYNAINFO(54),h-DYNAINFO(3),h-ref(c,1));
m:=if(mm>0,mm,0.0);
Ss:=if(c=DYNAINFO(55) and h=DYNAINFO(55),DYNAINFO(3)-h,ref(c,1)-L);
s:=if(ss>0,ss,0.0);
Hj:=m+s;
流入额:=m/hj*AMOUNT;
流出额:=s/hj*AMOUNT;
净额:=流入额-流出额;
td:sum(净额,0)/10000,linethick0;
Je:净额/10000,linethick0,color00DDDD;
DRAWTEXTABS(0,30,'流入净额; '+NUMTOSTRN(td,1)+' 万'),Color00ff00,LINETHICK3;
DRAWTEXTABS(0,50,'当前净额; '+NUMTOSTRN(Je,3)+' 万'),Color00ffff,LINETHICK3;
买入力度:=m/hj*AMOUNT/CAPITAL;
卖出力度:=s/hj*AMOUNT/CAPITAL;
(买入力度-卖出力度),Colorstick,linethick2,LAYER0;
买卖力度:sum((买入力度-卖出力度),0),PRECIS3,linethick0;
DRAWTEXTABS(0,70,'买卖力度; '+NUMTOSTRN(买卖力度,3)+' %'),Color0077ff,LINETHICK3;
X:买卖力度,colorAAAA00,LINETHICK2;
PARTLINE(x,x>10.5,rgb(255,0,0)),LINETHICK2,LAYER7;
PARTLINE(x,x<0,rgb(0,255,100)),LINETHICK2,LAYER7;
SUMxp:=(买入力度-卖出力度)*10;
T3:=SLOPE(c,4)>0.016;
X2:=(count(SUMXP>0,6)>5 OR count(SUMXP>0,10)>7) AND 买卖力度>0.1 and T3;
Y:=hhv(sumxp,0);
Bt:=X2*y;
DRAWTEXT(Bt,x,'P'+count(Bt,0)),color00ffff,LINETHICK1;
DRAWTEXTABS(0,10,'主力做多次数: '+count(Bt,0)),color00ffFA,LINETHICK3;
cc:=BARSSINCE(o>0);
TT:=(c-ref(c,cc-2))/ref(c,cc-2)*100;
B1:=SLOPE(c,5)<0.02 and tt<6 and x>4;
b:=B1 AND td>1000;
z1:=BARSSINCE(B);
z2:=BARSLAST(B);
T:b and z1=z2 ,linethick0;
AAA:=HHVALL(x);
BBB:=LLVALL(x);
CCC:=AAA-BBB;
上顶:BBB+CCC*2.7/3,LINETHICK1;
下底:BBB+CCC*0.3/3,LINETHICK1;
FILLRGN(X,上顶,X>上顶,RGB(200,0,80)),LAYER4;
FILLRGN(X,下底,X<下底,RGB(0,0,255)),LAYER4;
FILLRGN( 上顶,AAA ),color000446,LAYER5;;
FILLRGN(BBB,下底 ),color004400,LAYER5;;
Hl:=DYNAINFO(7)-LLVALL(c)*1.01;
Hlbl:=hl/DYNAINFO(7)*100;
{条件B点}
DRAWTEXT(T,x,'B'),colorFF55FF,LINETHICK7;
提示买入价:LLVALL(c)*1.002,linethick0,colorff00ff;
现已获利:HL,linethick0,color00AAff;
收益:HLbl,linethick0,color00ffff;
DRAWTEXTABS(0,110,'提示买入价; '+NUMTOSTRN(提示买入价,2)+' 元'),Color0000ff,LINETHICK3;
买比:ALLBIDVOL/(ALLBIDVOL+ALLASKVOL)*100,Color0077ff,LAYER3,LINETHICK0;
DRAWTEXTABS(0,90,'★买比: '+NUMTOSTRN(买比,2)+ ' %'),color00ffFF,LINETHICK3;
Tm:=BARSCOUNT(C);
TP:= FILTER( C>=HHV(H,Tm) AND V>MA(V,0)*2 AND DYNAINFO(17)>1 AND TIME0>39600 ,240) ;
VERTLINE(TP,4),COLOR00FF00;
--------------------------------------
下面是虎拓圣龙的源码;可对照参考
---------------------------------------
variable:x=0;
DRAWTEXTABS(0,0,'【基于丰赢数据】');
YD:="大盘引用.昨收#DAY";
{SumT:BARSCOUNT(C),linethick0;}
Mm:=if(c=DYNAINFO(54) and l=DYNAINFO(54),h-yd,h-ref(c,1));
m:=if(mm>0,mm,0.0);
Ss:=if(c=DYNAINFO(55) and h=DYNAINFO(55),yd-h,ref(c,1)-L);
s:=if(ss>0,ss,0.0);
{
Mm:=h-ref(c,1);
Ss:=ref(c,1)-L;
s:=if(ss>0,ss,0.01);
m:=if(mm>0,mm,0.01);
}
Hj:=m+s;
买入力度:m/hj*AMOUNT/CAPITAL,LINETHICK0;
卖出力度:s/hj*AMOUNT/CAPITAL,LINETHICK0;
流入额:m/hj*AMOUNT/10000,LINETHICK0;
流出额:s/hj*AMOUNT/10000,LINETHICK0;
净额:流入额-流出额,LINETHICK0;
X:=(买入力度-卖出力度);
SUMx:SUM(x,0),color00ffff;
SUMxp:=x*10;
CT:=count(SUMXP>0,0);
ST:=count(SUMXP<0,0);
CZ:CT-ST,LINETHICK0,color00ffff;
T1:=V>MA(V,0)*5;
T2:=SLOPE(c,5)>0.02;
T3:=SLOPE(c,4)>0.016;
X1:=t1 and t2 and SUMX>0 and ct>st*1.5;
X2:=(count(SUMXP>0,6)>5 OR count(SUMXP>0,10)>7) AND SUMX>0.1 and T3;
Y:=hhv(sumxp,0);
B:x1*y,color999999;;
Bt:X2*y,coloraaaa00,LINETHICK1;
z1:BARSSINCE(b),LINETHICK0;
z2:BARSLAST(b),LINETHICK0;
DRAWTEXT(b and z1=z2,y,'B'),colorFFFFFF,LINETHICK7;
drawicon(b and z1=z2,y*1.1,12),LINETHICK7;
SUMxp:x*1,colorstICK,LINETHICK2;
{拾金点}
bn:="黄金眼.买卖气#day";
JD:=bn>25;
z3:BARSSINCE(jd),LINETHICK0;
z4:BARSLAST(jd),LINETHICK0;
DRAWTEXT(jd and z3=z4,y,'B'),colorFFFF00,LINETHICK7;
drawicon(jd and z3=z4,y*1.1,12),LINETHICK7;