買線:=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);
(南方財富網SOUTHMONEY.COM)