买线:=EMA(C,2);
卖线:=EMA(SLOPE(C,21)*20+C,42);
STICKLINE(买线>=卖线,REFDATE(HHV(H,130),DATE),REFDATE(LLV(L,130),DATE),5,0),COLOR669900;
STICKLINE(买线<卖线,REFDATE(HHV(H,130),DATE),REFDATE(LLV(L,130),DATE),5,0),COLOR666600;
DRAWKLINE(H,O,L,C);
多空线:EMA((EMA(CLOSE,5)+EMA(CLOSE,10)+EMA(CLOSE,15)+EMA(CLOSE,24))/4,2),COLORRED,LINETHICK2;
界:EMA((EMA(CLOSE,15)+EMA(CLOSE,20)+EMA(CLOSE,30)+EMA(CLOSE,45))/4,5),NODRAW;
界1:=REF(界,1);
多1:IF(界>界1,界1,DRAWNULL),POINTDOT,COLORYELLOW,LINETHICK4;
空1:IF(界<界1,界1,DRAWNULL),POINTDOT,COLORGREEN,LINETHICK4;
底:EMA((EMA(CLOSE,60)+EMA(CLOSE,90)+EMA(CLOSE,115)+EMA(CLOSE,225))/4,1),POINTDOT,COLORMAGENTA,LINETHICK4;
{ 爱约股_通达信股票指标公式}
B买:IF(CROSS(多空线,界) OR CROSS(买线,卖线),C,DRAWNULL),COLORMAGENTA,NODRAW;
持仓:IF(买线>=卖线,C,DRAWNULL),COLORRED,NODRAW;
S卖:IF(CROSS(界,多空线) OR CROSS(卖线,买线),C,DRAWNULL),COLORLIGRAY,NODRAW;
空仓:IF(买线<卖线,C,DRAWNULL),COLORGREEN,NODRAW;
N:=IF(BARSCOUNT(C)>=8,8,BARSCOUNT(C));
AMOV:=VOL*(C+L+H)/3;
MN:=SUM(AMOV,N)/SUM(VOL,N);
NOTEXT1:IF(C>=MN,MN,DRAWNULL),LINETHICK2,COLORYELLOW;