大智慧股性活跃度指标公式

REFLINE:2;

{-----------趋势与股性-----------}

CS:=DMA(AMOUNT/(100*vol),VOL/CAPITAL);

M20:=MA(C,20);

M30:=MA(C,30);

M2:=M20>REF(M20,1);

M3:=M30>REF(M30,1);

MCS:=CS>REF(CS,1);

TRD:=M2+M3+MCS>1;{趋势}

LBARS:=LLVBARS(L,21);

BARS:=IF(LBARS<13,13,LBARS);

acT:=SMA(MAX(Abs(C-O),ABS(C-REF(C,1)))/REF(C,1)*100,10,1);{活跃度}

YD:=ACT>LLV(ACT,13)*1.2;{异动}

A1:=ACT<2 AND NOT(YD);{弱}

A2:=ACT<2 AND YD;{异动}

A3:=ACT>=2 AND TRD;{强}

A4:=ACT>=2 AND NOT(TRD); {跌}

partline(ACT,A1,RGB(0,50,238),A2,RGB(238,130,98), A3,RGB(255,0,0),A4,RGB(0,255,0)),PRECIS2,LINETHICK2;