VAR1:=EMA(C,3);VAR2:=EMA(C,5);VAR3:=EMA(C,10);VAR4:=EMA(C,20);VAR5:=EMA(C,30);VAR6:=(VAR2+VAR3+VAR4+VAR5)/4;VAR7:=(VAR6-REF(VAR6,15))/REF(VAR6,15)*100;VAR8:=(VAR6-REF(VAR6,15))/REF(VAR6, 15)*100;VAR9:=EMA(VAR7,8);STICKLINE(VAR7<1>1*REF(VAR7,1),H,L,0.4,0),COLORRED;STICKLINE(VAR7>1*REF(VAR7,1),O,C,4, 1),COLORRED;STICKLINE(VAR7<1>1*REF(VAR9,1),H,L,0.4,0),COLORGREEN;STICKLINE(VAR7<1>1*REF(VAR9,1),O,C,4, 1),COLORGREEN;价:=((C-REF(MA(C,6),1))/6+MA(C,6))*1.004;{ _通达信公式}买进条件:=OSS(C,买进价) AND 买进价>REF(买进价,1