所属板块:=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:=EMA(CLOSE,5);
GSPT2:=EMA(GSPT1,0);
操盘线:MA(CLOSE,4),NODRAW,COLORRED;
安全线:MA(CLOSE,19),LINETHICK2,COLORYELLOW;
DRAWTEXT(CROSS(安全线,操盘线),H*1.01,'←S 卖出'),COLOR00FF00;
DRAWTEXT(CROSS(操盘线,安全线),L*0.99,'←B 买入'),COLOR00FFFF;
DRAWICON(CROSS(操盘线,安全线),L*0.98,1);
DRAWICON(CROSS(安全线,操盘线),H*1,2);
下趋势双线持币:HHV(MA(HIGH,3),2),LINETHICK2,COLORGREEN;
上趋势单线持股:LLV(MA(HIGH,3),1),LINETHICK2,COLORRED;
GSPT3:=FILTER(GSPT2>REF(GSPT2,1) AND 下趋势双线持币<REF(下趋势双线持币,1) AND C>REF(C,1),11);
GSPT4:=BACKSET(REF(HIGH,2)=HHV(HIGH,5),3);
GSPT5:=CROSS(GSPT4,0.9);
GSPT16:=BACKSET(REF(LOW,2)=LLV(LOW,5),3);
GSPT18:=CROSS(GSPT16,0.9);
STICKLINE(CROSS(操盘线,安全线) AND (操盘线>安全线) AND (C>安全线),O,C,3,0),COLORYELLOW;
STICKLINE(CROSS(操盘线,安全线) AND .....附件里有完整的源码文本