您现在的位置:好股网 >> 股票公式 >> 飞狐股票公式 >> 一键转帖:中国牛熊均线 主图源码

中国牛熊均线 主图源码


指标功能:[B]国产软件[/B]
指标类型:简体中文
所需积分:0
推荐星级:
授权方式:共享版
公式大小:0 Bytes
更新时间:2012-08-29 08:20:00
公式简介:

{飞狐版.简化加强版}
{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成本概念线}


 


 


[url=http://www.goodgupiao.com/gupiaogongshi/22264.html][B]中国牛熊均线 主图源码[/B][/url]