最新公告
  • 欢迎您光临九毛八公式指标网www.9m8.cn,本站全新改版试运行,期间内容全部免费,欢迎下载!欢迎加入本站VIP
  • 将这个大智慧板块线改为通达信的

    正文概述    2024-04-14 09:22:00  

    九毛八公式指标

    INPUT:N(70,1,999),M(5,1,120); ZSC:=IF(INBLOCK('工程建筑'),"991002$CLOSE",IF(INBLOCK('电力'),"991003$CLOSE",IF(INBLOCK('计算机'),"991004$CLOSE", IF(INBLOCK('电子信息'),"991006$CLOSE",IF(INBLOCK('房地产'),"991007$CLOSE",IF(INBLOCK('纺织服装'),"991008$CLOSE", IF(INBLOCK('钢铁'),"991009$CLOSE",IF(INBLOCK('供水供气'),"991010$CLOSE",IF(INBLOCK('化工化纤'),"991011$CLOSE", IF(INBLOCK('电器'),"991014$CLOSE",IF(INBLOCK('交通设施'),"991016$CLOSE",IF(INBLOCK('银行类'),"991017$CLOSE", IF(INBLOCK('旅游酒店'),"991018$CLOSE",IF(INBLOCK('煤炭石油'),"991019$CLOSE",IF(INBLOCK('酿酒食品'),"991020$CLOSE", IF(INBLOCK('农林牧渔'),"991021$CLOSE",IF(INBLOCK('商业连锁'),"991023$CLOSE",IF(INBLOCK('建材'),"991024$CLOSE", IF(INBLOCK('其他行业'),"991025$CLOSE",IF(INBLOCK('汽车类'),"991026$CLOSE",IF(INBLOCK('机械'),"991027$CLOSE", IF(INBLOCK('医药'),"991028$CLOSE",IF(INBLOCK('外贸'),"991031$CLOSE",IF(INBLOCK('教育传媒'),"991032$CLOSE", IF(INBLOCK('仪电仪表'),"991033$CLOSE",IF(INBLOCK('有色金属'),"991034$CLOSE",IF(INBLOCK('造纸印刷'),"991035$CLOSE", IF(INBLOCK('券商'),"991036$CLOSE",IF(INBLOCK('电力设备'),"991037$CLOSE",IF(INBLOCK('通信'),"991135$CLOSE", IF(INBLOCK('运输物流'),"991136$CLOSE",IF(INBLOCK('保险'),"991255$CLOSE",0)))))))))))))))))))))))))))))))); ZSH:=IF(INBLOCK('工程建筑'),"991002$HIGH",IF(INBLOCK('电力'),"991003$HIGH",IF(INBLOCK('计算机'),"991004$HIGH", IF(INBLOCK('电子信息'),"991006$HIGH",IF(INBLOCK('房地产'),"991007$HIGH",IF(INBLOCK('纺织服装'),"991008$HIGH", IF(INBLOCK('钢铁'),"991009$HIGH",IF(INBLOCK('供水供气'),"991010$HIGH",IF(INBLOCK('化工化纤'),"991011$HIGH", IF(INBLOCK('电器'),"991014$HIGH",IF(INBLOCK('交通设施'),"991016$HIGH",IF(INBLOCK('银行类'),"991017$HIGH", IF(INBLOCK('旅游酒店'),"991018$HIGH",IF(INBLOCK('煤炭石油'),"991019$HIGH",IF(INBLOCK('酿酒食品'),"991020$HIGH", IF(INBLOCK('农林牧渔'),"991021$HIGH",IF(INBLOCK('商业连锁'),"991023$HIGH",IF(INBLOCK('建材'),"991024$HIGH", IF(INBLOCK('其他行业'),"991025$HIGH",IF(INBLOCK('汽车类'),"991026$HIGH",IF(INBLOCK('机械'),"991027$HIGH", IF(INBLOCK('医药'),"991028$HIGH",IF(INBLOCK('外贸'),"991031$HIGH",IF(INBLOCK('教育传媒'),"991032$HIGH", IF(INBLOCK('仪电仪表'),"991033$HIGH",IF(INBLOCK('有色金属'),"991034$HIGH",IF(INBLOCK('造纸印刷'),"991035$HIGH", IF(INBLOCK('券商'),"991036$HIGH",IF(INBLOCK('电力设备'),"991037$HIGH",IF(INBLOCK('通信'),"991135$HIGH", IF(INBLOCK('运输物流'),"991136$HIGH",IF(INBLOCK('保险'),"991255$HIGH",0)))))))))))))))))))))))))))))))); ZSL:=IF(INBLOCK('工程建筑'),"991002$LOW",IF(INBLOCK('电力'),"991003$LOW",IF(INBLOCK('计算机'),"991004$LOW", IF(INBLOCK('电子信息'),"991006$LOW",IF(INBLOCK('房地产'),"991007$LOW",IF(INBLOCK('纺织服装'),"991008$LOW", IF(INBLOCK('钢铁'),"991009$LOW",IF(INBLOCK('供水供气'),"991010$LOW",IF(INBLOCK('化工化纤'),"991011$LOW", IF(INBLOCK('电器'),"991014$LOW",IF(INBLOCK('交通设施'),"991016$LOW",IF(INBLOCK('银行类'),"991017$LOW", IF(INBLOCK('旅游酒店'),"991018$LOW",IF(INBLOCK('煤炭石油'),"991019$LOW",IF(INBLOCK('酿酒食品'),"991020$LOW", IF(INBLOCK('农林牧渔'),"991021$LOW",IF(INBLOCK('商业连锁'),"991023$LOW",IF(INBLOCK('建材'),"991024$LOW", IF(INBLOCK('其他行业'),"991025$LOW",IF(INBLOCK('汽车类'),"991026$LOW",IF(INBLOCK('机械'),"991027$LOW", IF(INBLOCK('医药'),"991028$LOW",IF(INBLOCK('外贸'),"991031$LOW",IF(INBLOCK('教育传媒'),"991032$LOW", IF(INBLOCK('仪电仪表'),"991033$LOW",IF(INBLOCK('有色金属'),"991034$LOW",IF(INBLOCK('造纸印刷'),"991035$LOW", IF(INBLOCK('券商'),"991036$LOW",IF(INBLOCK('电力设备'),"991037$LOW",IF(INBLOCK('通信'),"991135$LOW", IF(INBLOCK('运输物流'),"991136$LOW",IF(INBLOCK('保险'),"991255$LOW",0)))))))))))))))))))))))))))))))); Var12:=(HHV(HIGH,34)-CLOSE)/(HHV(HIGH,34)-LLV(LOW,34))*100; 能量线:SMA(Var12,3,1)*(-1)+100,colorRED,linethick2; KNX:=SMA(Var12,3,1); MK:=MA(KNX,M); 买点:IF(KNX>N AND CROSS(MK , KNX),50,0),COLORWHITE,LINETHICK1; Var13:=(HHV(ZSH,34)-ZSC)/(HHV(ZSH,34)-LLV(ZSL,34))*100; 行业线:SMA(Var13,3,1)*(-1)+100,colorgreen,linethick1; Var11:=(HHV(INDEXH,34)-INDEXC)/(HHV(INDEXH,34)-LLV(INDEXL,34))*100; 大盘线:SMA(Var11,3,1)*(-1)+100,colorYELLOW,linethick1; 板块:=IFS(INBLOCK('工程建筑'),'工程建筑',IFS(INBLOCK('电力'),'电力',IFS(INBLOCK('计算机'),'计算机',IFS(INBLOCK('电子信息'),'电子信息', IFS(INBLOCK('房地产'),'房地产',IFS(INBLOCK('纺织服装'),'纺织服装',IFS(INBLOCK('钢铁'),'钢铁',IFS(INBLOCK('供水供气'),'供水供气', IFS(INBLOCK('化工化纤'),'化工化纤',IFS(INBLOCK('电器'),'电器',IFS(INBLOCK('交通设施'),'交通设施',IFS(INBLOCK('银行类'),'银行类', IFS(INBLOCK('旅游酒店'),'旅游酒店',IFS(INBLOCK('煤炭石油'),'煤炭石油',IFS(INBLOCK('酿酒食品'),'酿酒食品',IFS(INBLOCK('农林牧渔'),'农林牧渔', IFS(INBLOCK('商业连锁'),'商业连锁',IFS(INBLOCK('建材'),'建材',IFS(INBLOCK('其他行业'),'其他行业',IFS(INBLOCK('汽车类'),'汽车类', IFS(INBLOCK('机械'),'机械',IFS(INBLOCK('医药'),'医药',IFS(INBLOCK('外贸'),'外贸',IFS(INBLOCK('教育传媒'),'教育传媒',IFS(INBLOCK('仪电仪表'),'仪电仪表', IFS(INBLOCK('有色金属'),'有色金属',IFS(INBLOCK('造纸印刷'),'造纸印刷',IFS(INBLOCK('券商'),'券商',IFS(INBLOCK('电力设备'),'电力设备', IFS(INBLOCK('通信'),'通信',IFS(INBLOCK('运输物流'),'运输物流',IFS(INBLOCK('保险'),'保险','')))))))))))))))))))))))))))))))); DRAWTEXTABS(10,5,'所属: '+板块+'指数'),COLORYELLOW;

    公式模块:

    ZSC1:=IF(STRCMP(HYBLOCK,'煤炭'),"880301$C",

    IF(STRCMP(HYBLOCK,'电力'),"880305$C", IF(STRCMP(HYBLOCK,'石油'),"880310$C", IF(STRCMP(HYBLOCK,'钢铁'),"880318$C", IF(STRCMP(HYBLOCK,'有色'),"880324$C", IF(STRCMP(HYBLOCK,'化纤'),"880330$C", IF(STRCMP(HYBLOCK,'化工'),"880335$C", IF(STRCMP(HYBLOCK,'建材'),"880344$C", IF(STRCMP(HYBLOCK,'造纸'),"880350$C", IF(STRCMP(HYBLOCK,'矿物制品'),"880351$C", IF(STRCMP(HYBLOCK,'日用化工'),"880355$C", IF(STRCMP(HYBLOCK,'农林牧渔'),"880360$C", IF(STRCMP(HYBLOCK,'纺织'),"880367$C", IF(STRCMP(HYBLOCK,'服饰'),"880367$C", IF(STRCMP(HYBLOCK,'食品饮料'),"880372$C", IF(STRCMP(HYBLOCK,'酿酒'),"880380$C", IF(STRCMP(HYBLOCK,'家用电器'),"880387$C", IF(STRCMP(HYBLOCK,'摩托车'),"880390$C", IF(STRCMP(HYBLOCK,'汽车服务'),"880390$C", IF(STRCMP(HYBLOCK,'汽车配件'),"880390$C", IF(STRCMP(HYBLOCK,'汽车整车'),"880390$C", IF(STRCMP(HYBLOCK,'医疗保健'),"880398$C", IF(STRCMP(HYBLOCK,'家居用品'),"880399$C", IF(STRCMP(HYBLOCK,'医药'),"880400$C",0)))))))))))))))))))))))); ZSC2:=IF(STRCMP(HYBLOCK,'商业连锁'),"880406$C", IF(STRCMP(HYBLOCK,'商贸代理'),"880414$C", IF(STRCMP(HYBLOCK,'传媒娱乐'),"880418$C", IF(STRCMP(HYBLOCK,'广告包装'),"880421$C", IF(STRCMP(HYBLOCK,'文教休闲'),"880422$C", IF(STRCMP(HYBLOCK,'酒店餐饮'),"880423$C", IF(STRCMP(HYBLOCK,'旅游'),"880424$C", IF(STRCMP(HYBLOCK,'航空航天'),"880430$C", IF(STRCMP(HYBLOCK,'船舶'),"880431$C", IF(STRCMP(HYBLOCK,'运输设备'),"880432$C", IF(STRCMP(HYBLOCK,'通用机械'),"880437$C", IF(STRCMP(HYBLOCK,'工业机械'),"880440$C", IF(STRCMP(HYBLOCK,'电气设备'),"880446$C", IF(STRCMP(HYBLOCK,'工程机械'),"880447$C", IF(STRCMP(HYBLOCK,'电器仪表'),"880448$C", IF(STRCMP(HYBLOCK,'电信运营'),"880452$C", IF(STRCMP(HYBLOCK,'公共交通'),"880453$C", IF(STRCMP(HYBLOCK,'水务板块'),"880454$C", IF(STRCMP(HYBLOCK,'燃气供热'),"880455$C", IF(STRCMP(HYBLOCK,'环境保护'),"880456$C",0)))))))))))))))))))); ZSC3:=IF(STRCMP(HYBLOCK,'运输服务'),"880459$C", IF(STRCMP(HYBLOCK,'仓储物流'),"880464$C", IF(STRCMP(HYBLOCK,'交通设施'),"880465$C", IF(STRCMP(HYBLOCK,'银行类'),"880471$C", IF(STRCMP(HYBLOCK,'证券类'),"880472$C", IF(STRCMP(HYBLOCK,'保险类'),"880473$C", IF(STRCMP(HYBLOCK,'信托类'),"880474$C", IF(STRCMP(HYBLOCK,'建筑'),"880476$C", IF(STRCMP(HYBLOCK,'房地产'),"880482$C", IF(STRCMP(HYBLOCK,'电脑设备'),"880489$C", IF(STRCMP(HYBLOCK,'通信设备'),"880490$C", IF(STRCMP(HYBLOCK,'半导体'),"880491$C", IF(STRCMP(HYBLOCK,'元器件'),"880492$C", IF(STRCMP(HYBLOCK,'软件服务'),"880493$C", IF(STRCMP(HYBLOCK,'互联网'),"880494$C", IF(STRCMP(HYBLOCK,'综合类'),"880497$C",0)))))))))))))))); ZSC:=ZSC1+ZSC2+ZSC3; VAR12:=(HHV(HIGH,34)-CLOSE)/(HHV(HIGH,34)-LLV(LOW,34))*100; 能量线:SMA(VAR12,3,1)*(-1)+100,COLORRED,LINETHICK2; KNX:=SMA(VAR12,3,1); MK:=MA(KNX,5); 买点:IF(KNX>70 AND crOSS(MK,KNX),50,0),COLORWHITE,LINETHICK1; VAR13:=(HHV(ZSC,34)-ZSC)/(HHV(ZSC,34)-LLV(ZSC,34))*100; 行业线:SMA(VAR13,3,1)*(-1)+100,COLORGREEN,LINETHICK1; VAR11:=(HHV(INDEXH,34)-INDEXC)/(HHV(INDEXH,34)-LLV(INDEXL,34))*100; 大盘线:SMA(VAR11,3,1)*(-1)+100,COLORYELLOW,LINETHICK1; DRAWTEXT_FIX(ISLASTBAR,0.005,0,0,STRCAT(STRCAT('所属: [ ',HYBLOCK),'行业指数 ]')),COLORGREEN;

    九毛八公式指标,一个优质的公式指标平台!
    九毛八公式指标 » 将这个大智慧板块线改为通达信的 加入收藏