所属板块:=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;
GSPT1:=BARSLAST(DATE<>REF(DATE,1))+1;
GSPT2:=REF(GSPT1,GSPT1);GSPT3:=REF(HHV(H,GSPT1),GSPT1);
GSPT4:=REF(LLV(L,GSPT1),GSPT1);
GSPT5:=VALUEWHEN(DATE<>REF(DATE,1),REF(C,1));
GSPT6:=REF(O,GSPT2+GSPT1-1);
GSPT7:=REF(HHV(H,GSPT1),GSPT2+GSPT1);
GSPT8:=REF(LLV(L,GSPT1),GSPT2+GSPT1);
GSPT9:=REF(HHV(H,GSPT1),GSPT2*2+GSPT1);
GSPT10:=REF(LLV(L,GSPT1),GSPT2*2+GSPT1);
GSPT11:=REF(HHV(H,GSPT1),GSPT2*3+GSPT1);
GSPT12:=REF(LLV(L,GSPT1),GSPT2*3+GSPT1);
GSPT13:=HHV(HIGH,GSPT1);GSPT14:=LLV(LOW,GSPT1);
GSPT15:=VALUEWHEN(DATE<>REF(DATE,1),OPEN);
GSPT16:=GSPT15+((GSPT3-GSPT8)+(GSPT7-GSPT10)+(GSPT9-GSPT12))/3,COLORCYAN;
GSPT17:=GSPT15+(ABS(GSPT3-GSPT7)+ABS(GSPT7-GSPT9)+ABS(GSPT9-GSPT11))/3,COLORCYAN;
GSPT18:=GSPT15+((GSPT6-GSPT4)+(GSPT3-GSPT6)+ABS(GSPT6-GSPT5))/3*2,COLORCYAN;
GSPT19:(GSPT16+GSPT17+GSPT18+GSPT3)/4,LINETHICK2,COLORCYAN;
STICKLINE(GSPT16>0,GSPT16,GSPT16,2,0),COLORGREEN;
STICKLINE(GSPT17>0,GSPT17,GSPT17,2,0),COLORGREEN;
STICKLINE(GSPT18>0,GSPT18,GSPT18,2,0),COLORGREEN;
GSPT20:=GSPT15-((GSPT7-GSPT4)+(GSPT9-GSPT8)+(GSPT11-GSPT10))/3;
GSPT21:=GSPT15-(ABS(GSPT4-GSPT8)+ABS(GSPT8-GSPT10)+ABS(GSPT10-GSPT12))/3;
GSPT22:=GSPT15-((GSPT6-GSPT4)+(GSPT3-GSPT6)+ABS(GSPT6-GSPT5))/3*2;
GSPT23:(GSPT20+GSPT21+GSPT22+GSPT4)/4,LINETHICK2,COLORMAGENTA;
STICKLINE(GSPT20>0,GSPT20,GSPT20,2,0),COLORYELLOW;
STICKLINE(GSPT21>0,GSPT21,GSPT21,2,0),COLORYELLOW;
STICKLINE(GSPT22>0,GSPT22,GSPT22,2,0),COLORYELLOW;
DRAWTEXT(CURRBARSCOUNT=15,CONST(GSPT16),'涨压'),COLORGREEN;
DRAWTEXT(CURRBARSCOUNT=15,CONST(GSPT17),'高压'),COLORGREEN;
DRAWTEXT(CURRBARSCOUNT=15,CONST(GSPT18),'LSS压'),COLORGREEN;
DRAWTEXT(CURRBARSCOUNT=15,CONST(GSPT19),'平均压'),COLORCYAN;
DRAWTEXT(CURRBARSCOUNT=15,CONST(GSPT20),'跌支'),COLORYELLOW;
DRAWTEXT(CURRBARSCOUNT=15,CONST(GSPT21),'低支'),COLORYELLOW;
DRAWTEXT(CURRBARSCOUNT=15,CONST(GSPT22),'LSS支'),COLORYELLOW;
DRAWTEXT(CURRBARSCOUNT=15,CONST(GSPT23),'平均支'),COLORMAGENTA;
DRAWNUMBER(ISLASTBAR,GSPT16,GSPT16),COLORGREEN;
DRAWNUMBER(ISLASTBAR,GSPT17,GSPT17),COLORGREEN;
DRAWNUMBER(ISLASTBAR,GSPT18,GSPT18),COLORGREEN;
DRAWNUMBER(ISLASTBAR,GSPT19,GSPT19),COLORCYAN;
DRAWNUMBER(ISLASTBAR,GSPT20,GSPT20),COLORYELLOW;
DRAWNUMBER(ISLASTBAR,GSPT21,GSPT21),COLORYELLOW;
DRAWNUMBER(ISLASTBAR,GSPT22,GSPT22),COLORYELLOW;
DRAWNUMBER(ISLASTBAR,GSPT23,GSPT23),COLORMAGENTA;