设为首页加入收藏

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

飞狐MACD金叉日K线上穿30日均线指标公式是什么?

2016-4-25 11:19:42 股票入门 http://rumen.southmoney.com

飞狐MACD金叉日K线上穿30日均线指标公式是什么?附:飞狐骑上大黑马公式源码  南方财富网小编为您提供


【飞狐MACD金叉日K线上穿30日均线指标公式】

m30:=ma(c,30);
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">DIFF:(EMA(CLOSE,12) - EMA(CLOSE,26));
DEA:EMA(DIFF,9);
STICKLINE(CROSS(DIFF,DEA)and CROSS(c,m30),o,c,6,0),colorred;
STICKLINE(CROSS(DEA,DIFF)and CROSS(m30,c),o,c,6,0),color00ff00;

附:【飞狐骑上大黑马公式源码】

{骑上大黑马-尹大哥作品【一不小心,】【骑上大黑马】}
input:WS(0,0,9);//WS是N的尾数,WS=0,尾数,0~9之间整数,可调节参数
DRAWGBK(DATE>900101,COLORRGB(95,95,95),COLORRGB(0,0,0),1);
RSV:=(CLOSE-LLV(LOW,15))/(HHV(HIGH,15)-LLV(LOW,15))*100;
K:=(SMA(RSV,10,1));
D:=(SMA(K,5,1));
KK:=INTPART(SMA(RSV,10,1));
DD:=INTPART(SMA(K,5,1));
N:KK+DD,LINETHICK,COLORGREEN;
A:KK-DD,LINETHICK,COLORWHITE;
A1:REF(KK-DD,1),LINETHICK,COLORCYAN;A2:=REF(KK-DD,2);
STICKLINE(N<25,-25,-15,10,0),ALIGN0,linethick3,COLORYELLOW;x:=SYSPARAM(2)=BARPOS;
k:=(SYSPARAM(3)-SYSPARAM(2))/110;
x1:=SYSPARAM(2)+ROUND(12*k)=BARPOS;
x2:=SYSPARAM(2)+ROUND(28*k)=BARPOS;
x3:=SYSPARAM(2)+ROUND(46*k)=BARPOS;
x4:=SYSPARAM(2)+ROUND(62*k)=BARPOS;
x5:=SYSPARAM(2)+ROUND(80*k)=BARPOS;
x6:=SYSPARAM(2)+ROUND(103*k)=BARPOS;
VERTLINE(x or x1 or x2 or x3 or x4 or x5 or x6 ),colorgray;
{表格横线}
DRAWLINE(x,-20,x6,-20,0),colorgray;
DRAWLINE(x,14,x6,14,0),colorgray;
DRAWLINE(x,49,x6,49,0),colorgray;
DRAWLINE(x,83,x6,83,0),colorgray;
DRAWLINE(x,120,x6,120,0),colorgray;
{卖点}
卖:=7*SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*30,4,1)
-3*SMA(SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*30,4,1),3,1)
-SMA(SMA(SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*30,4,1),3,1),2,1);
{-----------------【图解模板】---------------------}
尾数:MOD(n,10),LINETHICK,COLORWHITE;
N的尾数:IF(尾数=WS,0,1),LINETHICK,COLORWHITE;
{信号}
STICKLINE(尾数=WS,38,-20,5,0),COLORGRAY;DRAWICON(N<15,-20,1),ALIGN0;DRAWICON(A1=0,-20,10),ALIGN0;DRAWICON((A>8 and A1>=0 and A2<0),-20,6),ALIGN0;
DRAWICON(A>8 and A1<-8,-20,4),ALIGN0;xx1:=REF(N,3); xx2:=REF(N,2); xx3:=REF(N,1); xx4:=N;
DRAWTEXT(x,108,' (N值) '),COLORGREEN;//------------------
DRAWTEXT(x1,108,' 前三天 = '+NUMTOSTR(xx1[SYSPARAM(1)],0)),COLORGREEN; 
DRAWTEXT(x2,108,' 前二天 = '+NUMTOSTR(xx2[SYSPARAM(1)],0)),COLORGREEN; 
DRAWTEXT(x3,108,' 前一天 = '+NUMTOSTR(xx3[SYSPARAM(1)],0)),COLORGREEN; 
DRAWTEXT(x4,108,' 当 天 = '+NUMTOSTR(xx4[SYSPARAM(1)],0)),COLORGREEN; 
DRAWTEXT(x5,108,' N值小于25时,要格外注意'),COLORGREEN;
yy1:=REF(A1,3); yy2:=REF(A1,2); yy3:=REF(A1,1); yy4:=A1;
DRAWTEXT(x,71,' (A1值) '),COLORCYAN;//------------------
DRAWTEXT(x1,71,' 前三天 = '+NUMTOSTR(yy1[SYSPARAM(1)],0)),COLORCYAN; 
DRAWTEXT(x2,71,' 前二天 = '+NUMTOSTR(yy2[SYSPARAM(1)],0)),COLORCYAN; 
DRAWTEXT(x3,71,' 前一天 = '+NUMTOSTR(yy3[SYSPARAM(1)],0)),COLORCYAN; 
DRAWTEXT(x4,71,' 前一天 = '+NUMTOSTR(yy4[SYSPARAM(1)],0)),COLORCYAN; 
DRAWTEXT(x5,71,' A1=0 时,很容易大涨'),COLORCYAN;
ZZ1:=REF(kk,3); ZZ2:=REF(kk,2); ZZ3:=REF(kk,1); ZZ4:=kk;
DRAWTEXT(x,38,' (KK值) '),ColorE9A6E9;//-----------------
DRAWTEXT(x1,38,' 前三天 = '+NUMTOSTR(ZZ1[SYSPARAM(1)],0)),ColorE9A6E9;
DRAWTEXT(x2,38,' 前二天 = '+NUMTOSTR(ZZ2[SYSPARAM(1)],0)),ColorE9A6E9;
DRAWTEXT(x3,38,' 前一天 = '+NUMTOSTR(ZZ3[SYSPARAM(1)],0)),ColorE9A6E9;
DRAWTEXT(x4,38,' 当 天 = '+NUMTOSTR(ZZ4[SYSPARAM(1)],0)),ColorE9A6E9;
DRAWTEXT(x5,38,' KK值一天比一天大为正转'),ColorE9A6E9;
WW1:=REF(DD,3); WW2:=REF(DD,2); WW3:=REF(DD,1); WW4:=DD;
DRAWTEXT(x,2,' (DD值) '),COLORYELLOW;//------------------
DRAWTEXT(x1,2,' 前三天 = '+NUMTOSTR(WW1[SYSPARAM(1)],0)),COLORYELLOW;
DRAWTEXT(x2,2,' 前二天 = '+NUMTOSTR(WW2[SYSPARAM(1)],0)),COLORYELLOW;
DRAWTEXT(x3,2,' 前一天 = '+NUMTOSTR(WW3[SYSPARAM(1)],0)),COLORYELLOW;
DRAWTEXT(x4,2,' 当 天 = '+NUMTOSTR(WW4[SYSPARAM(1)],0)),COLORYELLOW;
DRAWTEXT(x5,2,' DD值一天比一天大为正转'),COLORYELLOW;
DRAWTEXT(x6,120,' \n \n \n \n \n \n 【大盘走牛时】\n 【N的尾数相同】\n 【一不小心,】 \n 【就会让你,】\n 【骑上大黑马】'),ColorFF9000;
DRAWTEXT(CROSS(78.89,卖),120,' ★ \n▽'),ALIGN,ColorFF9000;

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

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