通达信“W底突破主图”指标公式和选股公式——指标分享...
公式如下:
总股本:=STRCAT(STRCAT('总股本: ',CON2STR(TOTALCAPITAL/1000000,2)),'亿');流通盘:=STRCAT(STRCAT(' 流通盘: ',CON2STR(CAPITAL/1000000,2)),'亿');全流通:=STRCAT(' 全流通: ',CON2STR((CAPITAL/1000000)/(TOTALCAPITAL/1000000),2));市值:=STRCAT(STRCAT(' 流通市值: ',CON2STR((CAPITAL/1000000)*C,2)),'亿');上市日期:=STRCAT(' 上市日期: ',CON2STR(FINANCE(42),0));股本市值:=STRCAT('股本市值: ',STRCAT(STRCAT(STRCAT(STRCAT(总股本,流通盘),全流通),市值),上市日期));市盈率:=STRCAT('市盈率: ',CON2STR(C/FINANCE(33),2));市销率:=STRCAT(' 市销率: ',CON2STR(C/(FINANCE(20)/FINANCE(1)),2));市净率:=STRCAT(' 市净率: ',CON2STR(C/FINANCE(34),2));净资收益率:=STRCAT(' 净资收益率: ',CON2STR(FINANCE(33)/FINANCE(34)*100,2));毛利率:=STRCAT(' 毛利率: ',CON2STR((FINANCE(20)-FINANCE(21))/FINANCE(20)*100,2));净利润率:=STRCAT(' 净利润率 ',CON2STR(FINANCE(30)/FINANCE(20)*100,2));主营利润率:=STRCAT(' 主营利润率 ',CON2STR(FINANCE(23)/FINANCE(20)*100,2));当前业绩:=STRCAT('当前业绩: ',STRCAT(STRCAT(STRCAT(STRCAT(STRCAT(STRCAT(市盈率,市销率),市净率),净资收益率),毛利率),净利润率),主营利润率));X1:=(FINANCE(11)-FINANCE(15))/FINANCE(10)*1.2;X2:=(FINANCE(31)+FINANCE(17))/FINANCE(10)*1.4;X3:=FINANCE(23)/FINANCE(10)*3.3;X4:=FINANCE(19)/FINANCE(15)*0.6;X5:=FINANCE(20)/FINANCE(15)*0.999;Z值:=X1+X2+X3+X4+X5;预警:=IF(Z值<1.2,'重警',IF(Z值>=1.2 AND Z值<2.6,'轻警','无警'));财务预警:=STRCAT('财务预警: ',STRCAT(预警,STRCAT('-Z值: ',CON2STR(Z值,3))));优质资产率:=STRCAT(' 优质资产率: ',CON2STR((FINANCE(19)-FINANCE(22)-FINANCE(27))/FINANCE(19),2));现金负债比:=STRCAT(' 现金负债比: ',CON2STR(FINANCE(25)/FINANCE(15),3));财务系数:=STRCAT('风险系数: ',STRCAT(STRCAT(财务预警,优质资产率),现金负债比));DRAWTEXT_FIX(ISLASTBAR,0.005,0.01,0,财务系数),COLOR888888;DRAWTEXT_FIX(ISLASTBAR,0.005,0.06,0,当前业绩),COLOR888888;DRAWTEXT_FIX(ISLASTBAR,0.005,0.115,0,股本市值),COLOR888888;N:=5;ZZ:=ZIG(3,N);BG1:=TROUGH(3,N,1);BG2:=TROUGH(3,N,2);BF1:=PEAK(3,N,1);BFH:=PEAK(1,N,1);BGB1:=TROUGHBARS(3,N,1);BGB2:=TROUGHBARS(3,N,2);BFB1:=PEAKBARS(3,N,1);BFH2:=FINDHIGH(H,BFB1-2,BFB1+2,1);A1:=(BF1-BG2)/BG2*100<20;A2:=BETWEEN((BG1-BG2)/BG2*100,-3,3);A3:=BFB1-BGB1>=5;A4:=BGB2-BFB1>=5;A5:=CROSS(C,BFH);A6:=VOL>1.5*MA(VOL,10);A7:=BETWEEN((BFH-BF1)/BF1*100,0,5);DRAWTEXT_FIX(C>O,0.01,0.9,0,'微信公众号:彩虹桥投资学习'),COLORRED;AA:=A1 AND A2 AND A3 AND A4 AND A5 AND A6 AND A7;XG:=FILTER(AA,10);DRAWICON(XG,L,9);STICKLINE(XG,H,L,0,0),COLORYELLOW;STICKLINE(XG,O,C,3,0),COLORYELLOW;DRAWTEXT(XG ,L,'←W底突破')COLORYELLOW;DRAWSL(BFH,BFH,0,5,0),COLOR0000FF;
信号简单,就做一个“突破”的选股吧,如果有公式问题,扫描下方二维码联系我。
选股公式如下 :
N:=5;
ZZ:=ZIG(3,N);
BG1:=TROUGH(3,N,1);
BG2:=TROUGH(3,N,2);
BF1:=PEAK(3,N,1);
BFH:=PEAK(1,N,1);
BGB1:=TROUGHBARS(3,N,1);
BGB2:=TROUGHBARS(3,N,2);
BFB1:=PEAKBARS(3,N,1);
A1:=(BF1-BG2)/BG2*100<20;
A2:=BETWEEN((BG1-BG2)/BG2*100,-3,3);
A3:=BFB1-BGB1>=5;
A4:=BGB2-BFB1>=5;
A5:=CROSS(C,BFH);
A6:=VOL>1.5*MA(VOL,10);
A7:=BETWEEN((BFH-BF1)/BF1*100,0,5);
TJ5:=LLV(L,3)=LLV(L,150);
AA:=A1 AND A2 AND A3 AND A4 AND A5 AND A6 AND A7;
XG:FILTER(AA,10) AND TJ5;
测试一下,平仓规则是,不论盈亏,以持股5天后平仓为条件,胜率80%
风险提示:本指标公式仅作为知识分享,模拟测试不构成任何投资建议,不作投资依据。
好人一生平安! 支持一下:lol 很好的东东 好好 学习了 确实不错 找了很久了,多谢! 一切尽在不言中,谢谢! 我是为了获得花花! 感谢楼主分享好资源 thanks for the sharing!
页:
[1]
2