XA_1:=MA(INDEXC,34);
XA_2:=(55*XA_1+34*REF(XA_1,1)+21*REF(XA_1,2)+13*REF(XA_1,3)+8*REF(XA_1,4)+5*REF(XA_1,5)+3*REF(XA_1,6)+2*REF(XA_1,7)+REF(XA_1,8)+REF(XA_1,9))/143;
XA_3:=REF(XA_2,1);
XA_4:=0.5*(XA_2+XA_3);
XA_5:=MA(CLOSE,8);
XA_6:=(55*XA_5+34*REF(XA_5,1)+21*REF(XA_5,2)+13*REF(XA_5,3)+8*REF(XA_5,4)+5*REF(XA_5,5)+3*REF(XA_5,6)+2*REF(XA_5,7)+REF(XA_5,8)+REF(XA_5,9))/143;
XA_7:=REF(XA_6,1);
游资资金:0.5*(XA_6+XA_7),NODRAW,COLORYELLOW;
DRAWBAND(XA_6,RGB(255,255,0),XA_7,RGB(0,0,255));
STICKLINE(XA_6>XA_7,XA_6,XA_7,10,0),COLORYELLOW;
XA_8:=MA(CLOSE,34);
XA_9:=(55*XA_8+34*REF(XA_8,1)+21*REF(XA_8,2)+13*REF(XA_8,3)+8*REF(XA_8,4)+5*REF(XA_8,5)+3*REF(XA_8,6)+2*REF(XA_8,7)+REF(XA_8,8)+REF(XA_8,9))/143;
XA_10:=REF(XA_9,1);
机构资金:0.5*(XA_9+XA_10),NODRAW,COLORRED;
DRAWBAND(XA_9,RGB(255,0,0),XA_10,RGB(0,255,0));
STICKLINE(XA_9>XA_10,XA_9,XA_10,10,0),COLORRED;
差:100*(游资资金-机构资金)/机构资金,NODRAW,COLORMAGENTA;