根据买卖提示,。很实用!
b:=(EMA(((O+H+L+C)/4),3)+EMA(((O+H+L+C)/4),6)+EMA(((O+H+L+C)/4),9))/4;
d:=(EMA(((O+H+L+C)/4),5)+EMA(((O+H+L+C)/4),10)+EMA(((O+H+L+C)/4),20))/4;
a1:DRAWTEXT((b>d) AND (REF(b,1) < REF(d,1)), LOW*0.99, '买');
a2:DRAWTEXT((b<d) AND (REF(b,1) > REF(d,1)), HIGH*1.01, '卖');
STICKLINE((b<d),LOW,HIGH,0.8,0),COLORE0E000;
STICKLINE((b<d),CLOSE,OPEN,8,0),COLORE0E000;
STICKLINE((b>d),LOW,HIGH,0.8,0),COLORRED;
STICKLINE((b>d),CLOSE,OPEN,8,0),COLORRED;