每股公积:FINANCE(18)/1,NODRAW,COLORGREEN;
未分利润:FINANCE(32)/1,NODRAW,COLORGREEN;
所属板块:=STRCAT('所属板块: ',STRCAT(STRCAT(STRCAT('[行业]-',HYBLOCK),STRCAT(' [地域]-',DYBLOCK)),STRCAT(' [概念]-',GNBLOCK)));
总股本:=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('股本市值: ',STRCAT(STRCAT(STRCAT(总股本,流通盘),全流通),市值));
净资收益率:=STRCAT(' 净资收益率: ',CON2STR(FINANCE(29)/FINANCE(19)*100,2));
毛利率:=STRCAT(' 毛利率: ',CON2STR((FINANCE(20)-FINANCE(21))/FINANCE(20)*100,2));
主营利润率:=STRCAT(' 主营利润率 ',CON2STR(FINANCE(23)/FINANCE(20)*100,2));
当前业绩:=STRCAT('当前业绩: ',STRCAT(STRCAT(净资收益率,毛利率),主营利润率));
DRAWTEXT_FIX(ISLASTBAR,0.005,0.06,0,所属板块),COLORYELLOW;
DRAWTEXT_FIX(ISLASTBAR,0.005,0.12,0,股本市值),COLORGREEN;
DRAWTEXT_FIX(ISLASTBAR,0.005,0.18,0,当前业绩),COLORGREEN;
MA3:MA(C,3),LINETHICK1,COLORFFFFFF;
MA5:MA(C,5),LINETHICK1,COLORFFFFFF;
MA7:MA(C,7),LINETHICK1,COLOR00FFFF;
MA10:MA(C,10),LINETHICK1,COLOR00FF00;
MA13:MA(C,13),LINETHICK1,COLORFF00FF;
MA60:MA(C,60),LINETHICK2,COLOR0000FF;
MA120:MA(C,120),LINETHICK2,COLORFFFF00;
主力筹码:=EMA(C,2),COLOR0000FF;
游资筹码:=EMA(((SLOPE(C,21)*20)+C),42),CIRCLEDOT,COLOR0099CC;
BBUY:=crOSS(主力筹码,游资筹码);
SEL:=CROSS(游资筹码,主力筹码);
STICKLINE((主力筹码 >= 游资筹码),LOW,HIGH,0.4,0),COLOR0000FF;
STICKLINE((主力筹码 >= 游资筹码),C,O,3,1),COLOR000077;
STICKLINE((主力筹码 >= 游资筹码),C,O,2.6,1),COLOR000099;
STICKLINE((主力筹码 >= 游资筹码),C,O,2,1),COLOR0000BB;
STICKLINE((主力筹码 >= 游资筹码),C,O,1.3,1),COLOR0000DD;
STICKLINE((主力筹码 >= 游资筹码),C,O,0.4,1),COLOR0000FF;
STICKLINE((主力筹码 < 游资筹码),LOW,HIGH,0.4,0),COLORFFFF00;
STICKLINE((主力筹码 < 游资筹码),C,O,3,1),COLOR777700;
STICKLINE((主力筹码 < 游资筹码),C,O,2.6,1),COLOR999900;
STICKLINE((主力筹码 < 游资筹码),C,O,2,1),COLORBBBB00;
STICKLINE((主力筹码 < 游资筹码),C,O,1.3,1),COLORDDDD00;
STICKLINE((主力筹码 < 游资筹码),C,O,0.4,1),COLORFFFF00;
STICKLINE((CROSS(主力筹码,游资筹码)),O,C,5,0),COLOR0055FF;
STICKLINE((CROSS(主力筹码,游资筹码)),O,C,4.2,0),COLOR0077FF;
STICKLINE((CROSS(主力筹码,游资筹码)),O,C,3,0),COLOR0099FF;
STICKLINE((CROSS(主力筹码,游资筹码)),O,C,2.2,0),COLOR00BBFF;
STICKLINE((CROSS(主力筹码,游资筹码)),O,C,1.5,0),COLOR00DDFF;
STICKLINE((CROSS(主力筹码,游资筹码)),O,C,0.4,0),COLOR00FFFF;
STICKLINE(CROSS(游资筹码,主力筹码),O,C,5,0),COLORWHITE;
DRAWICON(BBUY,(LOW * 0.99),34);
DRAWICON(SEL,(HIGH * 1.01),35);
ZTB:=IF(REF(C,1)*1.1-C< 0.01 ,1,0);
STICKLINE(ZTB,Abs(C-O)/4+MIN(C,O),MIN(C,O),3,0),COLORLIRED;
STICKLINE(ZTB,ABS(C-O)/4+MIN(C,O),ABS(C-O)/4*2+MIN(C,O),3,0),COLORLIMAGENTA;
STICKLINE(ZTB,ABS(C-O)/4*2+MIN(C,O),ABS(C-O)/4*3+MIN(C,O),3,0),COLORYELLOW;
STICKLINE(ZTB,ABS(C-O)/4*3+MIN(C,O),MAX(C,O),3,0),COLORMAGENTA;