牛熊持仓之牛选股指标公式

VAR1:=vol/CAPITAL;

VAR2:=VOL/700000000;

VAR3:=IF(VAR1=0,VAR2,VAR1);

VAR4:=1.1*(MAX(HIGH,REF(CLOSE,1))/MIN(LOW,REF(CLOSE,1))-1);

VAR5:=2.5*MAX(VAR3,VAR4);

VAR6:=DMA(CLOSE,VAR5);

VAR7:=SMA(20*(VAR6/REF(VAR6,1)-1),2,1);

VAR8:=EMA(VAR7,2);

VARA:=0.24;

VARB:=CLOSE>=REF(CLOSE,1);

牛:IF(VAR7>VARA AND VAR8>=0.005 AND VARB,1,0);