设为首页加入收藏

微信关注
官方微信号:71712643
加关注获取每日精选资讯
股票入门欢迎您加入
广告服务联系我们网站地图

股票的公式有哪些?通达信PDI上穿20线选股指标公式

2016-6-6 15:45:39 股票入门 http://rumen.southmoney.com

股票的公式有哪些通达信PDI上穿20线选股指标公式 附:通达信量价关系副图指标公式  南方财富网小编为您提供


【通达信PDI上穿20线选股指标公式】

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">{说明:DMI指标中用PDI上穿20线做一个选股}

N:=14;

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);

PDI:=DMP*100/MTR;

XG:CROSS(PDI,20);

附:【通达信量价关系副图指标公式】

 DRAWGBK(C>0, RGB(0,108,108),RGB(88,0,0),0,11,0);

成交额:AMOUNT/100000000,NODRAW;

主力:(LARGEINTRDVOL-LARGEOUTTRDVOL)*(11)/100,NODRAW;

大单:主力/成交额/100,NODRAW;

连红:BARSLASTCOUNT(主力>0),COLORRED,NODRAW;

预量:=IF(CURRBARSCOUNT=1 AND PERIOD=5,VOL*240/FROMOPEN,DRAWNULL),NODRAW;

STICKLINE(CURRBARSCOUNT=1 AND PERIOD=5,预量,0,3,-1),COLORFFFFFF;

量_价:=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),STICK,COLOREEFFEE;

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*量_价,COLOR13AADD,NODRAW;

买盘:=量_价*(1+JGL_DX)/2,COLOR1133AA,NODRAW;

卖盘:=量_价*(1-JGL_DX)/2,COLORFFFF00,NODRAW;

VAR1:=VOL/((HIGH-LOW)*2-ABS(CLOSE-OPEN));

主动买盘:=IF(CLOSE>OPEN,VAR1*(HIGH-LOW),IF(CLOSE<OPEN,VAR1*((HIGH-OPEN)+(CLOSE-LOW)),VOL/2)),LINETHICK0;

主动卖盘:=IF(CLOSE>OPEN,0-VAR1*((HIGH-CLOSE)+(OPEN-LOW)),IF(CLOSE<OPEN,0-VAR1*(HIGH-LOW),0-VOL/2)),LINETHICK0,COLORGREEN;

净量:=主动买盘+主动卖盘,NODRAW;

STICKLINE(C<O ,0,VOL,3.0,0),COLORFF1100;

STICKLINE(C<O ,0,VOL,2.5,0),COLORFF3300;

STICKLINE(C<O ,0,VOL,2.1,0),COLORFF5500;

STICKLINE(C<O ,0,VOL,1.5,0),COLORFF7700;

STICKLINE(C<O ,0,VOL,0.9,0),COLORFF9900;

STICKLINE(C<O ,0,VOL,0.3,0),COLORFFBB00;

STICKLINE(C=O AND C<REF(C,1),0,VOL,3.0,0),COLOR006000;

STICKLINE(C=O AND C<REF(C,1),0,VOL,2.5,0),COLOR007500; 

STICKLINE(C=O AND C<REF(C,1),0,VOL,2.1,0),COLOR009100;

STICKLINE(C=O AND C<REF(C,1),0,VOL,1.5,0),COLOR00A600;

STICKLINE(C=O AND C<REF(C,1),0,VOL,0.9,0),COLOR00BB00;

STICKLINE(C=O AND C<REF(C,1),0,VOL,0.3,0),COLOR00CC00;

STICKLINE(C=O AND C>REF(C,1),0,VOL,3.0,0),COLOR555555;

STICKLINE(C=O AND C>REF(C,1),0,VOL,2.5,0),COLOR777777;

STICKLINE(C=O AND C>REF(C,1),0,VOL,2.1,0),COLOR999999;

STICKLINE(C=O AND C>REF(C,1),0,VOL,1.5,0),COLORBBBBBB;

STICKLINE(C=O AND C>REF(C,1),0,VOL,0.9,0),COLORDDDDDD;

STICKLINE(C=O AND C>REF(C,1),0,VOL,0.3,0),COLORFFFFFF;

STICKLINE(C>O,0,VOL,3.0,0),COLORFF11FF;

STICKLINE(C>O,0,VOL,2.5,0),COLORFF33FF;

STICKLINE(C>O,0,VOL,2.1,0),COLORFF55FF;

STICKLINE(C>O,0,VOL,1.5,0),COLORFF77FF;

STICKLINE(C>O,0,VOL,0.9,0),COLORFF99FF;

STICKLINE(C>O,0,VOL,0.3,0),COLORFFBBFF;

资金异动:=VOL/MA(VOL,55)*100,COLORYELLOW;

STICKLINE(主动买盘>0,0,主动买盘,3.0,0),COLOR000055;

STICKLINE(主动买盘>0,0,主动买盘,2.5,0),COLOR000077;

STICKLINE(主动买盘>0,0,主动买盘,2.1,0),COLOR000099;

STICKLINE(主动买盘>0,0,主动买盘,1.5,0),COLOR0000BB;

STICKLINE(主动买盘>0,0,主动买盘,0.9,0),COLOR0000DD;

STICKLINE(主动买盘>0,0,主动买盘,0.3,0),COLOR0000FF;

STICKLINE(主动卖盘<0,0,主动卖盘,3.0,0),COLOR006000;

STICKLINE(主动卖盘<0,0,主动卖盘,2.5,0),COLOR007500; 

STICKLINE(主动卖盘<0,0,主动卖盘,2.1,0),COLOR009100;

STICKLINE(主动卖盘<0,0,主动卖盘,1.5,0),COLOR00A600;

STICKLINE(主动卖盘<0,0,主动卖盘,0.9,0),COLOR00BB00;

STICKLINE(主动卖盘<0,0,主动卖盘,0.3,0),COLOR00CC00;

STICKLINE(资金异动>100 ,0,VOL,0.6,0),COLORYELLOW; 

TX80:80,POINTDOT COLORYELLOW;

DX20:20,POINTDOT COLORGREEN;

VAR2:=HHV(HIGH,21);

K: EMA((CLOSE-VAR1)/(VAR2-VAR1)*100,6),COLORRED;

D: EMA(0.667*REF(K,1)+0.333*K,2),COLORGREEN;

VAR3:=LLV(LOW,55);

VAR4:=HHV(HIGH,34);

VAR5:=EMA((CLOSE-VAR3)/(VAR4-VAR3)*100,3);

VAR6:=(K+VAR5)/2;

VAR7:=EMA(0.667*REF(VAR5,1)+0.333*K,2);

VAR8:=EMA(VAR6,5);

VAR9:EMA(0.667*REF(VAR8,1)+0.333*VAR8,2);

DRAWICON(LONGCROSS(D,K,0.1),D,2),COLORRED;

DRAWICON(LONGCROSS(K,D,0.1),K,1),COLORGREEN;    

更多股票公式相关资讯请关注南方财富网

股票入门声明:资讯来源于互联网,属作者个人观点,仅供投资者参考,并不构成投资建议。投资者据此操作,风险自担。