飞狐中国牛熊均线主图公式源码是什么?
2016-4-22 15:26:26 股票入门 http://rumen.southmoney.com
飞狐中国牛熊均线主图公式源码是什么?附:飞狐看庄均线副图指标指标公式 南方财富网小编为您提供
【飞狐中国牛熊均线主图公式源码】
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">{NX_CHINA.JLJ 牛熊均线.JLJ
飞狐版.简化加强版.版权所有JIP.GEMLING OR 见凌见
参数名 最小 最大 缺省
Y1周期 6.0 27.0 8 (缺省值可能适合深证成指)默认8,9,10,12,14,16,17,20自选;
MA_EMA 0 1 1 (缺省值使用MA函数均线)
校验线 0 1 0 (缺省值关闭校验线)}
{以下正文}
N:=Y1周期;
M:=MA_EMA;
CC:=CLOSE;{以下均线可以按个人喜好在“:”后用“=”屏蔽或放回}
Y/2:=IF(M,MA(CC,N/2),EMA(CC,N/2)),COLORWHITE;
Y1:IF(M,MA(CC,1*N),EMA(CC,1*N)),COLORYELLOW;
Y2:IF(M,MA(CC,2*N),EMA(CC,2*N)),COLORMAGENTA;
Y3:=IF(M,MA(CC,3*N),EMA(CC,3*N)),COLORGREEN;
Y4:IF(M,MA(CC,4*N),EMA(CC,4*N)),COLORFF9900;
Y6:=IF(M,MA(CC,6*N),EMA(CC,6*N)),COLORFFFF88;
Y9:IF(M,MA(CC,9*N),EMA(CC,9*N)),COLOR3F72CE;
Y13:=IF(M,MA(CC,13*N),EMA(CC,13*N)),COLOR99EBEB;
Y20:=IF(M,MA(CC,20*N),EMA(CC,20*N)),COLORBLUE;
Y40:IF(M,MA(CC,40*N),EMA(CC,40*N)),COLORYELLOW;{对应 NX240GN 校验线}
A:=DATATYPE;{取当前周期状态,飞狐特殊函数}
NX线:IF(A=6,Y20,IF(A=7,Y4,IF(A=8,Y1,IF(A=9,Y/2,
IF(A=10,Y6{多日=10日取Y2,多日=3日约取Y6},
MA(C,25600{453})))))),COLOR1188FF,LINETHICK2;{牛熊运行线}
{以下是校验线定义系统}
NNN:=IF(A=6,120,IF(A=7,24,IF(A=8,6,IF(A=9,2,IF(A=10,40,480)))));
NXH:=IF(校验线,IF(CAPITAL,HHV(MA(HIGH,3),NNN)*0.7,HHV(MA(HIGH,3),NNN)*0.79),
MA(C,25600)),COLORYELLOW,POINTDOT,LINETHICK4;
NXL:=IF(校验线,IF(CAPITAL,LLV(MA(LOW,3),NNN)*1.3,LLV(MA(LOW,3),NNN)*1.21),
MA(C,25600)),COLORBLUE,POINTDOT,LINETHICK4;
牛熊概念:MA((NXH+NXL)/2,3),COLORRED;{牛熊概念线}
NNN1:=IF(A=6,60,IF(A=7,12,IF(A=8,3,IF(A=10,20,IF(A=5,240,IF(A=4,480,480))))));
NXH1:=IF(校验线,IF(CAPITAL,HHV(MA(HIGH,3),NNN1)*0.80,
HHV(MA(HIGH,3),NNN1)*0.86),MA(C,25600));
NXL1:=IF(校验线,IF(CAPITAL,LLV(MA(LOW,3),NNN1)*1.20,
LLV(MA(LOW,3),NNN1)*1.14),MA(C,25600));
NX60GN:MA((NXH1+NXL1)/2,1),COLORWHITE;{60成本概念线}
NNN2:=IF(A=6,30,IF(A=7,6,IF(A=5,120,IF(A=4,240,480))));
NXH2:=IF(校验线,IF(CAPITAL,HHV(MA(HIGH,3),NNN2)*0.90,
HHV(MA(HIGH,3),NNN2)*0.93),MA(C,25600));
NXL2:=IF(校验线,IF(CAPITAL,LLV(MA(LOW,3),NNN2)*1.10,
LLV(MA(LOW,3),NNN2)*1.07),MA(C,25600));
NX30GN:MA((NXH2+NXL2)/2,1),COLORBLUE;{30成本概念线}
NNN3:=IF(A=6,240,IF(A=7,48,IF(A=8,12,IF(A=10,80,480))));
NXH3:=IF(校验线,IF(CAPITAL,HHV(MA(HIGH,3),NNN3)*0.60,
HHV(MA(HIGH,3),NNN3)*0.72),MA(C,25600));
NXL3:=IF(校验线,IF(CAPITAL,LLV(MA(LOW,3),NNN3)*1.40,
LLV(MA(LOW,3),NNN3)*1.28),MA(C,25600));
NX240GN:MA((NXH3+NXL3)/2,1),COLORYELLOW;{240成本概念线}
附:【飞狐看庄均线副图指标指标公式】
看庄均线
投机线:ma(c,5)-ma(c,200),colorwhite;
操作线:ma(c,21)-ma(c,200)coloryellow;
底线:ma(c,55)-ma(c,200),colorgreen;
0,pointDOT;
STICKLINE( c>O,h-ma(c,200) ,l-ma(c,200) ,1 ,0 ),COLORred;
STICKLINE( c>O,C-ma(c,200) ,O-ma(c,200) ,4 ,0 ),COLORred;
STICKLINE( O>=C,h-ma(c,200) ,l-ma(c,200) ,1 ,0 ),COLORcyan;
STICKLINE( O>=C,O-ma(c,200) ,C-ma(c,200) ,4 ,0 ),COLORcyan;
更多飞狐指标公式相关资讯请关注南方财富网
股票入门声明:资讯来源于互联网,属作者个人观点,仅供投资者参考,并不构成投资建议。投资者据此操作,风险自担。