通达信【V形突破】主图指标 主力强烈做多突破压力价时就是进入的时机 源码

HGW1:=STRCAT(STRCAT('总股本: ',CON2STR(TOTALCAPITAL/1000000,2)),'亿');
HGW2:=STRCAT(STRCAT(' 流通盘: ',CON2STR(CAPITAL/1000000,2)),'亿');
HGW3:=STRCAT(' 全流通: ',CON2STR((CAPITAL/1000000)/(TOTALCAPITAL/1000000),2));
HGW4:=STRCAT(STRCAT(' 流通市值: ',CON2STR((CAPITAL/1000000)*C,2)),'亿');
HGW5:=STRCAT(' 上市日期: ',CON2STR(FINANCE(42),0));
HGW6:=STRCAT('股本市值: ',STRCAT(STRCAT(STRCAT(STRCAT(HGW1,HGW2),HGW3),HGW4),HGW5));
HGW7:=STRCAT('市盈率: ',CON2STR(C/FINANCE(33),2));
HGW8:=STRCAT(' 市销率: ',CON2STR(C/(FINANCE(20)/FINANCE(1)),2));
HGW9:=STRCAT(' 市净率: ',CON2STR(C/FINANCE(34),2));
HGW10:=STRCAT(' 净资收益率: ',CON2STR(FINANCE(33)/FINANCE(34)*100,2));
HGW11:=STRCAT(' 毛利率: ',CON2STR((FINANCE(20)-FINANCE(21))/FINANCE(20)*100,2));
HGW12:=STRCAT(' 净利润率 ',CON2STR(FINANCE(30)/FINANCE(20)*100,2));
HGW13:=STRCAT(' 主营利润率 ',CON2STR(FINANCE(23)/FINANCE(20)*100,2));
HGW14:=STRCAT('当前业绩: ',STRCAT(STRCAT(STRCAT(STRCAT(STRCAT(STRCAT(HGW7,HGW8),HGW9),HGW10),HGW11),HGW12),HGW13));
HGW15:=(FINANCE(11)-FINANCE(15))/FINANCE(10)*1.2;
HGW16:=(FINANCE(31)+FINANCE(17))/FINANCE(10)*1.4;
HGW17:=FINANCE(23)/FINANCE(10)*3.3;
HGW18:=FINANCE(19)/FINANCE(15)*0.6;
HGW19:=FINANCE(20)/FINANCE(15)*0.999;
HGW20:=HGW15+HGW16+HGW17+HGW18+HGW19;
HGW21:=IF(HGW20<1.2,'重警',IF(HGW20>=1.2 AND HGW20<2.6,'轻警','无警'));
HGW22:=STRCAT('财务预警: ',STRCAT(HGW21,STRCAT('-Z值: ',CON2STR(HGW20,3))));
HGW23:=STRCAT(' 优质资产率: ',CON2STR((FINANCE(19)-FINANCE(22)-FINANCE(27))/FINANCE(19),2));
HGW24:=STRCAT(' 现金负债比: ',CON2STR(FINANCE(25)/FINANCE(15),3));
HGW25:=STRCAT('风险系数: ',STRCAT(STRCAT(HGW22,HGW23),HGW24));
DRAWTEXT_FIX(ISLASTBAR,0.005,0.01,0,HGW25),COLOR888888;
DRAWTEXT_FIX(ISLASTBAR,0.005,0.06,0,HGW14),COLOR888888;
DRAWTEXT_FIX(ISLASTBAR,0.005,0.115,0,HGW6),COLOR888888;
HGW26:=LLVBARS(L,60);
HGW27:=BARSLAST(CURRBARSCOUNT=CONST(HGW26)+1);
HGW28:=FINDHIGHBARS(H,HGW26+1,60,1);
突破线:DRAWLINE(CURRBARSCOUNT=CONST(HGW28)+1,H,ISLASTBAR,REF(H,HGW28),0),COLORFFFFFF,LINETHICK2;
HGW29:=BARSLAST(CURRBARSCOUNT=CONST(HGW28)+1);
DRAWLINE(HGW29=0,H,HGW27=0,L,0),COLORFF8000,LINETHICK2;
HGW30:=IF(C>O OR (C=O AND C>=REF(C,1)),VOL,0);
HGW31:=IF(C<O OR (C=O AND C<REF(C,1)),VOL,0);
HGW32:=SUM(HGW30,HGW27)/SUM(HGW31,HGW27);
HGW33:=COUNT(CROSS(C>=突破线,0.5),HGW27+1)=1 AND CROSS(C>=突破线,0.5) AND HGW32>1.5;
DRAWICON(HGW33,L,9);
DRAWTEXT(HGW33,L*0.98,'←突破'),COLORYELLOW;
STICKLINE(HGW33,C,O,2,0),COLORYELLOW;
STICKLINE(HGW33,H,L,0,0),COLORYELLOW;
DRAWTEXT(HGW27=0,L*0.98,'←V型底'),COLORYELLOW;
HGW34:=BARSLAST(CROSS(C,REF(H,HGW29)));
HGW35:=C/REF(H,HGW29);
HGW36:=BARSLAST(HGW35=HHV(HGW35,HGW34+1));
HGW37:=(C-REF(C,HGW36+1))/REF(C,HGW36+1)*100;
HGW38:=L/REF(H,HGW29);
HGW39:=HGW37<-8 AND HGW38<1.075 AND MIN(C,O)*1.005>=REF(H,HGW29);
HGW40:=BARSLAST(COUNT(HGW39,HGW34+1)=1 AND HGW39);
股朋指标网:=BACKSET(HGW40=0,HGW36+1);
指标平台:=BARSLAST(CROSS(股朋指标网=1,0.5));
HGW66:=REFX(HGW37,BARSNEXT(HGW40=0));
DRAWICON(CROSS(HGW40=0,0.5),L*0.99,1);
DRAWTEXT(CROSS(HGW40=0,0.5),L*0.980,'←回踩'),COLORYELLOW;
DRAWLINE(HGW34=0,REF(H,HGW29),指标平台=0,REF(H,指标平台),0),DOTLINE,COLORYELLOW;
DRAWLINE(指标平台=0,REF(H,指标平台),HGW40=0,REF(H,HGW29),0),DOTLINE,COLORYELLOW;
DRAWTEXT(HGW29=0,REF(H,HGW29)*1.05,VARCAT(VARCAT('压力价:',VAR2STR(REF(H,HGW29),2)),'元'))COLORYELLOW;
DRAWLINE(指标平台=0,REF(H,指标平台)*1.05,指标平台=10,REF(H,指标平台)*1.05,0),COLORWHITE,LINETHICK3;
DRAWTEXT(指标平台=0,REF(H,指标平台)*1.01,VARCAT(VARCAT('信号处跌幅:',VAR2STR(HGW66,2)),'%'))COLORYELLOW;



未来函数检测结果如下:
该公式包含未来函数:BACKSET
该公式包含未来函数:CAPITAL
该公式包含未来函数:FINANCE
该公式包含未来函数:DHIGH
该公式包含未来函数:BARSNEXT
该公式包含未来函数:REFX

解密、定制、编写股票指标请联系QQ或微信同号:88652583
相关股票指标公式

HGW1:=STRCAT(STRCAT('总股本: ',CON2STR(TOTAL当前流通股本/1000000,2)),'亿')
HGW2:=STRCAT(STRCAT(' 流通盘: ',CON2STR(当前流通股本/1000000,2)),'亿')
HGW3:=STRCAT(' 全流通: ',CON2STR((当前流通股本/1000000)/(TOTAL当前流通股本/1000000),2))
HGW4:=STRCAT(STRCAT(' 流通市值: ',CON2STR((当前流通股本/1000000)*C,2)),'亿')
HGW5:=STRCAT(' 上市日期: ',CON2STR(FINANCE(42),0))
HGW6:=STRCAT('股本市值: ',STRCAT(STRCAT(STRCAT(STRCAT(HGW1,HGW2),HGW3),HGW4),HGW5))
HGW7:=STRCAT('市盈率: ',CON2STR(C/FINANCE(33),2))
HGW8:=STRCAT(' 市销率: ',CON2STR(C/(FINANCE(20)/FINANCE(1)),2))
HGW9:=STRCAT(' 市净率: ',CON2STR(C/FINANCE(34),2))
HGW10:=STRCAT(' 净资收益率: ',CON2STR(FINANCE(33)/FINANCE(34)*100,2))
HGW11:=STRCAT(' 毛利率: ',CON2STR((FINANCE(20)-FINANCE(21))/FINANCE(20)*100,2))
HGW12赋值:STRCAT(' 净利润率 ',CON2STR(FINANCE(30)/FINANCE(20)*100,2))
HGW13赋值:STRCAT(' 主营利润率 ',CON2STR(FINANCE(23)/FINANCE(20)*100,2))
HGW14:=STRCAT('当前业绩: ',STRCAT(STRCAT(STRCAT(STRCAT(STRCAT(STRCAT(HGW7,HGW8),HGW9),HGW10),HGW11),HGW12),HGW13))
HGW15赋值:(FINANCE(11)-FINANCE(15))/FINANCE(10)*1.2
HGW16赋值:(FINANCE(31)+FINANCE(17))/FINANCE(10)*1.4
HGW17赋值:FINANCE(23)/FINANCE(10)*3.3
HGW18赋值:FINANCE(19)/FINANCE(15)*0.6
HGW19赋值:FINANCE(20)/FINANCE(15)*0.999
HGW20赋值:HGW15+HGW16+HGW17+HGW18+HGW19
HGW21赋值:IF(HGW20<1.2,'重警',IF(HGW20>=1.2 AND HGW20<2.6,'轻警','无警'))
HGW22:=STRCAT('财务预警: ',STRCAT(HGW21,STRCAT('-Z值: ',CON2STR(HGW20,3))))
HGW23:=STRCAT(' 优质资产率: ',CON2STR((FINANCE(19)-FINANCE(22)-FINANCE(27))/FINANCE(19),2))
HGW24:=STRCAT(' 现金负债比: ',CON2STR(FINANCE(25)/FINANCE(15),3))
HGW25:=STRCAT('风险系数: ',STRCAT(STRCAT(HGW22,HGW23),HGW24))
当满足条件ISLASTBAR时,在横轴0.005纵轴0.01位置书写文字
当满足条件ISLASTBAR时,在横轴0.005纵轴0.06位置书写文字
当满足条件ISLASTBAR时,在横轴0.005纵轴0.115位置书写文字
HGW26赋值:LLVBARS(L,60)
HGW27赋值:上次 到最后交易的周期=CONST(HGW26距今天数+1)
HGW28赋值:FIND最高价BARS(H,HGW26+1,60,1)
输出突破线:DRAWLINE( 到最后交易的周期=CONST(HGW28)+1,H,ISLASTBAR,HGW28日前的H,0),COLORFFFFFF, 线宽为2
HGW29赋值:上次 到最后交易的周期=CONST(HGW28距今天数+1)
DRAWLINE(HGW29=0,H,HGW27=0,L,0),COLORFF8000, 线宽为2
HGW30赋值:IF(C>O OR (C=O AND C>=1日前的C),成交量,0)
HGW31赋值:IF(C HGW32赋值:HGW27的HGW30日累和/HGW27的HGW31日累和
HGW33赋值:统计HGW27+1日满足C>=突破线上穿0.5的天数=1 AND C>=突破线上穿0.5 AND HGW32>1.5
当满足条件HGW33时,在L和9之间画图标
当满足条件HGW33时,在L*0.98和'←突破'位置书写文字
当满足条件HGW33时,在C和O之间画柱状线
当满足条件HGW33时,在H和L之间画柱状线
当满足条件HGW27=0时,在L*0.98和'←V型底'位置书写文字
HGW34赋值:上次CROSS(C,HGW29日前的H距今天数)
HGW35赋值:C/HGW29日前的H
HGW36赋值:上次HGW35=HGW34+1日内HGW35最高值距今天数
HGW37赋值:(C-HGW36+1日前的C)/HGW36+1日前的C*100
HGW38赋值:L/HGW29日前的H
HGW39赋值:HGW37<-8 AND HGW38<1.075 AND C和O的较小值*1.005>=HGW29日前的H
HGW40赋值:上次统计HGW34+1日满足HGW39的天数=1 AND HGW39距今天数
股朋指标网赋值:BACKSET(HGW40=0,HGW36+1)
指标平台赋值:上次股朋指标网=1上穿0.5距今天数
HGW66赋值:REFX(HGW37,BARSNEXT(HGW40=0))
DRAWICON(HGW40=0上穿0.5,L*0.99,1)
DRAWTEXT(HGW40=0上穿0.5,L*0.980,'←回踩'),画黄色
DRAWLINE(HGW34=0,HGW29日前的H,指标平台=0,指标平台日前的H,0),DOTLINE,画黄色
DRAWLINE(指标平台=0,指标平台日前的H,HGW40=0,HGW29日前的H,0),DOTLINE,画黄色
DRAWTEXT(HGW29=0,HGW29日前的H*1.05,VARCAT(VARCAT('压力价:',VAR2STR(HGW29日前的H,2)),'元'))画黄色
DRAWLINE(指标平台=0,指标平台日前的H*1.05,指标平台=10,指标平台日前的H*1.05,0),画白色, 线宽为3
DRAWTEXT(指标平台=0,指标平台日前的H*1.01,VARCAT(VARCAT('信号处跌幅:',VAR2STR(HGW66,2)),'%'))画黄色

指标安装下载帮助  |   联系我们  |  指标公式网  |  指标网   |  指标公式  |   加入收藏   |  设为主页

@2005-2023 浙ICP备2024071487号-2 指标公式网别名指标网均来源互联网收集整理,如不慎侵犯了你的权益,请联系我们告知,我们将做删除处理
免责声明:指标公式网所有指标公式及文章由网络收集,不保障实时性和真实性, 仅供学习研究并不构成投资建议,请勿以此为依据进行股票交易,由此引起的投资亏损与本站无关。
QQ:88652583 微信 88652583
sitemap站点地图