MA5:MA(CLOSE,N1);
MA20:MA(CLOSE,N2);
MA60:MA(C,N3);
MA250:MA(C,N4);
MA220:MA(C,N5);
MA330:MA(C,N6);
F:=150;
FF:=3;
高1:=REF(HHV(H,F),FF);
低1:=REF(LLV(L,F),FF);
W1:=高1-(高1-低1)*0.191;
W2:=高1-(高1-低1)*0.382;
W3:=高1-(高1-低1)*0.5;
W4:=高1-(高1-低1)*0.618;
W5:=高1-(高1-低1)*0.809;
顶:REFDATE(高1,DATE),COLORFFFF00;
低:REFDATE(低1,DATE),COLOR00FF00;
VAR10:=IF(TROUGHBARS(3,16,1)=0 AND HIGH LOW+0.04,4,0);
VAR11:=ZIG(3,6) REF(ZIG(3,6),1) AND REF(ZIG(3,6),1) =REF(ZIG(3,6),2) AND REF(ZIG(3,6),2) =REF(ZIG(3,6),3);
VAR12:=ZIG(3,6) REF(ZIG(3,6),1) AND REF(ZIG(3,6),1) =REF(ZIG(3,6),2) AND REF(ZIG(3,6),2) =REF(ZIG(3,6),3);
VAR13:=ZIG(3,22) REF(ZIG(3,22),1) AND REF(ZIG(3,22),1) =REF(ZIG(3,22),2) AND REF(ZIG(3,22),2) =REF(ZIG(3,22),3);
VAR14:=ZIG(3,22) REF(ZIG(3,22),1) AND REF(ZIG(3,22),1) =REF(ZIG(3,22),2) AND REF(ZIG(3,22),2) =REF(ZIG(3,22),3);
VAR15:=ZIG(3,51) REF(ZIG(3,51),1) AND REF(ZIG(3,51),1) =REF(ZIG(3,51),2) AND REF(ZIG(3,51),2) =REF(ZIG(3,51),3);
VAR16:=ZIG(3,51) REF(ZIG(3,51),1) AND REF(ZIG(3,51),1) =REF(ZIG(3,51),2) AND REF(ZIG(3,51),2) =REF(ZIG(3,51),3);
VAR17:=ZIG(3,72) REF(ZIG(3,72),1) AND REF(ZIG(3,72),1) =REF(ZIG(3,72),2) AND REF(ZIG(3,72),2) =REF(ZIG(3,72),3);
VAR18:=ZIG(3,72) REF(ZIG(3,72),1) AND REF(ZIG(3,72),1) =REF(ZIG(3,72),2) AND REF(ZIG(3,72),2) =REF(ZIG(3,72),3);
买1:=VAR10;
买2:=(VAR11+VAR13+VAR15+VAR17);
卖1:=(VAR12+VAR14+VAR16+VAR18);
B:IF(买1 0 OR 买2 0,LOW*0.96,DRAWNULL),CROSSDOT,LINETHICK3,COLORYELLOW;
{DRAWTEXT(买1 0 OR 买2 0,LOW*0.96,'买'),COLORYELLOW;}
S:IF(卖1 0,HIGH*1.04,DRAWNULL),CROSSDOT,LINETHICK3,COLORGREEN;
{DRAWTEXT(卖1 0,HIGH*1.02,'卖'),COLORGREEN;};
{所属题材}{九毛八公式指标网www.9m8.cn}
所属板块:=STRCAT(STRCAT(STRCAT(' ',HYBLOCK),STRCAT(' ',DYBLOCK)),STRCAT(' ',GNBLOCK));
DRAWTEXT_FIX(ISLASTBAR,0.00,0.01,0,'【所属板块】'),COLORGREEN;
DRAWTEXT_FIX(ISLASTBAR,0.10,0.01,0,所属板块),COLOR00FFFF;
利润同比:=FINANCE(43);
净利润:=FINANCE(30)/100000000;
JJJ1A:=STRCAT(STRCAT(' 利润同比增长:',CON2STR(利润同比,2)),' % ');
JJJ2A:=IF(FINANCE(30) 100000000,STRCAT(CON2STR(FINANCE(30)/100000000,2),' 亿元 '),
IF(FINANCE(30) =100000000,STRCAT(CON2STR(FINANCE(30)/10000,2),' 万元 '),DRAWNULL));
JJJ3A:=STRCAT('当期净利润:',JJJ2A);
DRAWTEXT_FIX(ISLASTBAR,0.00,0.07,0,'【净利分析】'),COLORGREEN;
DRAWTEXT_FIX(ISLASTBAR,0.10,0.07,0,STRCAT(JJJ3A,JJJ1A)),COLORFFFFFF;
C3:=REF(C,1);
涨停:=IF((C-C3)*100/C3 =(10-0.01*100/C3),1,0);
STICKLINE(涨停,OPEN,CLOSE,2,0),COLORYELLOW;
跌停:=IF((C3-C)*100/C3 =(10-0.01*100/C3),1,0);
STICKLINE(跌停,OPEN,CLOSE,2,0),COLORBLUE;