您现在的位置:程序化交易>> 期货公式>> 文华财经>> 文华财经知识>>正文内容

请老师帮忙修改一下 [文华财经]

  • 咨询内容:  RSV3:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;K2:=SMA(RSV3,3,1); VAR1:=(CLOSE+HIGH+LOW)/3;VAR2:=EMA(VAR1,10);VAR3:=REF(VAR2,1);绿探底震仓:IF(VAR2,10,NODRAW),COLORGREEN,LINETHICK3;红买: IF(VAR2>VAR3,10,NODRAW), COLORRED,LINETHICK3;蓝卖: IF(VAR2<VAR3,10,NODRAW),COLORFFFF00,LINETHICK3;RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;上穿买:SMA(RSV,3,1),COLORRED;下穿卖:SMA(上穿买,3,1),COLORCYAN;80,COLORGREEN;50,COLORYELLOW;20,COLORRED;REFLINE:80,50,20;STICKLINE(上穿买>下穿卖,下穿卖,上穿买,COLORRED,1);STICKLINE(上穿买<下穿卖,下穿卖,上穿买,COLORCYAN,1);


    文件名:~p74usnqsb4kxj)1vb8yh4c.png



    文件名:~p74usnqsb4kxj)1vb8yh4c.png



    请把一条黄线和一条白线去掉,把上下红兰线改成如图红绿柱

     

     来源:程序化99

  • 文华技术人员: RSV3:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100; K2:=SMA(RSV3,3,1);  VAR1:=(CLOSE+HIGH+LOW)/3; VAR2:=EMA(VAR1,10); VAR3:=REF(VAR2,1); 绿探底震仓:IF(VAR2,10,NODRAW),COLORGREEN,LINETHICK3; 红买: IF(VAR2>VAR3,10,NODRAW), COLORRED,LINETHICK3; 蓝卖: IF(VAR2<VAR3,10,NODRAW),COLORFFFF00,LINETHICK3; RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100; 上穿买:SMA(RSV,3,1),COLORRED; 下穿卖:SMA(上穿买,3,1),COLORCYAN; 80,COLORGREEN; 20,COLORRED; REFLINE:80,50,20; STICKLINE(上穿买>下穿卖,下穿卖,上穿买,COLORRED,0); STICKLINE(上穿买<下穿卖,下穿卖,上穿买,COLORCYAN,0);  

     

     来源: WWW.CXH99.COM

  • 文华客服:  不好意思上边的公式给错了,应该是下边这个,改成把白线和黄线去掉,把上下红兰柱改成如图红绿柱,谢谢 DIFF:EMA(CLOSE,36) - EMA(CLOSE,78);
    DEA:EMA(DIFF,36);
    MACD:2*(DIFF-DEA),COLORSTICK;
    JC:=CROSS(DIFF,DEA);
    SC:=CROSSDOWN(DIFF,DEA);
    N1:=BARSLAST(JC)+1;
    N2:=BARSLAST(SC)+1;
    HH:=VALUEWHEN(CROSSDOWN(DIFF,DEA),HHV(H,N1));//上次MACD红柱期间合约最大值
    HH2:=VALUEWHEN(CROSSDOWN(DIFF,DEA),REF(HH,1));//上上次MACD红柱期间合约最大值
    MHD:=VALUEWHEN(CROSSDOWN(DIFF,DEA),HHV(MACD,N1));//上次MACD红柱期间MACD最大值
    MHD2:=VALUEWHEN(CROSSDOWN(DIFF,DEA),REF(MHD,1));//上上次MACD红柱期间MACD最大值
    DRAWICON(B,MACD,4); LL:=VALUEWHEN(CROSS(DIFF,DEA),LLV(L,N2));//上次MACD绿柱期间合约最小值
    LL2:=VALUEWHEN(CROSS(DIFF,DEA),REF(LL,1));//上上次MACD绿柱期间合约最小值
    MLD:=VALUEWHEN(CROSS(DIFF,DEA),LLV(MACD,N2));//上次MACD绿柱期间MACD最小值
    MLD2:=VALUEWHEN(CROSS(DIFF,DEA),REF(MLD,1));//上上次MACD绿柱期间MACD最小值
    A:=CROSSDOWN(DIFF,DEA)&&HH>HH2&&MHD<MHD2;//顶背离
    B:=CROSS(DIFF,DEA)&&LL<LL2&&MLD>MLD2;//底背离
    DRAWICON(A,MACD,5);


    文件名:~p74usnqsb4kxj)1vb8yh4c.png

     

  • 网友回复:   DIFF:=EMA(CLOSE,36) - EMA(CLOSE,78);
    DEA:=EMA(DIFF,36);
    MACD:=2*(DIFF-DEA); STICKLINE(MACD>0,0,MACD,COLORRED,0); STICKLINE(MACD<0,0,MACD,COLORGREEN,0); JC:=CROSS(DIFF,DEA);
    SC:=CROSSDOWN(DIFF,DEA);
    N1:=BARSLAST(JC)+1;
    N2:=BARSLAST(SC)+1;
    HH:=VALUEWHEN(CROSSDOWN(DIFF,DEA),HHV(H,N1));//上次MACD红柱期间合约最大值
    HH2:=VALUEWHEN(CROSSDOWN(DIFF,DEA),REF(HH,1));//上上次MACD红柱期间合约最大值
    MHD:=VALUEWHEN(CROSSDOWN(DIFF,DEA),HHV(MACD,N1));//上次MACD红柱期间MACD最大值
    MHD2:=VALUEWHEN(CROSSDOWN(DIFF,DEA),REF(MHD,1));//上上次MACD红柱期间MACD最大值

    LL:=VALUEWHEN(CROSS(DIFF,DEA),LLV(L,N2));//上次MACD绿柱期间合约最小值
    LL2:=VALUEWHEN(CROSS(DIFF,DEA),REF(LL,1));//上上次MACD绿柱期间合约最小值
    MLD:=VALUEWHEN(CROSS(DIFF,DEA),LLV(MACD,N2));//上次MACD绿柱期间MACD最小值
    MLD2:=VALUEWHEN(CROSS(DIFF,DEA),REF(MLD,1));//上上次MACD绿柱期间MACD最小值
    A:=CROSSDOWN(DIFF,DEA)&&HH>HH2&&MHD<MHD2;//顶背离
    B:=CROSS(DIFF,DEA)&&LL<LL2&&MLD>MLD2;//底背离
    DRAWICON(A,MACD,5); DRAWICON(B,MACD,4);

     

  • 网友回复:  老师为什么你给我改的这个指标跟文华自带的MACD不是同一个0轴啊,请再改一下谢谢,现在这个比自带的高 一点


    文件名:$`h`e(1`e~crkqsz_{{ik5.png

 

有思路,想编写各种指标公式,程序化交易模型,选股公式,预警公式的朋友

可联系技术人员 QQ: 511411198  点击这里给我发消息或微信:cxhjy888 进行 有偿 编写!不贵!点击查看价格!


【字体: 】【打印文章】【查看评论

相关文章

    没有相关内容