飞狐对应大盘K线公式
-
相关简介:{飞狐对应大盘K线-BY 舍得快乐} {用法:请在A股和基金下使用,指数和其它品种不显示数据。基金、中小、创业、沪、深大盘分显,均线采取飞狐的源码8条均线可调显示根数(N),N为0不显示均线} INPUT:P1(5,0,300),P2(10,0,300),P3(20,0,300),P4(30,0,300),P5(60,0,999),P6(120,0,999),P7(240,0,999),P8(360,0,999),N(4,0,8); 创业板:=INBLOCK(创业板); 中小企业:=INBLOC
-
文章来源:股海网作者:股海网发布时间:2014-05-03浏览次数:
{飞狐对应大盘K线-BY 舍得快乐}
{用法:请在A股和基金下使用,指数和其它品种不显示数据。基金、中小、创业、沪、深大盘分显,均线采取飞狐的源码8条均线可调显示根数(N),N为0不显示均线}
INPUT:P1(5,0,300),P2(10,0,300),P3(20,0,300),P4(30,0,300),P5(60,0,999),P6(120,0,999),P7(240,0,999),P8(360,0,999),N(4,0,8);
创业板:=INBLOCK(创业板);
中小企业:=INBLOCK(中小企业);
上证A股:=INBLOCK(上海A股);
深证A股:=INBLOCK(深圳A股);
上海基金:=INBLOCK(上海基金);
深圳基金:=INBLOCK(深圳基金);
开:IF(上海基金=1,"SH000011$OPEN",IF(深圳基金=1,"399305$OPEN",IF(中小企业=1,"399101$OPEN",IF(创业板=1,"399102$OPEN",IF(上证A股=1,"SH000001$OPEN",IF(深证A股=1,"399001$OPEN",0)))))),LINETHICK;
高:IF(上海基金=1,"SH000011$HIGH",IF(深圳基金=1,"399305$HIGH",IF(中小企业=1,"399101$HIGH",IF(创业板=1,"399102$HIGH",IF(上证A股=1,"SH000001$HIGH",IF(深证A股=1,"399001$HIGH",0)))))),LINETHICK;
低:IF(上海基金=1,"SH000011$LOW",IF(深圳基金=1,"399305$LOW",IF(中小企业=1,"399101$LOW",IF(创业板=1,"399102$LOW",IF(上证A股=1,"SH000001$LOW",IF(深证A股=1,"399001$LOW",0)))))),LINETHICK;
收:IF(上海基金=1,"SH000011$CLOSE",IF(深圳基金=1,"399305$CLOSE",IF(中小企业=1,"399101$CLOSE",IF(创业板=1,"399102$CLOSE",IF(上证A股=1,"SH000001$CLOSE",IF(深证A股=1,"399001$CLOSE",0)))))),LINETHICK;
DRAWTEXT(BARPOS=SYSPARAM(2),低,理想论坛の舍得快乐),COLORFFFFCC,ALIGN5;
KLINE(开,高,低,收,0);
WX:=MA(C,0);
M1:MA(收,P1)*IF(N<1,WX,1);
M2:MA(收,P2)*IF(N<2,WX,1);
M3:MA(收,P3)*IF(N<3,WX,1);
M4:MA(收,P4)*IF(N<4,WX,1);
M5:MA(收,P5)*IF(N<5,WX,1);
M6:MA(收,P6)*IF(N<6,WX,1);
M7:MA(收,P7)*IF(N<7,WX,1);
M8:MA(收,P8)*IF(N<8,WX,1);