网友求助:
当日上市K线数:=BARSLAST(IF(DATE>REF(DATE,1),20,0));
统计A:=COUNT(SLOPE(CLOSE,2)>0,239);
统计B:=COUNT(SLOPE(CLOSE,2)>0,当日上市K线数);
统计C:=COUNT(SLOPE(CLOSE,2)<0,当日上市K线数);
统计D:=COUNT(SLOPE(CLOSE,2)=0,当日上市K线数);
BA:=IF(SLOPE(CLOSE,2)>0,VOL,0);
BB:=IF(SLOPE(CLOSE,2)<0,VOL,0);
BC:=IF(SLOPE(CLOSE,2)=0,VOL,0);
C1:=SUM(BA,当日上市K线数);
C2:=SUM(BB,当日上市K线数);
C3:=SUM(BC,当日上市K线数);
CC1:=SUM(BA,0);
CC2:=SUM(BB,0);
CC3:=SUM(BC,0);
CC:=CC1+CC2+CC3;
主动盘:=CC1/CC*100;
主力线:EMA(主动盘,21),LINETHICK2,coloryellow;
解答如下:
BA:=IF(SLOPE(CLOSE,2)>0,VOL,0);
BB:=IF(SLOPE(CLOSE,2)<0,VOL,0);
BC:=IF(SLOPE(CLOSE,2)=0,VOL,0);
CC1:=SUM(BA,0);
CC2:=SUM(BB,0);
CC3:=SUM(BC,0);
CC:=CC1+CC2+CC3;
主动盘:=CC1/CC*100;
主力线:=EMA(主动盘,21);
LAST(C<REF(C,1))>=3 AND LAST(主力线>REF(主力线,1))>=2;