走好
形态走好,用于观察筛选相关指标走势走好的指示用途。
买线:=EMA(C,2);
卖线:=EMA(SLOPE(C,21)*20+C,42);
STICKLINE(买线>=卖线,REFDATE(HHV(H,130),DATE),REFDATE(LLV(L,130),DATE),5,0),
COLOR600020;
STICKLINE(买线<卖线,REFDATE(HHV(H,130),DATE),REFDATE(LLV(L,130),DATE),5,0),
COLOR404050; DRAWKLINE(H,O,L,C);
指导线:EMA((EMA(CLOSE,4)+EMA(CLOSE,6)+EMA(CLOSE,12)+EMA(CLOSE,24))/4,2),,COLORFFFFFF;
界:MA(CLOSE,27),COLOR00FFFF;
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;
DRAWICON(CROSS(买线,卖线),L,1);
DRAWICON(CROSS(卖线,买线),H,2);
XG:CROSS(买线,卖线) AND C>REF(C,1);