N:=5; M:=60; 均價(jià):=(0.618*(0.809*C+0.191*O)+0.382*(IF(H=C,C,H)+IF(L=C,C,L))/2); LJ:=IF(CAPITAL,均價(jià),AMOUNT/(V*100)); GZ:=(C*0.618+(Wma(LJ,3)+WMA(LJ,5))/2+WMA(LJ,8)*0.382)/2; 跟莊線:=(REF(GZ,2)+REF(GZ,1)+REF(GZ,0))/3,COLORWHITE,LINETHICK1; GZX:=(WMA(LJ,8)*0.618+(WMA(LJ,13)+WMA(LJ,21))/2+WMA(LJ,34)*0.382)/2; 工作線:=(REF(GZX,2)+REF(GZX,1)+REF(GZX,0))/3; 價(jià)差:=IF(H=L,1/40,(MIN(LJ,GZ)-REF(MAX(LJ,GZ),1))/REF(LJ,1)); 系數(shù):=IF(H=L,1/4,(1/C+1/(H-L)*0.618+1/Abs(C-O)*0.382)); 誤差:=IF(H=L,1/REF(C,1)-1/O,1/C-1/O); AI:=價(jià)差*AMOUNT; 歷史AI:=HHV(REF(價(jià)差*AMOUNT,1),0); 配比:=1/歷史AI*系數(shù)*2/((1/L-1/H)+SGN(LJ-REF(LJ,1))*誤差)/1000; 活躍凈額:AI/CAPITAL/10,NODRAW; 糾差凈額:AI/歷史AI*配比,NODRAW; 周凈額:SUM(活躍凈額,N),NODRAW; 月凈額:SUM(活躍凈額,22),NODRAW; 累計(jì):(EMA(活躍凈額,13)+EMA(活躍凈額,26)+EMA(活躍凈額,42)+EMA(活躍凈額,M))/4*20,RGB(128,0,128),COLORRED; 均值:EMA(累計(jì),10),COLORWHITE; stICKLINE(活躍凈額>0,0,活躍凈額,3,0),COLORRED; STICKLINE(活躍凈額<0,0,活躍凈額,3,0),COLORGREEN; |
|