通达信短线狙击手〖LSS支撑压力〗主图指标 适用分钟级别 源码
LSS系统中分钟级别支撑压力线,LSS:-日强度公式,公式是:((收盘价-最低价)x100)(最高价-最低价))=一日强弱指数如果数值大于50,表示后势看涨机率较高。
反之,数值小于50,则表示后势看跌机率较高。
所属板块:=STRCAT('【所属板块】:',STRCAT(STRCAT(' [行业]—',HYBLOCK),STRCAT(' [概念]—',GNBLOCK)));
风格板块:=STRCAT('【风格板块】:',STRCAT(STRCAT(' [地域]—',DYBLOCK),STRCAT(' [风格]—',FGBLOCK)));
总股本:=STRCAT(STRCAT(' 总股本:',CON2STR(TOTALCAPITAL/1000000,2)),'亿');
流通盘:=STRCAT(STRCAT(' 流通盘:',CON2STR(CAPITAL/1000000,2)),'亿');
全流通:=STRCAT(STRCAT(' 流通比:',CON2STR(CAPITAL/TOTALCAPITAL*100,2)),'%');
市值:=STRCAT(STRCAT(' 流通市值:',CON2STR((CAPITAL/1000000)*C,2)),'亿');
股本市值:=STRCAT('【股本市值】:',STRCAT(STRCAT(STRCAT(总股本,流通盘),全流通),市值));
市盈率:=STRCAT(' 市盈率:',CON2STR(C/FINANCE(33),2));
净资收益率:=STRCAT(' 净资收益率:',CON2STR(FINANCE(33)/FINANCE(34)*100,2));
主营利润率:=STRCAT(' 主营利润率:',CON2STR(FINANCE(23)/FINANCE(20)*100,2));
当前业绩:=STRCAT('【当前业绩】:',STRCAT(STRCAT(市盈率,净资收益率),主营利润率));
DRAWTEXT_FIX(ISLASTBAR,0.005,0.02,0,所属板块),COLORYELLOW;
DRAWTEXT_FIX(ISLASTBAR ,0.005,0.07,0,风格板块),COLORYELLOW;
DRAWTEXT_FIX(ISLASTBAR,0.005,0.12,0,股本市值),COLORMAGENTA;DRAWTEXT_FIX(ISLASTBAR,0.005,0.17,0,当前业绩),COLORMAGENTA;
HGW1:=BARSLAST(DATE<>REF(DATE,1))+1;
HGW2:=REF(HGW1,HGW1);HGW3:=REF(HHV(H,HGW1),HGW1);
HGW4:=REF(LLV(L,HGW1),HGW1);
HGW5:=VALUEWHEN(DATE<>REF(DATE,1),REF(C,1));
HGW6:=REF(O,HGW2+HGW1-1);
HGW7:=REF(HHV(H,HGW1),HGW2+HGW1);
HGW8:=REF(LLV(L,HGW1),HGW2+HGW1);
HGW9:=REF(HHV(H,HGW1),HGW2*2+HGW1);
HGW10:=REF(LLV(L,HGW1),HGW2*2+HGW1);
HGW11:=REF(HHV(H,HGW1),HGW2*3+HGW1);
HGW12:=REF(LLV(L,HGW1),HGW2*3+HGW1);
HGW13:=HHV(HIGH,HGW1);HGW14:=LLV(LOW,HGW1);
HGW15:=VALUEWHEN(DATE<>REF(DATE,1),OPEN);
HGW16:=HGW15+((HGW3-HGW8)+(HGW7-HGW10)+(HGW9-HGW12))/3,COLORCYAN;
HGW17:=HGW15+(ABS(HGW3-HGW7)+ABS(HGW7-HGW9)+ABS(HGW9-HGW11))/3,COLORCYAN;
HGW18:=HGW15+((HGW6-HGW4)+(HGW3-HGW6)+ABS(HGW6-HGW5))/3*2,COLORCYAN;
HGW19:(HGW16+HGW17+HGW18+HGW3)/4,LINETHICK2,COLORCYAN;
STICKLINE(HGW16>0,HGW16,HGW16,2,0),COLORGREEN;
STICKLINE(HGW17>0,HGW17,HGW17,2,0),COLORGREEN;
STICKLINE(HGW18>0,HGW18,HGW18,2,0),COLORGREEN;
HGW20:=HGW15-((HGW7-HGW4)+(HGW9-HGW8)+(HGW11-HGW10))/3;
HGW21:=HGW15-(ABS(HGW4-HGW8)+ABS(HGW8-HGW10)+ABS(HGW10-HGW12))/3;
HGW22:=HGW15-((HGW6-HGW4)+(HGW3-HGW6)+ABS(HGW6-HGW5))/3*2;
HGW23:(HGW20+HGW21+HGW22+HGW4)/4,LINETHICK2,COLORMAGENTA;
STICKLINE(HGW20>0,HGW20,HGW20,2,0),COLORYELLOW;
STICKLINE(HGW21>0,HGW21,HGW21,2,0),COLORYELLOW;
STICKLINE(HGW22>0,HGW22,HGW22,2,0),COLORYELLOW;
DRAWTEXT(CURRBARSCOUNT=15,CONST(HGW16),'涨压'),COLORGREEN;
DRAWTEXT(CURRBARSCOUNT=15,CONST(HGW17),'高压'),COLORGREEN;
DRAWTEXT(CURRBARSCOUNT=15,CONST(HGW18),'LSS压'),COLORGREEN;
DRAWTEXT(CURRBARSCOUNT=15,CONST(HGW19),'平均压'),COLORCYAN;
DRAWTEXT(CURRBARSCOUNT=15,CONST(HGW20),'跌支'),COLORYELLOW;
DRAWTEXT(CURRBARSCOUNT=15,CONST(HGW21),'低支'),COLORYELLOW;
DRAWTEXT(CURRBARSCOUNT=15,CONST(HGW22),'LSS支'),COLORYELLOW;
DRAWTEXT(CURRBARSCOUNT=15,CONST(HGW23),'平均支'),COLORMAGENTA;
DRAWNUMBER(ISLASTBAR,HGW16,HGW16),COLORGREEN;
DRAWNUMBER(ISLASTBAR,HGW17,HGW17),COLORGREEN;
DRAWNUMBER(ISLASTBAR,HGW18,HGW18),COLORGREEN;
DRAWNUMBER(ISLASTBAR,HGW19,HGW19),COLORCYAN;
DRAWNUMBER(ISLASTBAR,HGW20,HGW20),COLORYELLOW;
DRAWNUMBER(ISLASTBAR,HGW21,HGW21),COLORYELLOW;
DRAWNUMBER(ISLASTBAR,HGW22,HGW22),COLORYELLOW;
DRAWNUMBER(ISLASTBAR,HGW23,HGW23),COLORMAGENTA;