编写要求:
www.gszx.com.cn网解答:
网友求助:
请老师写个周线的选股预警,先谢谢啦。(大智慧软件用)
要求:
1、轨道周线的角度要大于5°
2、周线上,第一周是跟大阳线,涨幅要求大于10%,从第二周开始缩量下跌,当股价跌至轨道中轨的时候做个预警;当股价跌至下轨的时候再做个预警。也就是做2个预警。
解答如下:
[hide][
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.1,1) AND V<REF(V,1) AND C<REF(C,1) AND CROSS(中,C);