飞狐短线操盘主图指标
源码
N:=5;
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,1);
DRAWICON(cross(zx,dx),high+8/100,5);}
DRAWTEXT(cross(dx,zx) and var6 ,l*0.99,'▲'),coloryellow{,LINETHICK4};
DRAWTEXT(cross(zx,dx),h*1.01,'♀'),colorgreen{,LINETHICK4};
MA5:MA(CLOSE,5),coloryellow;
MA10:MA(CLOSE,10),colorff00ff;
MA20:MA(CLOSE,20)colora03000;
MA30:MA(CLOSE,30)color0000ff;
MA60:MA(CLOSE,60),colorgreen;
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;