编写要求:
麻烦老师编一个选出运行在融胜轨道安全线之上股票的选股公式,谢谢!!! 融胜轨道源码: AAA:=MA((2*CLOSE+HIGH+LOW)/4,5); 通1:=AAA*102/100; 通2:=AAA*(200-102)/100; CC:=ABS((2*CLOSE+HIGH+LOW)/4-MA(CLOSE,20))/MA(CLOSE,20); DD:=DMA(CLOSE,CC); 上:(1+7/100)*DD,CROSSDOT,COLORGREEN; 下:(1-7/100)*DD,CROSSDOT,COLORGREEN; 中:(上+下)/2,LINETHICK1,COLORGREEN; 顶:(1+14/100)*DD,CROSSDOT,COLORWHITE; 底:(1-14/100)*DD,CROSSDOT,COLORBLUE; IF(上>=REF(上,1), 上,DRAWNULL),CROSSDOT,COLORRED; IF(中>=REF(中,1), 中,DRAWNULL),LINETHICK1,COLORRED; IF(下>=REF(下,1), 下,DRAWNULL),CROSSDOT,COLORRED; IF(顶>=REF(顶,1), 顶,DRAWNULL),CROSSDOT,COLORRED; IF(底>=REF(底,1), 底,DRAWNULL),CROSSDOT,COLORRED; DRAWNUMBER(ISLASTBAR,上,上),COLOR0099FF; DRAWNUMBER(ISLASTBAR,下,下),COLOR0099FF; DRAWNUMBER(ISLASTBAR,中,中),COLORWHITE; DRAWNUMBER(ISLASTBAR,顶,顶),COLOR0000FF; DRAWNUMBER(ISLASTBAR,底,底),COLORWHITE; {MACD变色} DIFF := EMA(CLOSE,12) - EMA(CLOSE,26); DEA := EMA(DIFF,9); MACD := 2*(DIFF-DEA); IF(MACD<0 OR DIFF<0,中,DRAWNULL),LINETHICK1,COLORGREEN; IF(DIFF>=0 AND MACD>=0,中,DRAWNULL),LINETHICK1,COLORRED; {工作线} A0:=(L+H+C*2)/4; A1:EMA(A0,14)COLORGREEN,LINETHICK2; A2:=EMA(A0,25)COLORLIBLUE,LINETHICK2; A1X:=(A1-REF(A1,1))/REF(A1,1)*100,NODRAW; A2X:=(A2-REF(A2,1))/REF(A2,1)*100,NODRAW; 铁:IF(A1X>=0,A1,DRAWNULL)COLORRED,LINETHICK2; 律:IF(A1X<0 AND A2X<0,A1,DRAWNULL)COLORGREEN,LINETHICK2;
解答:
?C>=EMA((L+H+C*2)/4,14);
Copyright 2018- www.dyjian.com/ 大宇股票知识网 海口美兰韩哲棚百货商行 版权所有 琼ICP备2023001966号
免责声名:本站所发表的内容仅用于学术交流和学习,内容所带来的一切后果均与本站无关。若您发现本站存在您非授权的原创作品,请第一时间联系本站删除!