通达信真实成交公式
-
相关简介:在相当长的一段时间里,网络上的各路指标高手都有普遍的一个追求,而且大家也都在或正在为这个追求探索着。 那就是怎样在不使用分笔、逐笔数据,不使用引用公式的前提下,得到接近市场真实的各个类别成交,并且把它们量化到图表上。 千钧去年首创了K线四分法,并且用这个方法衍生了【千钧DDE系统】。使得中小散户不必花银子就可以使用上近似大智慧的DDE系统,而且我个人认为、千钧DDE系统在实战应用中与大智慧DDE决策系统相比,有过之而无不及。 尽管这个四分法目前还不能算是最佳方案,但它给这项追求成为现实,打开了大
-
文章来源:择股网作者:股海网发布时间:2010-02-20浏览次数:

在相当长的一段时间里,网络上的各路指标高手都有普遍的一个追求,而且大家也都在或正在为这个追求探索着。
那就是怎样在不使用分笔、逐笔数据,不使用引用公式的前提下,得到接近市场真实的各个类别成交,并且把它们量化到图表上。
千钧去年首创了‘K线四分法’,并且用这个方法衍生了【千钧DDE系统】。使得中小散户不必花银子就可以使用上近似大智慧的DDE系统,而且我个人认为、千钧DDE系统在实战应用中与大智慧DDE决策系统相比,有过之而无不及。
尽管这个‘四分法’目前还不能算是最佳方案,但它给这项追求成为现实,打开了大门。
现在我们就使用这个‘四分法’来分解一天之中的各个类别的成交,看看每天主力与散户的博弈都是怎样进行的?看看为什么散户们总是失败?
指标中使用的提示信号,全部使用的【量】,与【价】彻底分家,使用这种方法的目的是让有志之士们认知“股价的涨跌是和‘量’密不可分的”,一般意义上的‘价’取得的信号,在很大程度上会被主力利用,而‘量’生成的信号,是要花真金白银才能完全做到的。
这在最大限度上规避了‘骗线’的迷魂阵。
图示
飞狐
大智慧新一代
一,飞狐源码
- JE:=vol;SJ:=if(CURRENTTIME>93000 and CURRENTTIME<150000,
- if(CURRENTTIME<113000,(TIMETOT0(CURRENTTIME)-34200)/60,
- if(CURRENTTIME>130000,(TIMETOT0(CURRENTTIME)-39600)/60,120)),240);
- 预测额:IF(BARSTATUS=2,JE/SJ*240,JE),COLOR00FFFF,LINETHICK;
- STICKLINE(BARSTATUS=2,0,预测额,9,1),COLOREEEEFF,LINEDOT;
- jj:=(HIGH+LOW+CLOSE)/3;qj0:=vol/IF(HIGH=LOW,4,HIGH-LOW);
- 主买:=(qj0*(jj-MIN(CLOSE,OPEN)));
- 主卖:=(qj0*(MIN(OPEN,CLOSE)-LOW));
- 散买:=(qj0*(HIGH-MAX(OPEN,CLOSE)));
- 散卖:=(qj0*(MAX(CLOSE,OPEN)-jj));
- STICKLINE(H=l and C<ref(c,1),0,JE,8,0),COLOR008800;
- STICKLINE(H=l and C<ref(c,1),0,JE,5,0),COLOR00aa00;
- STICKLINE(H=l and C<ref(c,1),0,JE,3,0),COLOR00cc00;
- STICKLINE(H=l and C<ref(c,1),0,JE,1,0),COLOR00ee00;
- STICKLINE(H=l and C>ref(c,1),0,JE,8,0),COLOR000088;
- STICKLINE(H=l and C>ref(c,1),0,JE,5,0),COLOR0000aa;
- STICKLINE(H=l and C>ref(c,1),0,JE,3,0),COLOR0000cc;
- STICKLINE(H=l and C>ref(c,1),0,JE,1,0),COLOR0000ff;
- STICKLINE(散卖>0,0,主买+主卖+散买+散卖,8,0),COLOR880000;
- STICKLINE(散卖>0,0,主买+主卖+散买+散卖,5,0),COLORaa0000;
- STICKLINE(散卖>0,0,主买+主卖+散买+散卖,3,0),COLORcc0000;
- 散户卖:STICKLINE(散卖>0,0,主买+主卖+散买+散卖,1,0),COLORee0000;
- STICKLINE(散买>0,0,主买+主卖+散买,8,0),COLOR880088;
- STICKLINE(散买>0,0,主买+主卖+散买,5,0),COLORaa00aa;
- STICKLINE(散买>0,0,主买+主卖+散买,3,0),COLORcc00cc;
- 散户买:STICKLINE(散买>0,0,主买+主卖+散买,1,0),COLORee00ee;
- STICKLINE(主卖>0,0,主买+主卖,8,0),COLOR008800;
- STICKLINE(主卖>0,0,主买+主卖,5,0),COLOR00aa00;
- STICKLINE(主卖>0,0,主买+主卖,3,0),COLOR00cc00;
- 主力卖:STICKLINE(主卖>0,0,主买+主卖,1,0),COLOR00ee00;
- STICKLINE(主买>0,0,主买,8,0),COLOR000088;
- STICKLINE(主买>0,0,主买,5,0),COLOR0000aa;
- STICKLINE(主买>0,0,主买,3,0),COLOR0000cc;
- 主力买:STICKLINE(主买>0,0,主买,1,0),COLOR0000ff;
- AA:=if(c>(h+l)/2,je,0);BB:=if(c<(h+l)/2,je,0);
- F1:=sum(aa,5);F2:=sum(bb,5);F3:=ema(F1-F2,3);
- T1:=主买>主卖 and cross(f3,ref(f3,1)) and f3<0;
- T2:=主卖>主买 and cross(ref(f3,1),f3) and f3>0;
- DRAWTEXT(T1,je*1.2,'+B'),COLOR00ffff;
- DRAWTEXT(T2,je*1.2,'-S'),COLORffffff;
- DRAWTEXT(BARPOS=SYSPARAM(2)+1,0,'证券代码:'+STKLABEL+' 证券名称:'+STKNAME+''),ALIGN3,PXUP90,ColorFF00FF;
二、大智慧新一代源码
- JE:=vol;SJ:=if(CURRENTTIME>93000 and CURRENTTIME<150000,
- if(CURRENTTIME<113000,(TIMETOT0(CURRENTTIME)-34200)/60,
- if(CURRENTTIME>130000,(TIMETOT0(CURRENTTIME)-39600)/60,120)),240);
- 预测量:IF(BARSTATUS=2,JE/SJ*240,JE),COLOR00FFFF,LINETHICK0;
- STICKLINE(BARSTATUS=2,0,预测量,10,1),COLORgreen,DOTLINE,LAYER7;
- jj:=(HIGH+LOW+CLOSE)/3;qj0:=vol/IF(HIGH=LOW,4,HIGH-LOW);
- 主买:=(qj0*(jj-MIN(CLOSE,OPEN)));
- 主卖:=(qj0*(MIN(OPEN,CLOSE)-LOW));
- 散买:=(qj0*(HIGH-MAX(OPEN,CLOSE)));
- 散卖:=(qj0*(MAX(CLOSE,OPEN)-jj));
- STICKLINE(H=l and C<ref(c,1),0,JE,8,0),COLOR008800;
- STICKLINE(H=l and C<ref(c,1),0,JE,5,0),COLOR00aa00;
- STICKLINE(H=l and C<ref(c,1),0,JE,3,0),COLOR00cc00;
- STICKLINE(H=l and C<ref(c,1),0,JE,1,0),COLOR00ee00;
- STICKLINE(H=l and C>ref(c,1),0,JE,8,0),COLOR000088;
- STICKLINE(H=l and C>ref(c,1),0,JE,5,0),COLOR0000aa;
- STICKLINE(H=l and C>ref(c,1),0,JE,3,0),COLOR0000cc;
- STICKLINE(H=l and C>ref(c,1),0,JE,1,0),COLOR0000ff;
- STICKLINE(散卖>0,0,主买+主卖+散买+散卖,8,0),COLOR880000;
- STICKLINE(散卖>0,0,主买+主卖+散买+散卖,5,0),COLORaa0000;
- STICKLINE(散卖>0,0,主买+主卖+散买+散卖,3,0),COLORcc0000;
- 散户卖:STICKLINE(散卖>0,0,主买+主卖+散买+散卖,1,0),COLORee0000;
- STICKLINE(散买>0,0,主买+主卖+散买,8,0),COLOR880088;
- STICKLINE(散买>0,0,主买+主卖+散买,5,0),COLORaa00aa;
- STICKLINE(散买>0,0,主买+主卖+散买,3,0),COLORcc00cc;
- 散户买:STICKLINE(散买>0,0,主买+主卖+散买,1,0),COLORee00ee;
- STICKLINE(主卖>0,0,主买+主卖,8,0),COLOR008800;
- STICKLINE(主卖>0,0,主买+主卖,5,0),COLOR00aa00;
- STICKLINE(主卖>0,0,主买+主卖,3,0),COLOR00cc00;
- 主力卖:STICKLINE(主卖>0,0,主买+主卖,1,0),COLOR00ee00;
- STICKLINE(主买>0,0,主买,8,0),COLOR000088;
- STICKLINE(主买>0,0,主买,5,0),COLOR0000aa;
- STICKLINE(主买>0,0,主买,3,0),COLOR0000cc;
- 主力买:STICKLINE(主买>0,0,主买,1,0),COLOR0000ff;
- AA:=if(c>(h+l)/2,je,0);BB:=if(c<(h+l)/2,je,0);
- F1:=sum(aa,5);F2:=sum(bb,5);F3:=ema(F1-F2,3);
- T1:=主买>主卖 and cross(f3,ref(f3,1)) and f3<0;
- T2:=主卖>主买 and cross(ref(f3,1),f3) and f3>0;
- DRAWTEXT(T1,je*1.2,'+B'),COLOR00ffff;
- DRAWTEXT(T2,je*1.2,'-S'),COLORffffff;
- DRAWTEXTREL(10,5,'证券代码:'+STKLABEL+' 证券名称:'+STKNAME+''),ColorFF00FF;
三、通达信源码
- 预测量:IF(CURRBARSCOUNT=1 AND PERIOD=5,VOL*240/FROMOPEN,DRAWNULL),NODRAW;
- STICKLINE(CURRBARSCOUNT=1 AND PERIOD=5,预测量,0,4,-1),COLOR00FF00;
- JE:=VOL;JJ:=(HIGH+LOW+CLOSE)/3;QJ0:=VOL/IF(HIGH=LOW,4,HIGH-LOW);
- 主买:=(QJ0*(JJ-MIN(CLOSE,OPEN)));
- 主卖:=(QJ0*(MIN(OPEN,CLOSE)-LOW));
- 散买:=(QJ0*(HIGH-MAX(OPEN,CLOSE)));
- 散卖:=(QJ0*(MAX(CLOSE,OPEN)-JJ));
- 庄净入:IF((主买-主卖)>0,主买-主卖,0)COLORRED,NODRAW;
- 庄净出:IF((主买-主卖)<0,主买-主卖,0)COLORGREEN,NODRAW;
- 散净入:IF((散买-散卖)>0,散买-散卖,0)COLORGREEN,NODRAW;
- 散净出:IF((散买-散卖)<0,散买-散卖,0)COLORRED,NODRAW;
- STICKLINE(H=L AND C<REF(C,1),0,JE,3,0),COLOR00AA00;
- STICKLINE(H=L AND C<REF(C,1),0,JE,1.5,0),COLOR00CC00;
- STICKLINE(H=L AND C<REF(C,1),0,JE,1,0),COLOR00EE00;
- STICKLINE(H=L AND C>REF(C,1),0,JE,3,0),COLOR0000AA;
- STICKLINE(H=L AND C>REF(C,1),0,JE,1.5,0),COLOR0000CC;
- STICKLINE(H=L AND C>REF(C,1),0,JE,1,0),COLOR0000FF;
- STICKLINE(散卖>0,0,主买+主卖+散买+散卖,3,0),COLORAA0000;
- STICKLINE(散卖>0,0,主买+主卖+散买+散卖,1.5,0),COLORCC0000;
- 散户卖:STICKLINE(散卖>0,0,主买+主卖+散买+散卖,1,0),COLOREE0000;
- STICKLINE(散买>0,0,主买+主卖+散买,3,0),COLORAA00AA;
- STICKLINE(散买>0,0,主买+主卖+散买,1.5,0),COLORCC00CC;
- 散户买:STICKLINE(散买>0,0,主买+主卖+散买,1,0),COLOREE00EE;
- STICKLINE(主卖>0,0,主买+主卖,3,0),COLOR00AA00;
- STICKLINE(主卖>0,0,主买+主卖,1.5,0),COLOR00CC00;
- 主力卖:STICKLINE(主卖>0,0,主买+主卖,1,0),COLOR00EE00;
- STICKLINE(主买>0,0,主买,3,0),COLOR0000AA;
- STICKLINE(主买>0,0,主买,1.5,0),COLOR0000CC;
- 主力买:STICKLINE(主买>0,0,主买,1,0),COLOR0000FF;
- AA:=IF(C>(H+L)/2,JE,0);BB:=IF(C<(H+L)/2,JE,0);
- F1:=SUM(AA,5);F2:=SUM(BB,5);F3:=EMA(F1-F2,3);
- T1:=主买>主卖 AND CROSS(F3,REF(F3,1)) AND F3<0;
- T2:=主卖>主买 AND CROSS(REF(F3,1),F3) AND F3>0;
- DRAWTEXT(T1,JE,'+B'),COLOR00FFFF;
- DRAWTEXT(T2,JE,'-S'),COLORFFFFFF;