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, '买');
STICKLINE((B<D),LOW,HIGH,0.3,0),COLORE0E000;
STICKLINE((B<D),CLOSE,OPEN,3,0),COLORE0E000;
STICKLINE((B>D),LOW,HIGH,0.3,0),COLORRED;
STICKLINE((B>D),CLOSE,OPEN,3,0),COLORRED;