飞狐玄黄长线副图指标
源码
N:=10;
Var1:=REF(CLOSE,1);
Var2:=SUM(VOL,2)/((HHV(HIGH,2)-LLV(LOW,2))*100);
Var3:=(CLOSE-Var1)*Var2;
Var4:=SUM(Var3,0);
Var5:=SMA(Var4,10,1);
Var6:=SMA(Var4,20,1);
a: MA(Var5-Var6,N)colorgreen,,linethick2;
s:Var5-Var6,colorred,,linethick2;
DRAWICON( FILTER(cross(s,a) and a<0,34),a,1 );
DRAWICON( FILTER( cross(a,s) and a>0,13),a,2 );