Z2:=ZIGZAG(C,2,1),COLORYELLOW,HICK1;TY2:=Z2;HD2:=FILTER(BACKSET(FILTER(REF(TY2,5)=HHV(TY2,2*5+1),5),5+1),5);LD2:=FILTER(BACKSET(FILTER(REF(TY2,5)=LLV(TY2,2*5+1),5),5+1),5);A2:=REF(Z2,BARSLAST(HD2));B2:=REF(Z2,BARSLAST(LD2));T12:=BARSLAST(HD2)<BARSLAST(LD2)ANDNOT(HD2);T22:=BARSLAST(HD2)>BARSLAST(LD2)ANDNOT(LD2);压力2A:IF(T12&&A2=REF(A2,1),A2,NULL),COLORYELLOW,POINTDOT,HICK1;压力2B:IF(T12&&A2<>REF(A2,1),A2,NULL),COLORYELLOW,POINTDOT,HICK1;支撑2A:IF(T22&&B2=REF(B2,1),B2,NULL),COLORYELLOW,POINTDOT,HICK1;支撑2B:IF(T22&&B2<>REF(B2,1),B2,NULL),COLORYELLOW,POINTDOT,HICK1;MA5:MA(C,5),COLORWHITE;MA10:MA(C,10),COLORYELLOW;MA20:=MA(C,20),COLORMAGENTA,HICK1;MA60:=MA(C,60),COLORLIGHTGREY;FILLRGN(MA5>MA10,MA5,MA10,COLORLIGHTRED);FILLRGN(MA5<MA10,MA5,MA10,COLORLIGHTGREEN);DRAWKLINE1(H,O,L,C);MID:MA(CLOSE,26),HICK2,NODRAW;TMP2:=STD(CLOSE,26);TOP:MID+2*TMP2,COLORMAGENTA;BOTTOM:MID-2*TMP2,COLORLIGHTGREEN;DRAWCOLORLINE(MA5<MID,MID,REEN,COLORRED),HICK2;DIFF:=EMA(CLOSE,5)-EMA(CLOSE,26);DEA:=EMA(DIFF,50);MACD:=2*(DIFF-DEA),COLORSTICK;JC:=CROSS(DIFF,DEA);SC:=CROSSDOWN(DIFF,DEA);N1:=BARSLAST(JC)+1;N2:=BARSLAST(SC)+1;HH:=REF(HHV(H,N1),N2);//上次MACD红柱期间合约最大值HH2:=REF(REF(HH,1),N2);//上上次MACD红柱期间合约最大值MHD:=VALUEWHEN(SC,HHV(MACD,N1));//上次MACD红柱期间DIFF最大值MHD2:=VALUEWHEN(SC,REF(MHD,1));//上上次MACD红柱期间DIFF最大值LL:=REF(LLV(L,N2),N1);LL2:=REF(REF(LL,1),N1);MLD:=VALUEWHEN(JC,LLV(MACD,N2));MLD2:=VALUEWHEN(JC,REF(MLD,1));A:=MACD<0
股指期货多空文华财经指标公式期货软件指标公式赢顺云指标 来自淘豆网m.daumloan.com转载请标明出处.