飞狐3T3主图指标
源码
N:=3;
var1:=close-ref(close,6);
var2:=close-ref(close,7);
var3:=close-ref(close,8);
var4:=close-ref(close,9);
var5:=close-ref(close,10);
var6:=((HHV(H,N)-LLV(L,N))/LLV(L,N))*100>8;
dx:=(var1+var2+var3+var4+var5)/5,color00ff00;
zx:=ma(dx,5)color00ffff;
cx:=ma(dx,21)color0000ff;
DRAWICON(cross(dx,zx) and var6,low-4/100,4);
DRAWICON(cross(zx,dx),high+8/100,5);
MA5:MA(CLOSE,5)color00ffff;
MA10:MA(CLOSE,10);
MA20:MA(CLOSE,20)color993300;
MA30:MA(CLOSE,30)color0000ff;
MA60:MA(CLOSE,60);
选股:if(cross(zx,cx),1,0),LINETHICK0;
STICKLINE(open>=close ,close ,open,9,0 ),COLORaaaaaa;
STICKLINE(open>=close ,close ,open,6,0 ),COLORbbbbbb;
STICKLINE(open>=close ,close ,open,2.4,0 ),COLORcccccc;
STICKLINE(open>=close ,close ,open,1.1,0 ),COLORdddddd;
STICKLINE(close>open,close,open,9,0 ),COLOr6666cc;
STICKLINE(close>open,close,open,6 ,0 ),COLOR7777dd;
STICKLINE(close>open,close,open,2.4 ,0 ),COLOR8888ee;
STICKLINE(close>open,close,open,1.1 ,0 ),COLOR9999ff;
STICKLINE(close>open,open,low,0.5,0 ),COLOR1199ff;
STICKLINE(close>open,close,HIGH,0.5 ,0 ),COLOR1199ff;
STICKLINE(open>=close,close,low,0.5 ,0 ),COLORcccccc;
STICKLINE(open>=close,open,HIGH,0.5 ,0 ),COLORcccccc;