大智慧资金夹角公式源码是什么?
2016-6-2 11:09:41 股票入门 http://rumen.southmoney.com
大智慧资金夹角公式源码是什么?附:大智慧博弈VOL指标公式 南方财富网小编为您提供
【大智慧资金夹角公式源码】
WRAP: break-word; WHITE-SPACE: normal; TEXT-TRANSFORM: none; WORD-SPACING: 0px; COLOR: rgb(51,51,51); PADDING-BOTTOM: 0px; PADDING-TOP: 0px; FONT: 14px/24px 宋体, arial, sans-serif, 'DejaVu Sans', 'Lucida Grande', Tahoma, 'Hiragino Sans GB', STHeiti, SimSun, sans-serif; PADDING-LEFT: 0px; MARGIN: 0px; WIDOWS: 1; LETTER-SPACING: normal; PADDING-RIGHT: 0px; TEXT-INDENT: 0px; -webkit-text-stroke-width: 0px">在大智慧L2行情中,有一个分时指标叫做资金夹角。按照官方销售代理的说法,该指标能够全面解析市场资金在分时级别的动向,预示股价运行的方向,所以该指标被官方当做销售股软的一大卖点,并给该指标进行源码加密,配合L2行情数据大肆收费。
N1:=TRANSACTNUM(1,0)-TRANSACTNUM(2,0);
N2:=2*SUM(N1,0);
N3:=N2/CAPITAL;
N4:=N3*500000;
N5:=ORDERNUM(2,0)-ORDERNUM(1,0);
N6:=SUM(N5,0)/CAPITAL;
N7:=N6*1000000;
N8:=N7+N4;
动量监控:N8/2,LINETHICK3;
N9:=MA(动量监控,5);
N13:=N9+20;
N15:=N9-20;
N18:=REF(动量监控,20)+20;
N20:=REF(动量监控,20)-20;
PARTLINE(动量监控,动量监控>30,RGB(255,0,0),动量监控<-30,RGB(24,255,0),动量监控>N13,RGB(255,0,0),动量监控<N15,RGB(24,255,0), 动量监控>N18,RGB(255,0,0),动量监控<N20,RGB(24,255,0)),LINETHICK3;
100,DASHLINE,COLOR0000FF;
-100,DASHLINE,COLOR00FF00;
30,DOTLINE,COLORCCCCCC;
-30,DOTLINE,COLORCCCCCC;
附:【大智慧博弈VOL指标公式】
MID:=(3*CLOSE+LOW+OPEN+HIGH)/6;中轴:=(20*MID+19*REF(MID,1)+18*REF(MID,2)+17*REF(MID,3)+16*REF(MID,4)+15*REF(MID,5)+14*REF(MID,6)+13*REF(MID,7)+12*REF(MID,8)+11*REF(MID,9)+10*REF(MID,10)+9*REF(MID,11)+8*REF(MID,12)+7*REF(MID,13)+6*REF(MID,14)+5*REF(MID,15)+4*REF(MID,16)+3*REF(MID,17)+2*REF(MID,18)+REF(MID,20))/210;
上轨:=中轴+4*STD(中轴,21);
强轨:=中轴+2*STD(中轴,21);
弱轨:=中轴-2*STD(中轴,21);
下轨:=中轴-4*STD(中轴,21);
宽度:上轨/下轨,linethick0;
成交额:AMOUNT/100000000,LINETHICK0,colorred,PRECIS2;
T日:=if(CURRENTTIME>93000 and CURRENTTIME<150000,
if(CURRENTTIME<113000,(TIMETOT0(CURRENTTIME)-34200),
if(CURRENTTIME>130000,(TIMETOT0(CURRENTTIME)-39600),7200)),14400);
T60:=if(MOD(T日,3600)=0,3600,MOD(T日,3600));
T30:=if(MOD(T日,1800)=0,1800,MOD(T日,1800));
T15:=if(MOD(T日,900)=0,900,MOD(T日,900));
T5:=if(MOD(T日,300)=0,300,MOD(T日,300));
T1:=if(MOD(T日,60)=0,60,MOD(T日,60));
TT:=if(DATATYPE=8,vol*14400/ T日,
if(DATATYPE=7,vol*3600/T60,
if(DATATYPE=6,vol*1800/T30,
if(DATATYPE=5,vol*900/T15,
if(DATATYPE=4,vol*300/T5,
if(DATATYPE=4,vol*60/T1,0))))));
预测成交量:=IF(BARSTATUS=2,TT,0);
STICKLINE(BARSTATUS=2,预测成交量,VOL,6,01),COLOR00FFFF,DOTLINE,LAYER7;
量_价:=1;CTKG:=1;
W:=量_价;
EPSL:=0.0001;
ZZ:=(C+H+L)/3;
TJA:=ZZ>=MAX(C,O) AND CTKG=1;{倒锤头};
TJB:=ZZ<=MIN(C,O) AND CTKG=1;{正锤头};
ZF:=IF(TJA,1,IF(TJB,-1,0));{正负数};
TJ0:=TJA OR TJB;
TJ1:=H=L AND C>REF(C,1);{一字涨停};
TJ2:=H=L AND C<REF(C,1);{一字跌停};
TJ3:=H=L AND C=REF(C,1);{连续一字涨、跌停};
量_价:=IF(W=1,VOL,AMOUNT);{平盘量,白色}
{以下4句组合属核心公式,版权属于JIPGEMLING.见凌见}
EE:=IF(TJ1,EPSL,IF(TJ2,-EPSL,0));
ZL:=2*(H-L)+ABS(C-O)+3*IF(TJ3,EPSL,ABS(EE));
JGL_DX:=(IF(TJ0,2/3*(2*C-H-L)+ZF*ABS(C-O),(C-O))+EE)/ZL;
买卖差:=JGL_DX*量_价;
DXx:JGL_DX*100,COLORGREEN,linethick0;
D连红:last(DXx>0),pcis0,linethick0,COLORB468FF;
买盘:=量_价*(1+JGL_DX)/2;
卖盘:=量_价*(1-JGL_DX)/2;
VAR1:=VOL/((HIGH-LOW)*2-ABS(CLOSE-OPEN));
主动买盘:=IF(CLOSE>OPEN,VAR1*(HIGH-LOW),IF(CLOSE<OPEN,VAR1*((HIGH-OPEN)+(CLOSE-LOW)),VOL/2));
主动卖盘:=IF(CLOSE>OPEN,0-VAR1*((HIGH-CLOSE)+(OPEN-LOW)),IF(CLOSE<OPEN,0-VAR1*(HIGH-LOW),0-VOL/2));
{因为可能会出现卖出量为0的BUG,所以放在最后参考}
VAR2:=HIGH-LOW;
VAR3:=ABS(OPEN-CLOSE);
VAR4:=HIGH-(IF(CLOSE>OPEN,CLOSE,OPEN));
VAR5:=(IF(CLOSE>OPEN,OPEN,CLOSE))-LOW;
VAR6:=VAR3/VAR2*VOL;
VAR7:=VAR4/VAR2*VOL;
VAR8:=VAR5/VAR2*VOL;
VAR9:=IF(VOL/CAPITAL>0.001,1,EXP(ABS(LOG(VOL/CAPITAL*100))));
VARA:=(CLOSE-MA(CLOSE,5))/MA(CLOSE,5)*100;
VARB:=MA(CLOSE,5)>MA(CLOSE,10) AND MA(CLOSE,10)>MA(CLOSE,30) AND MA(CLOSE,30)>MA(CLOSE,60);
VARC:=MA(CLOSE,5)<MA(CLOSE,10) AND MA(CLOSE,10)<MA(CLOSE,30);
DRAWTEXT(VAR9>2 AND VOL<MA(VOL,5)/2,VOL,'地量'),COLORRED;
DRAWTEXT(VAR7>VAR6 AND VARA>2 AND VAR7>VAR8 AND CLOSE>MA(CLOSE,5) AND CLOSE>MA(CLOSE,30) AND HIGH>MA(CLOSE,60) AND VOL>MA(VOL,5) AND VAR7>=MA(VOL,5),VOL,'逢高出货'),COLORRED;
DRAWTEXT(VAR8>VAR6 AND VAR8>VAR7 AND VARA<-2 AND CLOSE<MA(CLOSE,30) AND VAR8<MA(VOL,5)/2 AND MA(VOL,5)<MA(VOL,10),VOL,'逢低跟进'),COLORGREEN;
DRAWTEXT(VAR6>MA(VOL,5)*2 AND VAR6>=VAR7 AND VAR6>=VAR8 AND CLOSE>OPEN OR VOL>MA(VOL,5)*3 AND VARB,VOL,'强势参与'),COLORCC99CC;
DRAWTEXT(VAR6>=VAR7 AND VAR6>=VAR8 AND CLOSE<OPEN AND VAR6/VOL>0.7 AND VARC AND VAR6>MA(VOL,5),VOL,'空头释放'),COLORFF00FF;
净量:=主动买盘+主动卖盘;
STICKLINE(C<O ,0,VOL,7.0,0),COLORFF1100;
STICKLINE(C<O ,0,VOL,6.0,0),COLORFF3300;
STICKLINE(C<O ,0,VOL,5.2,0),COLORFF5500;
STICKLINE(C<O ,0,VOL,4.0,0),COLORFF7700;
STICKLINE(C<O ,0,VOL,2.8,0),COLORFF9900;
STICKLINE(C<O ,0,VOL,1.6,0),COLORFFBB00;
STICKLINE(C=O AND C<REF(C,1),0,VOL,7.0,0),COLOR006000;
STICKLINE(C=O AND C<REF(C,1),0,VOL,6.0,0),COLOR007500;
STICKLINE(C=O AND C<REF(C,1),0,VOL,5.2,0),COLOR009100;
STICKLINE(C=O AND C<REF(C,1),0,VOL,4.0,0),COLOR00A600;
STICKLINE(C=O AND C<REF(C,1),0,VOL,2.8,0),COLOR00BB00;
STICKLINE(C=O AND C<REF(C,1),0,VOL,1.6,0),COLOR00CC00;
STICKLINE(C=O AND C>REF(C,1),0,VOL,7.0,0),COLOR555555;
STICKLINE(C=O AND C>REF(C,1),0,VOL,6.0,0),COLOR777777;
STICKLINE(C=O AND C>REF(C,1),0,VOL,5.2,0),COLOR999999;
STICKLINE(C=O AND C>REF(C,1),0,VOL,4.0,0),COLORBBBBBB;
STICKLINE(C=O AND C>REF(C,1),0,VOL,2.8,0),COLORDDDDDD;
STICKLINE(C=O AND C>REF(C,1),0,VOL,1.6,0),COLORFFFFFF;
STICKLINE(C>O,0,VOL,7.0,0),COLORFF11FF;
STICKLINE(C>O,0,VOL,6.0,0),COLORFF33FF;
STICKLINE(C>O,0,VOL,5.2,0),COLORFF55FF;
STICKLINE(C>O,0,VOL,4.0,0),COLORFF77FF;
STICKLINE(C>O,0,VOL,2.8,0),COLORFF99FF;
STICKLINE(C>O,0,VOL,1.6,0),COLORFFBBFF;
资金异动:=VOL/MA(VOL,55)*100;
STICKLINE(主动买盘>0,0,主动买盘,7.0,0),COLOR000055;
STICKLINE(主动买盘>0,0,主动买盘,6.0,0),COLOR000077;
STICKLINE(主动买盘>0,0,主动买盘,5.2,0),COLOR000099;
STICKLINE(主动买盘>0,0,主动买盘,4.0,0),COLOR0000BB;
STICKLINE(主动买盘>0,0,主动买盘,2.8,0),COLOR0000DD;
STICKLINE(主动买盘>0,0,主动买盘,1.6,0),COLOR0000FF;
STICKLINE(主动卖盘<0,0,主动卖盘,7.0,0),COLOR006000;
STICKLINE(主动卖盘<0,0,主动卖盘,6.0,0),COLOR007500;
STICKLINE(主动卖盘<0,0,主动卖盘,5.2,0),COLOR009100;
STICKLINE(主动卖盘<0,0,主动卖盘,4.0,0),COLOR00A600;
STICKLINE(主动卖盘<0,0,主动卖盘,2.8,0),COLOR00BB00;
STICKLINE(主动卖盘<0,0,主动卖盘,1.6,0),COLOR00CC00;
STICKLINE(资金异动>100 ,0,VOL,2.5,0),COLORYELLOW;
DDX:=买盘-卖盘;
MADDX:=MA(DDX,5)*15;
DDX1:SMA(MADDX,3,1),COLORRED,LINETHICK1;
DDX2:SMA(DDX1,3,1),COLORGREEN,LINETHICK1;
DDX3:SMA(DDX2,3,1),COLORYELLOW,LINETHICK1;
DRAWICON(CROSS(DDX2,DDX1) AND DDX3>V,DDX2,2);
HHV(V,21),COLORRED;
更多大智慧公式源码相关资讯请关注南方财富网
股票入门声明:资讯来源于互联网,属作者个人观点,仅供投资者参考,并不构成投资建议。投资者据此操作,风险自担。