鳄鱼macd指标

合集下载
相关主题
  1. 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
  2. 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
  3. 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。

鳄鱼线 Y:=((HIGH + LOW) / 2); BLUE:=SMA(Y,13,1); RED:=SMA(Y,8,1); GREEN:=SMA(Y,5,1); B2:=REF(BLUE,8); R2:=REF(RED,5); G2:=REF(GREEN,3); KU1:=IF((HIGH = HHV(HIGH,3)),1,0); KD1:=IF((LOW = LLV(LOW,3)),1,0); UL:=IF((((REF(KU1,2) = 1) AND (REF(KU1,1) = 0)) AND (KU1 = 0)),REF(HIGH,2),REF(HIGH,(2 + BARSLAST((((REF(KU1,2) = 1) AND (REF(KU1,1) = 0)) AND (KU1 = 0)))))); DL:=IF((((REF(KD1,2) = 1) AND (REF(KD1,1) = 0)) AND (KD1 = 0)),REF(LOW,2),REF(LOW,(2 + BARSLAST((((REF(KD1,2) = 1) AND (REF(KD1,1) = 0)) AND (KD1 = 0)))))); KU:=IF((((CLOSE > B2) AND (CLOSE > R2)) AND (CLOSE > G2)),1,0); KD:=IF((((CLOSE < B2) AND (CLOSE < R2)) AND (CLOSE < G2)),(0 - 1),0); KK:=IF((BARSLAST(((KU = 1) AND (REF(KU,1) = 0))) < BARSLAST(((KD = (0 - 1)) AND (REF(KD,1) = 0)))),1,(0 - 1)); AO:=(MA(Y,5) - MA(Y,34)); AC:=MA((AO - MA(AO,5)),5); AC1:=REF(AC,1); AO1:=REF(AO,1); AO转:(((((170 * MA(Y,5)) - (170 * MA(Y,34))) + (165 * MA(Y,33))) - (136 * MA(Y,4))) / 29),LINETHICK0; AO零:(((165 * MA(Y,33)) - (136 * MA(Y,4))) / 29),LINETHICK0; AC转:((((165 * MA(Y,33)) - (136 * MA(Y,4))) + ((170 * ((4 * MA(AO,4)) + (5 * (REF(AO,4) - MA(REF(AO,4),5))))) / 4)) / 29),LINETHICK0; AC零:((((((170 * 4) * MA(AO,4)) + ((20 * 33) * MA(Y,33))) - ((16 * 34) * MA(Y,4))) - (((170 * 5) * 4) * MA((AO - MA(AO,5)),4))) / 116),LINETHICK0; KAC:=IF(((AC > AC1) AND (AO > AO1)),1,0); KAO:=IF(((AC < AC1) AND (AO < AO1)),(0 - 1),0); 蓝:SMA(Y,13,1),SHIFT8,colorFF0000; 红:SMA(Y,8,1),SHIFT5,colorFF; 绿:SMA(Y,5,1),SHIFT3,colorFF00; 上碎型:IF((HIGH >= R2),UL,REF(UL,BARSLAST((HIGH > R2)))),LINETHICK0,colorFF00FF; 下碎型:IF((LOW <= R2),DL,REF(DL,BARSLAST((LOW <= R2)))),LINETHICK0,colorFFFF; STICKLINE((BARSLAST(ABS((上碎型 - REF(上碎型,1)))) < BARSLAST(((CLOSE > 上碎型) AND (REF(CLOSE,1) < REF(上碎型,1))))),上碎型,上碎型,3,1),colorFF00FF; STICKLINE((BARSLAST(ABS((下碎型 - REF(下碎型,1)))) < BARSLAST(((CLOSE < 下碎型) AND (REF(CLOSE,1) > REF(下碎型,1))))),下碎型,下碎型,3,1),colorFFFF; OL:=(((((170 * MA(Y,5)) - (170 * MA(Y,34))) + (165 * MA(Y,33))) - (136 * MA(Y,4))) / 29); CL:=((((165 * MA(Y,33)) - (136 * MA(Y,4))) + ((170 * ((4 * MA(AO,4)) + (5 * (REF(AO,4) - MA(REF(AO,4),5))))) / 4)) / 29); H1:=REF(HIGH,4); H2:=REF(HIGH,3); H3:=REF(HIGH,2); H4:=REF(HIGH,1); H5:=HIGH; L1:=REF(LOW,4); L2:=REF(LOW,3); L3:=REF(LOW,2); L4:=REF(LOW,1); L5:=LOW; ‖:=((((H3 > H2) AND (H3 > H1)) AND (H3 > H4)) AND (H3 > H5)); ‖FRACTAL:=IF(‖,1,0); ‖VAR1:=BACKSET(‖FRACTAL,3); ‖VAR2:=FILTER(‖VAR1,2); ‖VAR3:=BACKSET(‖FRACTAL,5); ∣:=((((L3 < L2) AND (L3 < L1)) AND (L3 < L4)) AND (L3 < L5)); ∣FRACTAL:=IF(∣,1,0); ∣VAR1:=BACKSET(∣FRACTAL,3); ∣VAR2:=FILTER(∣VAR1,2); ∣VAR3:=BACKSET(∣FRACTAL,5); DRAWICON(‖VAR2,(HIGH * 1.001),''); DRAWICON(∣VAR2,LOW,'S14'); DRAWICON(((CLOSE > 上碎型) AND (REF(CLOSE,1) < REF(上碎型,1))),(HIGH * 1.015),4); DRAWICON(((CLOSE < 下碎型) AND (REF(CLOSE,1) > REF(下碎型,1))),(LOW * 0.99),5); DRAWICON((((KU = 1) AND (REF(KU,1) = 0)) AND

(CLOSE < 0)),LOW,4); DRAWICON((((KD = (0 - 1)) AND (REF(KD,1) = 0)) AND (CLOSE < 0)),(HIGH * 1.01),5); DRAWICON((((KU = 0) AND (REF(KU,1) = 1)) AND (CLOSE < 0)),(HIGH * 1.01),7); DRAWICON((((KD = 0) AND (REF(KD,1) = (0 - 1))) AND (CLOSE < 0)),LOW,6); STICKLINE(((KAC = 1) AND (CLOSE >= OPEN)),OPEN,CLOSE,8,1),colorFF; STICKLINE(((KAO = (0 - 1)) AND (CLOSE >= OPEN)),OPEN,CLOSE,8,1),color6600; STICKLINE((((KAO = 0) AND (KAC = 0)) AND (CLOSE >= OPEN)),OPEN,CLOSE,8,1),color808080; STICKLINE((CLOSE >= OPEN),HIGH,CLOSE,0.4,1),colorFF; STICKLINE((CLOSE >= OPEN),OPEN,LOW,0.4,1),colorFF; STICKLINE(((KAC = 1) AND (CLOSE < OPEN)),OPEN,CLOSE,8,0),colorFF; STICKLINE(((KAO = (0 - 1)) AND (CLOSE < OPEN)),OPEN,CLOSE,8,0),color6600; STICKLINE((((KAO = 0) AND (KAC = 0)) AND (CLOSE < OPEN)),OPEN,CLOSE,8,0),color808080; STICKLINE((OPEN > CLOSE),HIGH,OPEN,0.4,1),colorFFFF00; STICKLINE((OPEN > CLOSE),CLOSE,LOW,0.4,1),colorFFFF00; EXPLAIN(((CLOSE > 上碎型) AND (REF(CLOSE,1) < REF(上碎型,1))),'向上有效碎型/n被突破'),colorFFFF00; EXPLAIN(((CLOSE < 下碎型) AND (REF(CLOSE,1) > REF(下碎型,1))),'向下有效碎型被突破'),colorFFFF00; EXPLAINEX((BARSLAST(ABS((上碎型 - REF(上碎型,1)))) < BARSLAST(((CLOSE > 上碎型) AND (REF(CLOSE,1) < REF(上碎型,1))))),'有效上碎型:',上碎型,2,1); EXPLAINEX((BARSLAST(ABS((下碎型 - REF(下碎型,1)))) < BARSLAST(((CLOSE < 下碎型) AND (REF(CLOSE,1) > REF(下碎型,1))))),'有效下碎型:',下碎型,2,1); EXPLAIN((KAC = 1),'AO与AC为多方趋势'); EXPLAIN((KAO = (0 - 1)),'AO与AC为空方趋势'); EXPLAIN(((KAC = 0) AND (KAO = 0)),'注意动量趋势是否即将反转'); EXPLAIN(((((REF(KAO,2) = (0 - 1)) OR ((REF(KAC,2) = 0) AND (REF(KAO,2) = 0))) AND (REF(KAC,1) = 1)) AND (KAC = 1)),'红色区域多单进场'); EXPLAIN(((((REF(KAC,2) = 1) OR ((REF(KAC,2) = 0) AND (REF(KAO,2) = 0))) AND (REF(KAO,1) = (0 - 1))) AND (KAO = (0 - 1))),'绿色区域空单进场'); EXPLAIN(((((((REF(KAO,4) = (0 - 1)) OR ((REF(KAC,4) = 0) AND (REF(KAO,4) = 0))) AND (REF(KAC,3) = 1)) AND (REF(KAC,2) = 1)) AND (REF(KAC,1) = 1)) AND (KAC = 1)),'红色区域多单停止加码'); EXPLAIN(((((((REF(KAC,4) = 1) OR ((REF(KAC,4) = 0) AND (REF(KAO,4) = 0))) AND (REF(KAO,3) = (0 - 1))) AND (REF(KAO,2) = (0 - 1))) AND (REF(KAO,1) = (0 - 1))) AND (KAO = (0 - 1))),'绿色区域空单停止加码'); KA:=IF(((GREEN > RED) AND (RED > BLUE)),1,IF(((GREEN < RED) AND (RED < BLUE)),(0 - 1),0)); EXPLAIN((KA = 1),'鳄鱼向上张嘴, 作多不作空'); EXPLAIN((KA = (0 - 1)),'鳄鱼向下张嘴, 作空不作多'); EXPLAIN((KA = 0),'鳄鱼沈睡中,观望为主'); D3U:=HHV(REF(HIGH,1),3); D3L:=LLV(REF(LOW,1),3); K3K:=IF((CLOSE > D3U),1,IF((CLOSE < D3L),(0 - 1),IF((BARSLAST((CLOSE > D3U)) < BARSLAST((CLOSE < D3L))),1,(0 - 1)))); EXPLAIN((K3K = 1),'短线多方趋势'); EXPLAIN((K3K = (0 - 1)),'短线空方趋势'); EXPLAINEX((CLOSE > 0),'短线反转价:',IF((K3K = 1),D3L,D3U),2,1); EXPLAIN(((CLOSE < B2) AND (B2 < REF(B2,1))),'中期空方趋势'

); EXPLAIN(((CLOSE < B2) AND (B2 >= REF(B2,1))),'怀疑中期空方'); EXPLAIN(((CLOSE > B2) AND (B2 >= REF(B2,1))),'中期多方趋势'); EXPLAIN(((CLOSE > B2) AND (B2 < REF(B2,1))),'怀疑中期多方'); ------------------------------------------------------------------------------------------------------------------ {MACD实战破译} {参数 :SHORT 12、 LONG 26、 M 9} INPUT:SHORT(12,1,100,1),LONG(26,1,100,1), M(9,1,100,2); DIF:EMA(CLOSE,SHORT)-EMA(CLOSE,LONG); MACD:EMA(DIF,M),COLOR58FF58; DEF:2*(DIF-MACD),COLORFFFF00,LINETHICK0; STICKLINE(DEF>=0 AND DEF>=REF(DEF,1),0,DEF,6,1),COLOR6058FF; STICKLINE(DEF>=0 AND DEF< REF(DEF,1),0,DEF,6,0),COLOR6058FF; STICKLINE(DEF<0 AND DEF>=REF(DEF,1),0,DEF,6,1),COLORFFFF00; STICKLINE(DEF<0 AND DEF< REF(DEF,1),0,DEF,6,0),COLORFFFF00; PARTLINE(DIF<1000,0),COLORBROWN; 多头趋势:=IF(DIF>=0 AND MACD>=0 OR (DIF<0 AND MACD>=0),1,0); 空头趋势:=DIF<0 AND MACD<0 OR (DIF>=0 AND MACD<0); 缩头:=IF(DEF>0 AND REF(DEF,1)>REF(DEF,2) AND DEF< REF(DEF,1),1,0); 缩脚:=IF(DEF<0 AND REF(DEF,1)< REF(DEF,2) AND DEF>REF(DEF,1),1,0); 阻力:=IF(CROSS(C,MA(C,20)) OR CROSS(C,MA(C,60)),1,0); 支撑:=IF(CROSS(MA(C,20),C) OR CROSS(MA(C,60),C),1,0); 做多:=IF(CROSS(MACD,DIF) AND DIF>0 AND MACD>0,1,0); 放空:=IF(CROSS(DIF,MACD) AND DIF<0 AND MACD<0,1,0); DRAWICON(多头趋势,DIF,10),ALIGN4; DRAWICON(空头趋势,DIF,11),ALIGN5; PARTLINE(DIF<1000,DIF),,COLORCCFFFF,LINETHICK2; PARTLINE(MACD<1000,MACD),COLOR58FF58; DRAWICON(FILTER(缩头,3) AND 缩头,DEF+0.01,5),ALIGN0; DRAWICON(FILTER(缩脚,3) AND 缩脚,DEF,4),ALIGN1; DRAWICON(FILTER(阻力,16) AND DEF>=0,DEF+0.01,12),ALIGN0; DRAWICON(FILTER(支撑,16) AND DEF<0,DEF,12),ALIGN1; EXPLAIN(DIF<1000,'----------------------------------------------------------------------------'),COLORBROWN; EXPLAIN(多头趋势, '§§§长线为多头趋势§§§§'),COLORRED; EXPLAIN(空头趋势, '§§§长线为空头趋势§§§§'),COLORGREEN; EXPLAIN(DIF<1000,'----------------------------------------------------------------------------'),COLORBROWN; EXPLAIN(缩头, '§请注意DEF柱状缩头'),COLORFFFF00; EXPLAIN(缩脚, '§请注意DEF柱状缩脚'),COLORFFFF00; EXPLAIN(FILTER(支撑,16) AND DEF<0, '§DEF柱状特殊研判'),COLORFFFF00; EXPLAIN(做多=0 AND FILTER(支撑,16) AND DEF<0, '§多头注意今明两日低点支撑'),COLORFFFF00; EXPLAIN(FILTER(阻力,16) AND DEF>=0, '§DEF柱状特殊研判'),COLORFFFF00; EXPLAIN(放空=0 AND FILTER(阻力,16) AND DEF>=0, '§空头注意今明两日高点压力'),COLORFFFF00; EXPLAIN(做多, '§多头注意今明两日低点支撑'),COLORFFFF00; EXPLAIN(做多, '§找日出K线做多,用线控盘'),COLORFFFF00; EXPLAIN(放空, '§空头注意今明两日高点压力'),COLORFFFF00; EXPLAIN(放空, '§找日落K线放空,用线控盘'),COLORFFFF00; EXPLAIN(CROSS(MACD,0), '§注意长线趋势空转多'),COLORRED; EXPLAIN(CROSS(0,MACD), '§注意长线趋势多转空'),COLORGREEN; A:=C>=REF(C,2); B:=C< REF(C,2);

ZA:=BARSLAST(A); ZB:=BARSLAST(B); LA:=REF(L,ZA); HB:=REF(H,ZB); EXPLAIN(多头趋势 AND C< LA, '§防守价跌破:多头小心'),COLORRED; EXPLAIN(空头趋势 AND C>HB, '§防守价突破:空头小心'),COLORRED; EXPLAIN(DIF<1000,'----------------------------------------------------------------------------'),COLORBROWN; EXPLAINEX(多头趋势, 'MACD多头防守价:',LA,2,0),COLOR3399FF ; EXPLAINEX(空头趋势, 'MACD空头防守价:',HB,2,0),COLOR3399FF ; EXPLAIN(DIF<1000,'----------------------------------------------------------------------------'),COLORBROWN; EXPLAIN((COUNT(C>REF(C,1),30)>18 AND (COUNT(C>REF(C,1),3)=3)) AND (COUNT(DEF< REF(DEF,1),30)>18),'§反转--股价将可能反转向下'),COLOR58FF58; EXPLAIN((COUNT(C< REF(C,1),30)>18 AND (COUNT(C< REF(C,1),3)=3)) AND (COUNT(DEF>REF(DEF,1),30)>18),'§反转--股价将可能反转向上'),COLOR58FF58; EXPLAIN(DEF<0 AND ABS(DEF)>REF(ABS(DEF),1),'§MACD绿柱增长'),COLOR58FF58; EXPLAIN(DEF<0 AND ABS(DEF)< REF(ABS(DEF),1),'§MACD绿柱缩短'),COLOR58FF58; EXPLAIN(DEF>0 AND DEF>REF(DEF,1),'§MACD红柱增长'),COLOR58FF58; EXPLAIN(DEF>0 AND DEF< REF(DEF,1),'§MACD红柱缩短'),COLOR58FF58; EXPLAIN((LLV(L,60)=L) AND (NOT(LLV(MACD,60)=MACD)),'§底背离--属买入信号'),COLOR58FF58; EXPLAIN((HHV(H,60)=H) AND (NOT(HHV(MACD,60)=MACD)),'§顶背离--属卖出信号'),COLOR58FF58; EXPLAIN(CROSS(MACD,DIF) AND MACD<0,'§MACD在0轴下死叉'),COLOR58FF58; EXPLAIN(CROSS(DIF,MACD) AND MACD<0,'§MACD在0轴下金叉'),COLOR58FF58; EXPLAIN(CROSS(DIF,MACD),'§金叉--属买入信号'),COLOR58FF58; EXPLAIN(CROSS(MACD,DIF),'§死叉--属卖出信号'),COLOR58FF58; EXPLAIN(CROSS(DIF,MACD) AND MACD>0,'§MACD在0轴上金叉'),COLOR58FF58; EXPLAIN(CROSS(MACD,DIF) AND MACD>0,'§MACD在0轴上死叉'),COLOR58FF58; EXPLAIN(CROSS(DIF,MACD) AND CROSS(DEF,0),'§上穿0轴,可考虑买入'),COLOR58FF58; EXPLAIN(FILTER(CROSS(DIF,MACD) AND MACD>0,13),'§高位金叉'),COLOR58FF58; EXPLAIN(FILTER(CROSS(DIF,MACD) AND MACD<0,6),'§低位金叉'),COLOR58FF58; EXPLAIN(COUNT(CROSS(DIF,MACD) AND MACD>0,20)=2 AND CROSS(DIF,MACD) AND MACD>0,'§0轴上二次金叉'),COLOR58FF58; EXPLAIN(COUNT(CROSS(DIF,MACD) AND MACD>0,20)=3 AND CROSS(DIF,MACD) AND MACD>0,'§0轴上三次金叉'),COLOR58FF58; EXPLAIN(COUNT(CROSS(DIF,MACD) AND MACD>0,20)=4 AND CROSS(DIF,MACD) AND MACD>0,'§0轴上四次金叉'),COLOR58FF58; EXPLAIN(COUNT(CROSS(MACD,DIF),20)=2 AND CROSS(MACD,DIF),'§二次死叉,跌幅可能较深'),COLOR58FF58; EXPLAIN(COUNT(CROSS(DIF,MACD),20)=2 AND CROSS(DIF,MACD),'§二次金叉,涨幅可能较大'),COLOR58FF58; EXPLAIN(DIF>=0 AND DEF>=0 AND DEF<=REF(DEF,1),'§上涨趋势有所减缓,短线投资者可逢高卖出,但当回落至均线或其他支撑位时应及时回补'),COLOR58FF58; EXPLAIN(DIF<0 AND DEF>0 AND DEF>REF(DEF,1),'§目前正处于反弹阶段,应保持谨慎'),COLOR58FF58; EXPLAIN(DEF>0 AND DIF>0 AND DIF>MACD AND DIF>REF(DIF,1) AND C>REF(C,1),'§上升趋势尚未改变'),COLOR58FF

58; EXPLAIN(DIF<0 AND DEF>0 AND DEF< REF(DEF,1),'§短线反弹已经结束,应继续坚持谨慎原则'),COLOR58FF58; EXPLAIN(DIF<0 AND DEF<=0 AND DEF< REF(DEF,1),'§有加速下跌趋势'),COLOR58FF58; EXPLAIN(DIF<0 AND DEF<=0 AND DEF>=REF(DEF,1),'§下跌趋势有所减缓,可在W&R指标大于90时逢低买入,但有可能再次加速下跌,注意及时止损'),COLOR58FF58; EXPLAIN(DEF<0 AND DIF<0 AND DIF< MACD AND DIF< REF(DIF,1) AND C< REF(C,1),'§下降趋势尚未改变'),COLOR58FF58; EXPLAIN(DIF>=0 AND DEF>=0 AND DEF>REF(DEF,1),'§有加速上涨趋势'),COLOR58FF58; EXPLAIN(DIF>=0 AND DEF<0 AND DEF< REF(DEF,1),'§目前正处于回落整理阶段,且回落有加速趋势'),COLOR58FF58; EXPLAIN(DIF>=0 AND DEF<0 AND DEF>=REF(DEF,1),'§目前正处于回落整理阶段,但整理即将结束,可在均线或其他支撑位附近逢低买入,但当整理完成后选择再次向下突破时应注意及时止损'),COLOR58FF58; EXPLAIN(DEF<-0.35,'§超卖中,随时有可能反弹'),COLOR58FF58; EXPLAIN(DEF>0.35,'§股价超买中,随时有可能回档'),COLOR58FF58; EXPLAIN(DIF<1000,'----------------------------------------------------------------------------'),COLORBROWN; G:=26; S:=12; CC:=CLOSE; ESS:=EMA(CC,12); EGG:=EMA(CC,12); RDIF:=REF(DIF,1); RSS:=REF(ESS,1); RGG:=REF(EGG,1); RMACD:=REF(MACD,1); RDEF:=REF(DEF,1); RZZZ:=(RMACD+((M+1)/(2*(M-1)))*RDEF); XDIF:=((G-1)*(S+1)*RGG-(G+1)*(S-1)*RSS+(S+1)*(G+1)*RDIF)/(2*G-2*S); XMACD:=((G-1)*(S+1)*RGG-(G+1)*(S-1)*RSS+(S+1)*(G+1)*RMACD)/(2*G-2*S); XDEF:=((G-1)*(S+1)*RGG-(G+1)*(S-1)*RSS+(S+1)*(G+1)*RZZZ)/(2*G-2*S); AA:=ISLASTBAR; BB:=BACKSET(AA=1,1); Y:=BARSLAST(BB=1); X:=Y+1; TDIF:=DIF*X; TSS:=ESS*X; TGG:=EGG*X; TMACD:=MACD*X; TDEF:=DEF*X; TZZZ:=(TMACD+((M+1)/(2*(M-1)))*TDEF); YDIF:=((G-1)*(S+1)*TGG-(G+1)*(S-1)*TSS+(S+1)*(G+1)*TDIF)/(2*G-2*S); YMACD:=((G-1)*(S+1)*TGG-(G+1)*(S-1)*TSS+(S+1)*(G+1)*TMACD)/(2*G-2*S); YDEF:=((G-1)*(S+1)*TGG-(G+1)*(S-1)*TSS+(S+1)*(G+1)*TZZZ)/(2*G-2*S); EE:=1; EXPLAINEX(EE=1,'§DIF....今日转折',XDIF,2,1),COLORCCFFFF ; EXPLAINEX(EE=1,'§MACD今日转折',XMACD,2,1),COLOR3399FF ; EXPLAINEX(EE=1,'§DEF...今日转折',XDEF,2,1),COLORFF9966 ; EXPLAIN(DIF<1000,'----------------------------------------------------------------------------'),COLORBROWN; EXPLAINEX(EE=1,'§DIF....明日转折',YDIF,2,1),COLORCCFFFF; EXPLAINEX(EE=1,'§MACD明日转折',YMACD,2,1),COLOR3399FF; EXPLAINEX(EE=1,'§DEF...明日转折',YDEF,2,1),COLORFF9966; EXPLAIN(DIF<1000,'----------------------------------------------------------------------------'),COLORBROWN;

相关文档
最新文档