N:=5;
N1:=10;
VAR0:=EMA(EMA(EMA(CLOSE,N),N),N);
VAR1: VAR0-REF(VAR0,1)+VAR0;
VAR2: MA(VAR1,N1);
STICKLINE(VAR1>VAR2,VAR2,VAR1,0.1,1);
STICKLINE(VAR2>VAR1,VAR1,VAR2,0.1,1);
DRAWTEXT(CROSS(VAR2,VAR1),VAR1*1.01,'↓降'),COLORGREEN;
DRAWTEXT(CROSS(VAR1,VAR2),VAR2*0.99,'↑升'),COLORYELLOW;
14S513959220-52K8.gif
|