飞狐DMICD公式源码是什么?
2016-4-29 13:26:40 股票入门 http://rumen.southmoney.com
飞狐DMICD公式源码是什么?附:飞狐选股底共振指标公式 南方财富网小编为您提供
【飞狐DMICD公式源码】
input:p(14,2,100),m(6,1,100);
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">TRr := SUM(MAX(MAX(HIGH-LOW,ABS(HIGH-REF(CLOSE,1))),ABS(LOW-REF(CLOSE,1))),P);
HD := HIGH-REF(HIGH,1);
LD := REF(LOW,1)-LOW;
DMP:= SUM(IF(HD>0 AND HD>LD,HD,0),P);
DMM:= SUM(IF(LD>0 AND LD>HD,LD,0),P);
PDI:= DMP*100/TRr;
MDI:= DMM*100/TRr;
ADX6: MA((pdi-mdi)/(MDI+PDI)*100,6),colorwhite,linethick1;
ADX12: MA((pdi-mdi)/(MDI+PDI)*100,12),coloryellow,linethick1;
//ADX26: MA((pdi-mdi)/(MDI+PDI)*100,26),colorcyan,linethick1;
//图示:
0,colorgreen;
fillrgn(adx6>=adx12,adx6,adx12),color3333cc;
fillrgn(adx6<adx12,adx6,adx12),color66cc00;
mpdi:ema(pdi,6),colorred;
mmdi:-ema(mdi,6),colorred;
附:【飞狐选股底共振指标公式】
{}
RV:=(CLOSE-LLV(LOW,90))/(HHV(HIGH,90)-LLV(LOW,90))*100;
RG:=(CLOSE-LLV(LOW,6))/(HHV(HIGH,6)-LLV(LOW,6))*100;
var4:=SMA(RV,5,1);
var5:=SMA(var4,3,1);
KK:=SMA(RG,3,1);
DD:=SMA(KK,3,1);
底共振:cross(var4,var5) and cross(KK,DD) and C>O;
更多飞狐公式源码相关资讯请关注南方财富网
股票入门声明:资讯来源于互联网,属作者个人观点,仅供投资者参考,并不构成投资建议。投资者据此操作,风险自担。