飞狐主力资金进出指标源码
XJ:=(H+L+C*2)/4;
ZD:=LLV(L,34);
ZG:=HHV(H,34);
主力进出:EMA((XJ-ZD)/(ZG-ZD)*100,9),COLORRED,LINETHICK0;
BD2:=EMA(0.667*REF(主力进出,1)+0.333*主力进出,2),COLORGREEN,LINETHICK0;
FILLRGN(BD2,80,BD2>80,RGB(85,0,0));
FILLRGN(主力进出,20,主力进出<20,RGB(0,85,0));
FILLRGN(主力进出,BD2,主力进出>BD2,RGB(255,0,0));
FILLRGN(主力进出,BD2,主力进出<BD2,RGB(0,255,0));
{R1:EMA((XJ-ZD)/(ZG-ZD)*100,31),COLORWHITE;
R2:EMA(R1,5),COLORYELLOW;}
PARTLINE(1,80), COLORRED;
PARTLINE(1,20),COLOR00AA00;
大中小资金:50;