最新更新 - 网站地图 -
您的当前位置:首页 > 股票公式 > 公式技巧 > 把理想轨道公式改成选股公式

把理想轨道公式改成选股公式

来源:网络 点击: 时间:2023-01-06 06:28:52

编写要求:

轨道公式源码: CC:=ABS((2*CLOSE+HIGH+LOW)/4-MA(CLOSE,20))/MA(CLOSE,20); DD:=DMA(CLOSE,CC); 上轨:(1+7/100)*DD,DOTLINE,COLORGREEN; 下轨:(1-7/100)*DD,DOTLINE,COLORGREEN; 中轨:(上轨+下轨)/2,DOTLINE,COLORGREEN; 疯狂:(1+14/100)*DD,DOTLINE,COLORGRAY; 抄底:(1-14/100)*DD,DOTLINE,COLORGRAY; DRAWNUMBER(ISLASTBAR,上轨,上轨),COLOR00FFFF; DRAWNUMBER(ISLASTBAR,下轨,下轨),COLORFFFF00; DRAWNUMBER(ISLASTBAR,中轨,中轨),COLOR00FF00; DRAWNUMBER(ISLASTBAR,疯狂,疯狂),COLOR0000FF; DRAWNUMBER(ISLASTBAR,抄底,抄底),COLORWHITE; 上轨绿:IF(上轨>=REF(上轨,1),上轨,DRAWNULL),DOTLINE,COLORGREEN,LINETHICK1; 上轨红:IF(上轨>=REF(上轨,1),上轨,DRAWNULL),DOTLINE COLORRED,LINETHICK1; 中轨绿:IF(中轨>=REF(中轨,1), 中轨,DRAWNULL),DOTLINE,COLORGREEN,LINETHICK1; 中轨红:IF(中轨>=REF(中轨,1), 中轨,DRAWNULL),DOTLINE COLORRED, LINETHICK1; 下轨绿:IF(下轨>=REF(下轨,1), 下轨,DRAWNULL),DOTLINE,COLORGREEN,LINETHICK1; 下轨红:IF(下轨>=REF(下轨,1), 下轨,DRAWNULL),DOTLINE COLORRED,LINETHICK1; DIR2:=ABS(CLOSE-REF(CLOSE,10)); VIR2:=SUM(ABS(CLOSE-REF(CLOSE,1)),10); ER2:=DIR2/VIR2; CS2:=ER2*(0.8-2/24)+2/24; CQ2:=CS2*CS2; {HHJSJDA:=(3*CLOSE+OPEN+LOW+HIGH)/6; HHJSJDB:(20*HHJSJDA+19*REF(HHJSJDA,1)+18*REF(HHJSJDA,2)+17*REF(HHJSJDA,3)+16*REF(HHJSJDA,4)+15*REF(HHJSJDA,5)+14*REF(HHJSJDA,6) +13*REF(HHJSJDA,7)+12*REF(HHJSJDA,8)+11*REF(HHJSJDA,9)+10*REF(HHJSJDA,10)+9*REF(HHJSJDA,11)+8*REF(HHJSJDA,12) +7*REF(HHJSJDA,13)+6*REF(HHJSJDA,14)+5*REF(HHJSJDA,15)+4*REF(HHJSJDA,16)+3*REF(HHJSJDA,17)+2*REF(HHJSJDA,18)+ REF(HHJSJDA,20))/210,COLORYELLOW; HHJSJDC:MA(HHJSJDB,5),COLORRED;} MA5:MA(C,5),COLOR00FF00; IF(MA5>REF(MA5,1),MA5,DRAWNULL),COLORRED; BBI:EMA((WMA(CLOSE,3)+WMA(CLOSE,6)+WMA(CLOSE,12)+WMA(CLOSE,24))/4,13),COLOR00FF00; IF(BBI>REF(BBI,1),BBI,DRAWNULL),COLORRED; {散户筹码} INLINE:=EMA(C,250); CHIPS:INLINE-(EMA(C,3)-INLINE),COLORGRAY; 选股公式买入条件: 1\轨道变化为红色; 2\EMA250线刚刚下穿股价或长期处于K线下方;

解答:

?CC:=ABS((2*CLOSE+HIGH+LOW)/4-MA(CLOSE,20))/MA(CLOSE,20);

DD:=DMA(CLOSE,CC);

    Copyright 2018- www.dyjian.com/ 大宇股票知识网 海口美兰韩哲棚百货商行 版权所有 琼ICP备2023001966号

    免责声名:本站所发表的内容仅用于学术交流和学习,内容所带来的一切后果均与本站无关。若您发现本站存在您非授权的原创作品,请第一时间联系本站删除!

    Top