打印本文打印本文 关闭窗口关闭窗口

同步显示

作者:文华财经 来源:cxh99.com 发布时间:2024年03月16日
  • 咨询内容:  

    NG:=BACKSET(ISLASTBAR,BARSLAST(CROSS(TIME>=IFELSE(PERIOD=0&&EXIST(TIME>2400,DAYBARPOS),090000,0900)&&TIME<IFELSE(PERIOD=0&&EXIST(TIME>2400,DAYBARPOS),150000, 1500),0.5)||CROSS(TIME>=IFELSE(PERIOD=0&&EXIST(TIME>2400,DAYBARPOS),210000,2100)&&TIME<IFELSE(PERIOD=0&&EXIST(TIME>2400,DAYBARPOS),220000,2200),0.5))+1);////指标 2
    //老师 以上边指标为依据 修改下面指标显示,与其同步显示,多余的不要。
    DIFF : =EMA(CLOSE,12) - EMA(CLOSE,26);
    DEA  : =EMA(DIFF,9);
    MACD:=2*(DIFF-DEA),COLORSTICK;
    J:CROSS(MACD,0),NODRAW;
    S:CROSSDOWN(MACD,0),NODRAW;
    HH:=CROSS(BACKSET(ISLASTBAR&&MACD>0||REFX(S,1),HHVBARS(MACD,BARSLAST(J)+1)+1),0.5);
    LL:=CROSS(BACKSET(ISLASTBAR&&MACD<0||REFX(J,1),LLVBARS(MACD,BARSLAST(S)+1)+1),0.5);
    IF((MACD>0&&EXIST(HH,BARSLASTCOUNT(MACD>0))&&VALUEWHEN( HH,MACD<REF(VALUEWHEN(HH,MACD),1)))&&H>VALUEWHEN(S,REF(HHV(H,BARSLAST(J)+1),1)),H,NULL),COLORRED,CIRCLEDOT;
    IF((MACD<0&&EXIST(LL,BARSLASTCOUNT(MACD<0))&&VALUEWHEN( LL,MACD>REF(VALUEWHEN(LL,MACD),1)) )&&L<VALUEWHEN(J,REF(LLV(L,BARSLAST(S)+1),1)),L,NULL),COLORRED,CIRCLEDOT;
    IF((BACKSET(HH&&MACD<REF(VALUEWHEN(HH,MACD),1),BARSLAST(J)+1) )&&H>VALUEWHEN(S,REF(HHV(H,BARSLAST(J)+1),1)),H,NULL),COLORYELLOW,CIRCLEDOT;
    IF((BACKSET(LL&&MACD>REF(VALUEWHEN(LL,MACD),1),BARSLAST(S)+1) )&&L<VALUEWHEN(J,REF(LLV(L,BARSLAST(S)+1),1)),L,NULL),COLORYELLOW,CIRCLEDOT;
    DRAWICON(HH,H,159);
    DRAWICON(LL,L,78),VALIGN0;

     

     

     

     来源:程序化99

  • 文华技术人员:  参考:
    NG:=BACKSET(ISLASTBAR,BARSLAST(CROSS(TIME>=IFELSE(PERIOD=0&&EXIST(TIME>2400,DAYBARPOS),090000,0900)&&TIME<IFELSE(PERIOD=0&&EXIST(TIME>2400,DAYBARPOS),150000, 1500),0.5)||CROSS(TIME>=IFELSE(PERIOD=0&&EXIST(TIME>2400,DAYBARPOS),210000,2100)&&TIME<IFELSE(PERIOD=0&&EXIST(TIME>2400,DAYBARPOS),220000,2200),0.5))+1);////指标 2 //老师 以上边指标为依据 修改下面指标显示,与其同步显示,多余的不要。 DIFF : =EMA(CLOSE,12) - EMA(CLOSE,26); DEA  : =EMA(DIFF,9); MACD:=2*(DIFF-DEA),COLORSTICK; J:CROSS(MACD,0),NODRAW; S:CROSSDOWN(MACD,0),NODRAW; HH:=CROSS(BACKSET(ISLASTBAR&&MACD>0||REFX(S,1),HHVBARS(MACD,BARSLAST(J)+1)+1),0.5); LL:=CROSS(BACKSET(ISLASTBAR&&MACD<0||REFX(J,1),LLVBARS(MACD,BARSLAST(S)+1)+1),0.5); IF(NG&&(MACD>0&&EXIST(HH,BARSLASTCOUNT(MACD>0))&&VALUEWHEN( HH,MACD<REF(VALUEWHEN(HH,MACD),1)))&&H>VALUEWHEN(S,REF(HHV(H,BARSLAST(J)+1),1)),H,NULL),COLORRED,CIRCLEDOT; IF(NG&&(MACD<0&&EXIST(LL,BARSLASTCOUNT(MACD<0))&&VALUEWHEN( LL,MACD>REF(VALUEWHEN(LL,MACD),1)) )&&L<VALUEWHEN(J,REF(LLV(L,BARSLAST(S)+1),1)),L,NULL),COLORRED,CIRCLEDOT; IF(NG&&(BACKSET(HH&&MACD<REF(VALUEWHEN(HH,MACD),1),BARSLAST(J)+1) )&&H>VALUEWHEN(S,REF(HHV(H,BARSLAST(J)+1),1)),H,NULL),COLORYELLOW,CIRCLEDOT; IF(NG&&(BACKSET(LL&&MACD>REF(VALUEWHEN(LL,MACD),1),BARSLAST(S)+1) )&&L<VALUEWHEN(J,REF(LLV(L,BARSLAST(S)+1),1)),L,NULL),COLORYELLOW,CIRCLEDOT; DRAWICON(HH&&NG,H,159); DRAWICON(LL&&NG,L,78),VALIGN0;
打印本文打印本文 关闭窗口关闭窗口