设为首页加入收藏

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

飞狐安全MACD公式源码是什么?

2016-4-22 15:27:51 股票入门 http://rumen.southmoney.com

飞狐安全MACD公式源码是什么?附:飞狐KDJ周日月同一天金叉指标公式 南方财富网小编为您提供


【飞狐安全MACD公式源码】

均价:=(2*C+(C+H+L+O)/4+O)/4;
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">R:=(2*L+3*均价)/5;R1:=(2*H+3*均价)/5;
kX:=(R+R1)/2;
YCZXH:=(MA(HHV(R,1),5)+MA(HHV(R,2),13)+MA(HHV(R,3),21)+MA(HHV(R,4),29))/4;
YCZXL:=(MA(LLV(R,1),5)+MA(LLV(R,2),13)+MA(LLV(R,3),21)+MA(LLV(R,4),29))/4;
SMH:=EMA(YCZXH,17);SML:=EMA(YCZXL,17);
{线差}
AM:=(4*R+3*REF(r,1)+2*REF(r,2)+REF(r,3))/10;
DF:=AM-SMH;DFM:=EMA(DF,3);
KF:=AM-SML;KFM:=EMA(KF,3);
ZDF1:=MAX(DFM,0);ZDF2:=EMA(ZDF1,3);ZDF3:=EMA(ZDF2,7);
ZKF1:=-MIN(KFM,0);ZKF2:=EMA(ZKF1,3);ZKF3:=EMA(ZKF2,7);
ABSDK:=MAX(ZDF2,ZKF2);ABSDKX:=max(MAX(ABSDK,ZDF3),ZKF3);
{---------------------【图】---------------------}
{显示方法一}
STICKLINE(ZKF3>ZKF2,-ZKF2,-ZKF3,8,1),COLOR202020,COLOR6600FF;
STICKLINE(ZDF3>ZDF2,ZDF2,ZDF3,8,1),COLOR202020,COLORYELLOW;
STICKLINE(ZDF2>ZKF2,0,ZDF2,8,1),COLOR460046,COLORRED;
STICKLINE(ZDF2<ZKF2,0,-ZKF2,8,1),COLOR800000,COLORGRAY;
STICKLINE(ZDF2>ZKF2,0,ZDF2,1,1),COLOR790079,COLORMAGENTA;
STICKLINE(ZDF2<ZKF2,0,-ZKF2,1,1),COLORFF0000;
{显示方法二}
STICKLINE(ZKF3>ABSDK,ABSDK,ZKF3,4,0),COLOR202020,COLORMAGENTA;
STICKLINE(ZDF3>ABSDK,ABSDK,ZDF3,4,0),COLOR202020,COLOR00bb00;
STICKLINE(ZDF2>ZKF2,0,ZDF2,4,1),COLOR460046,COLORWHITE;
STICKLINE(ZDF2<ZKF2,0,ZKF2,4,1),COLOR800000,COLORAAAA00;
STICKLINE(ZDF2>ZKF2,0,ZDF2,1,1),COLOR790079,COLORFFC0FF;
STICKLINE(ZDF2<ZKF2,0,ZKF2,1,1),COLORFF0000;

附:【飞狐KDJ周日月同一天金叉指标公式】

var1:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
Var2:=SMA(Var1,8,1);
Var3:=SMA(Var2,5,1);
var4:=stkindi('','KDJ.K',0,7);
var5:=stkindi('','KDJ.D',0,7);
var6:=stkindi('','KDJ.K',0,8);
var7:=stkindi('','KDJ.D',0,8);
日金叉:IF(CROSS(Var2,Var3),0.5,0);
周金叉:IF(CROSS(Var4,Var5),0.9,0),linethick2;
月金叉:IF(CROSS(Var6,Var7),1,0),linethick2;
共震:STICKLINE(COUNT((日金叉 and 周金叉 or 日金叉 and 月金叉),10)>=1,0,1,5,0),colorred;

更多飞狐指标公式相关资讯请关注南方财富网

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