运动法则之对抗周期选股指标公式

OAMV:=("999999$AMOUNT"+"399001$AMOUNT");

VAR1:=SMA(OAMV,10,1)/100000000;

活筹:=VAR1;

MA20:=MA(活筹,20);

均价:=MA(C,20)*1000;

对抗:=IF(BArslAstCOUNT(均价<REF(均价,1))>=7 AND BARSLASTCOUNT(MA20>REF(MA20,1))>=7,0.5,0);

介入:=REF(对抗,1)>0 AND 对抗=0;

对抗周期:BARSLASTCOUNT(均价<REF(均价,1) AND (MA20>REF(MA20,1)));