编写要求:
www.gszx.com.cn网解答:
网友求助:
1.股价突破中轨 2.虚拟量能大于昨天 3.KDJ金叉
源码如下:CC:=ABS((2*CLOSE+HIGH+LOW)/4-MA(CLOSE,20))/MA(CLOSE,20);
DD:=DMA(CLOSE,CC);
上:(1+7/100)*DD,CROSSDOT,COLORGRAY;
下:(1-7/100)*DD,CROSSDOT,COLORGRAY;
中:(上+下)/2,CROSSDOT,COLORF0F000;
危:(1+14/100)*DD,COLORGRAY;
机:(1-14/100)*DD,COLORGRAY;
解答如下:
VV:=IF(ISLASTBAR,V*240/FROMOPEN,V);
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;
CROSS(C,中) AND CROSS(KD.K,KD.D) AND VV>REF(VV,1);