风格板块:=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;
上趋势:MA(LOW,20)*1.2,COLOR0080FF,LINETHICK1,NODRAW;
次上趋势:MA(LOW,20)*1.1,COLORYELLOW;
次下趋势:MA(HIGH,20)*0.9,COLORWHITE,NODRAW;
下趋势:MA(HIGH,20)*0.8,COLORGREEN,LINETHICK1;
CAT1:=(C-REF(C,1))/REF(C,1)*100;
CTA2:=(HHV(H,20)-C)/(HHV(H,20)-LLV(L,20));
CTA3:=IF(C>次上趋势,IF(C>上趋势,4,3),IF(C>次下趋势 AND C< 次上趋势,2,IF(C< 下趋势,0,1)));
DRAWTEXT_FIX(1,0.75,0.92,0,'公共号:指标抓牛 '),COLORYELLOW;
STICKLINE(CTA3=0,H,L,2,1),COLORBLUE;
STICKLINE(CTA3=1,H,L,2,1),COLORGREEN;
STICKLINE(CTA3=2,H,L,2,1),COLORGRAY;
STICKLINE(CTA3=3,H,L,2,1),COLORYELLOW;
STICKLINE(CTA3=4,H,L,2,1),COLORMAGENTA;
STICKLINE(CTA3=0,C,O,2,0),COLORBLUE;
STICKLINE(CTA3=1,C,O,2,0),COLORGREEN;
STICKLINE(CTA3=2,C,O,2,0),COLORGRAY;
STICKLINE(CTA3=3,C,O,2,0),COLORYELLOW;
STICKLINE(CTA3=4,C,O,2,0),COLORMAGENTA;
DRAWTEXT(REF(CTA3,1)=2 AND CTA3=1,H,'←主力出货'),COLORGREEN;
DRAWTEXT(REF(CTA3,1)=3 AND CTA3=4,L,'←主力入场'),COLORMAGENTA;
DRAWTEXT(REF(CTA3,1)=3 AND CTA3=2,H,'←主力洗盘'),COLORWHITE;
DRAWTEXT(REF(CTA3,1)=1 AND CTA3=0,L,'←主力建仓'),COLORRED;
DRAWTEXT(REF(CTA3,1)=2 AND CTA3=4,L,'←主力入场'),COLORMAGENTA;