网友求助:
要求将周涨幅修改为涨幅要求大于12%,--------即该大阳线的实体部分的涨幅大于12%,最后请老师再剔除st和停牌的
谢谢啦。
原公式如下;
AA:=MA((2*CLOSE+HIGH+LOW)/4,5);
通1:=AA*102/100;
通2:=AA*(200-102)/100;
CC:=ABS((2*CLOSE+HIGH+LOW)/4-MA(CLOSE,20))/MA(CLOSE,20);
DD:=DMA(CLOSE,CC);
上:=(1+7/100)*DD;
下:=(1-7/100)*DD;
中:=(上+下)/2;
ZF:=(C/REF(C,1)-1)*100;
XG下:REF(ZF>1.1,1) AND V<REF(V,1) AND C<REF(C,1) AND CROSS(下,C);
解答如下:
AA:=MA((2*CLOSE+HIGH+LOW)/4,5);
通1:=AA*102/100;
通2:=AA*(200-102)/100;
CC:=ABS((2*CLOSE+HIGH+LOW)/4-MA(CLOSE,20))/MA(CLOSE,20);
DD:=DMA(CLOSE,CC);
上:=(1+7/100)*DD;
下:=(1-7/100)*DD;
中:=(上+下)/2;
ZF:=(C/REF(C,1)-1)*100;
XG下:REF(ZF>1.12,1) AND V<REF(V,1) AND C<REF(C,1) AND CROSS(下,C) AND STRFIND(STKNAME,'ST',1)>0 AND DYNAINFO(4)<>0;