VAR1:=(3*CLOSE+LOW+OPEN+HIGH)/6;
VAR2:=20*VAR1+19*REF(VAR1,1)+18*REF(VAR1,2)+17*REF(VAR1,3);
VAR3:=16*REF(VAR1,4)+15*REF(VAR1,5)+14*REF(VAR1,6)+13*REF(VAR1,7);
VAR4:=12*REF(VAR1,8)+11*REF(VAR1,9)+10*REF(VAR1,10)+9*REF(VAR1,11);
VAR5:=8*REF(VAR1,12)+7*REF(VAR1,13)+6*REF(VAR1,14)+5*REF(VAR1,15);
VAR6:=(VAR2+VAR3+VAR4+VAR5+4*REF(VAR1,16)+3*REF(VAR1,17)+2*REF(VAR1,18)+REF(VAR1,20))/210;
VAR7:=EMA(CLOSE,5);
VAR8:=EMA(VAR7,8);
VAR9:=EMA(VAR8,13);
VAR87:=EMA(VAR1,1);
VAR88:=CLOSE/REF(CLOSE,1)>=1.09;
获利线:EMA(CLOSE,17),LINETHICK2,COLORWHITE;
警戒线:EMA(VAR6,13),LINETHICK2,COLORFF00FF;
操作线:EMA(VAR9,50),LINETHICK2,COLORGREEN;
STICKLINE(VAR87<警戒线,H,L,0,1),COLORGREEN;
STICKLINE(VAR87<警戒线,C,O,2,1),COLORGREEN;
STICKLINE(VAR87>=警戒线,H,L,0,1),COLORRED;
STICKLINE(VAR87>=警戒线,C,O,2,1),COLORRED;
STICKLINE(VAR88,OPEN,CLOSE,1,0),COLORYELLOW;
DRAWICON(CROSS(VAR87,警戒线),LOW,1);
DRAWICON(CROSS(警戒线,VAR87),HIGH,2);
DRAWTEXT(CROSS(VAR87,警戒线),LOW,'←买'),COLORYELLOW;
DRAWTEXT(CROSS(警戒线,VAR87),HIGH,'←卖'),COLORWHITE;
DRAWTEXT_FIX(C>O,0,0.07,0,'股票指标网'),COLOR333333;
DRAWTEXT_FIX(1,0,0.1,0,'操作线上有操作,操作线下莫伸手。')COLORGREEN;
DRAWTEXT_FIX(1,0.05,0.15,0,'警戒线上保安全,跌破警戒快点跑。')COLORFF00FF;
DRAWTEXT_FIX(1,0.1,0.2,0,'获利线上能赚钱,突破获利快点买。')COLORWHITE;