VAR1:=(EMA((OPEN+HIGH+LOW+CLOSE)/4,3)+EMA((OPEN+HIGH+LOW+CLOSE)/4,6)+EMA((OPEN+HIGH+LOW+CLOSE)/4,9))/4;
VAR2:=(EMA((OPEN+HIGH+LOW+CLOSE)/4,5)+EMA((OPEN+HIGH+LOW+CLOSE)/4,10)+EMA((OPEN+HIGH+LOW+CLOSE)/4,20))/4;
A1:BUY(VAR1>VAR2 AND REF(VAR1,1)<REF(VAR2,1),LOW*0.99);
A2:SELL(VAR1<VAR2 AND REF(VAR1,1)>REF(VAR2,1),HIGH*1.01);
STICKLINE(VAR1<VAR2,LOW,HIGH,0,1),COLORCYAN;
STICKLINE(VAR1<VAR2,CLOSE,OPEN,2,1),COLORCYAN;
STICKLINE(VAR1>VAR2,LOW,HIGH,0,0),COLORRED;
STICKLINE(VAR1>VAR2,CLOSE,OPEN,2,0),COLORRED;
{股票指标网 整理}