飞狐趋势之王副图指标
源码
n:=4; n1:=25;
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;