gspt1:=EMA(MA(IF(CLOSE>OPEN,(CLOSE-OPEN)*VOL,IF(CLOSE<OPEN,(CLOSE-OPEN)*VOL,0)),5),1);
gspt2:=EMA(MA(IF(CLOSE>REF(CLOSE,1),(CLOSE-REF(CLOSE,1))*VOL,IF(CLOSE<REF(CLOSE,1),(CLOSE-REF(CLOSE,1))*VOL,0)),5),1);
gspt3:=EMA(MA(IF(OPEN>REF(CLOSE,1),(OPEN-REF(CLOSE,1))*VOL,IF(OPEN<REF(CLOSE,1),(OPEN-REF(CLOSE,1))*VOL,0)),5),1);
gspt4:=EMA(MA(IF(CLOSE<OPEN,(OPEN-CLOSE)*VOL,IF(CLOSE>OPEN,(OPEN-CLOSE)*VOL,0)),10),1);
gspt5:=EMA(MA(IF(CLOSE<REF(CLOSE,1),(REF(CLOSE,1)-CLOSE)*VOL,IF(CLOSE>REF(CLOSE,1),(REF(CLOSE,1)-CLOSE)*VOL,0)),10),1);
gspt6:=EMA(MA(IF(OPEN<REF(CLOSE,1),(REF(CLOSE,1)-OPEN)*VOL,IF(OPEN>REF(CLOSE,1),(REF(CLOSE,1)-OPEN)*VOL,0)),10),1);
gspt7:=CLOSE>OPEN;
gspt8:=CLOSE>REF(CLOSE,1);
gspt9:=OPEN>REF(CLOSE,1);
多头:(gspt1+gspt2+gspt3)/3/100,COLORWHITE;
空头:(gspt4+gspt5+gspt6)/3/100,COLORYELLOW ;
一次警报:EMA(EMA((gspt1+gspt2+gspt3)/3-(gspt4+gspt5+gspt6)/3,5),5)*1/100,COLORMAGENTA;
二次警报:EMA((COUNT(gspt8,12)/12+COUNT(gspt7,12)/12+COUNT(gspt9,12)/12)/3*MA(多头,5)*2*1.1,2),COLORBLUE;
STICKLINE(空头>0,0,空头,1,0),COLORCYAN;
STICKLINE(空头<0,0,空头,1,0),COLORRED;
好多宝和谐:EMA(EMA((gspt1+gspt2+gspt3)/3-(gspt4+gspt5+gspt6)/3,5),5)*1/100,POINTDOT,COLOR9587FF;{这句没有用处};