九毛八公式指标
轨道公式源码: 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); 上轨:=(1+7/100)*DD; 下轨:=(1-7/100)*DD; 中轨:=(上轨+下轨)/2; XG:上轨>=REF(上轨,1) AND 中轨>=REF(中轨,1) AND 下轨>=REF(下轨,1) AND C>EMA(C,250);