GSPT1:=MA(CLOSE,14);
GSPT2:=STD(CLOSE,14);
GSPT3:=C/REF(C,1);
GSPT4:=GSPT3<1.105 AND GSPT3>1.095;
GSPT5:=GSPT3>0.895 AND GSPT3<0.905;
GSPT6:=DYNAINFO(8)>0 AND V<REF(LLV(V,21),1 AND NOT(C=H AND C=L));
GSPT7:=C=HHV(C,10) AND H=HHV(H,10) AND C>O*1.01;
GSPT8:=H<C*1.04 AND V>=HHV(V,10) AND V>(REF(V,1)*1.8);
GSPT9:=CLOSE-LLV(LOW,14);
GSPT10:=HHV(HIGH,14)-LLV(LOW,14);
GSPT11:=GSPT3>1.045 AND L=H AND C=H;
GSPT12:=3*SMA(GSPT9/GSPT10*100,5,1)-2*SMA(SMA(GSPT9/GSPT10*100,5,1),3,1);
GSPT13:=GSPT12>90 AND BARSCOUNT(CLOSE)>30;
GSPT14:=REF(GSPT12,2)<REF(GSPT12,1);
GSPT15:=GSPT12<REF(GSPT12,1);
GSPT16:=GSPT12<10 AND BARSCOUNT(CLOSE)>30;
GSPT18:=REF(GSPT12,2)>REF(GSPT12,1);
GSPT19:=GSPT12>REF(GSPT12,1) AND C>REF(C,1);
DRAWTEXT_FIX(ISLASTBAR,0,0,0,HYBLOCK);
DRAWTEXT_FIX(ISLASTBAR,0.07,0,0,'营业收入'),COLORRED;
DRAWTEXT_FIX(ISLASTBAR,0.07,0.06,0,CON2STR(FINANCE(20)/100000000,2)),COLORRED;
DRAWTEXT_FIX(ISLASTBAR,0.14,0,0,'主营毛利率'),COLORMAGENTA;
DRAWTEXT_FIX(ISLASTBAR,0.14,0.06,0,CON2STR((FINANCE(20)-FINANCE(21))/FINANCE(20)*100,2)),COLORMAGENTA;
DRAWTEXT_FIX(ISLASTBAR,0.233,0,0,'收入同比增长'),COLORCYAN;
DRAWTEXT_FIX(ISLASTBAR,0.233,0.06,0,CON2STR(FINANCE(44),2)),COLORCYAN;
DRAWTEXT_FIX(ISLASTBAR,0.34,0,0,'市销率'),COLORGREEN;
DRAWTEXT_FIX(ISLASTBAR,0.34,0.06,0,CON2STR(C*FINANCE(1)/FINANCE(20),2)),COLORGREEN;
DRAWTEXT_FIX(ISLASTBAR,0.4,0,0,'净利润增长率'),COLORRED;
DRAWTEXT_FIX(ISLASTBAR,0.4,0.06,0,CON2STR(FINANCE(43),2)),COLORRED;
主力操作线:(EMA(C,14)),LINETHICK1,COLORLIGRAY;
主力成本线:(EMA(C,55)),COLORRED;
压力:GSPT1+2*GSPT2,DOTLINE,COLORBLUE;
支撑:GSPT1-2*GSPT2,DOTLINE,COLORBLUE;
IF(主力操作线>REF(主力操作线,1),主力操作线,DRAWNULL)COLORMAGENTA,LINETHICK1;
IF(主力操作线<REF(主力操作线,1),主力操作线,DRAWNULL),COLORGREEN,LINETHICK1;
STICKLINE(GSPT4 AND C=H,C,O,2,0),COLORLIMAGENTA;
STICKLINE(GSPT3>1.105 AND O<C,C,O,2,0),COLORMAGENTA;
STICKLINE(GSPT3>1.095 AND L=H AND C=H,C,O*0.97,2,0),COLORLIRED;
STICKLINE(GSPT3>1.19 AND C=H,C,O,2,0),COLORRED;
STICKLINE(GSPT5 AND C=L,C,O,2,0),COLORBLUE;
STICKLINE(GSPT3<0.895,C,O,2,0),COLORLIBLUE;
STICKLINE(GSPT3<0.905 AND L=H AND C=H,C,O*0.97,2,0),COLORCYAN;
DRAWICON(GSPT6 AND NOT(GSPT11),LOW,16);
DRAWICON((GSPT7 AND GSPT8),L,9);
DRAWICON((GSPT13 AND GSPT14 AND GSPT15),H*1.015,12);
DRAWICON((GSPT18 AND GSPT19 AND GSPT16 AND C>O),L,11);