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

请求修改源码 [文华财经]

  • 咨询内容: 请问我这个源码怎么不显示?请帮忙修改好吗? p=3 J1:=ISLASTBAR; J2:=REF(HIGH,P)=HHV(HIGH,2*P+1); J3:=FILTER(J2,P); J4:=BACKSET(J3,P+1); J5:=FILTER(J4,P); J6:=J5 OR J1; J7:=REF(LOW,P)=LLV(LOW,2*P+1); J8:=FILTER(J7,P); J9:=BACKSET(J8,P+1); JA:=FILTER(J9,P); JB:=JA AND NOT(J5); JC:=BACKSET(J6,REF(BARSLAST(JB),1)+1); JD:=JC>REF(JC,1); JE:=BACKSET(JD,2); JF:=JE>REF(JE,1); J10:=BACKSET(JF AND COUNT(J6,REF(BARSLAST(JB),1)+2)=0,REF(BARSLAST(JB),1)+2); J11:=J10>REF(J10,1); J12:=BACKSET(J11 AND COUNT(J6,REF(BARSLAST(JB),1)+2)=0,REF(BARSLAST(JB),1)+2); J13:=J12>REF(J12,1); J14:=IFELSE(J6,COUNT(JB,REF(BARSLAST(J6),1)+1),0); J15:=IFELSE(J14=1 AND J6,BARSLAST(JF),0); J16:=IFELSE(J6 AND REF(LOW,BARSLAST(JF))>=REF(LOW,BARSLAST(J11)),BARSLAST(J11),BARSLAST(JF)); J17:=IFELSE(J14=2 AND J6,J16,0); J18:=IFELSE(J14>=3 AND J6,IFELSE(J6 AND REF(LOW,J16)>=REF(LOW,BARSLAST(J13)),BARSLAST(J13),J16),0); J19:=J15+J17+J18; J1A:=BACKSET(J6,J19); J1B:=J1A>REF(J1A,1); J1C:=BACKSET(J1B,2); J1D:=J1C>REF(J1C,1); J1E:=J1D OR J1; J1F:=BACKSET(J1E,REF(BARSLAST(J6),1)+1); J20:=J1F>REF(J1F,1); J21:=BACKSET(J20,2); J22:=J21>REF(J21,1); J23:=BACKSET(J22 AND COUNT(J1E,REF(BARSLAST(J6),1)+2)=0,REF(BARSLAST(J6),1)+2); J24:=J23>REF(J23,1); J25:=BACKSET(J24 AND COUNT(J1E,REF(BARSLAST(J6),1)+2)=0,REF(BARSLAST(J6),1)+2); J26:=J25>REF(J25,1); J27:=IFELSE(J1E,COUNT(J5,REF(BARSLAST(J1E),1)+1),0); J28:=IFELSE(J27=1 AND J1E,BARSLAST(J22),0); J29:=IFELSE(J1E AND REF(HIGH,BARSLAST(J22))<=REF(HIGH,BARSLAST(J24)),BARSLAST(J24),BARSLAST(J22)); J2A:=IFELSE(J27=2 AND J1E,J29,0); J2B:=IFELSE(J27>=3 AND J1E,IFELSE(J1E AND REF(HIGH,J29)<=REF(HIGH,BARSLAST(J26)),BARSLAST(J26),J29),0); J2C:=J28+J2A+J2B; J2D:=BACKSET(J1E,J2C); J2E:=J2D>REF(J2D,1); J2F:=BACKSET(J2E,2); J30:=J2F>REF(J2F,1); J37:=BACKSET(J1,BARSLAST(J1D)+1); J38:=J37>REF(J37,1); J39:=BACKSET(J38,REF(BARSLAST(J1D),1)+2); J3A:=J39>REF(J39,1); J3B:=BACKSET(J1,BARSLAST(J30)+1); J3C:=J3B>REF(J3B,1); J3D:=BACKSET(J3C,REF(BARSLAST(J30),1)+2); J3E:=J3D>REF(J3D,1),COLORYELLOW; QYD:REF(LOW,BARSLAST(J38)),COLORGREEN; QYG:REF(HIGH,BARSLAST(J3C)),COLORRED; DRAWTRENDLINE(J3A,LOW,J38,LOW,COLORRED),BOLD; DRAWTRENDLINE(J3E,HIGH,J3C,HIGH,COLORGREEN),BOLD; DRAWNUMBER(ISLASTBAR,QYD,QYD,2,COLORGREEN); DRAWNUMBER(ISLASTBAR,QYG,QYG,2,COLORRED);

     

  • 文华技术人员:

    请您重新发送下您的源码 按照从上到下的顺序发送下 我们具体分析下。

     

  • 文华客服: p=3J1:=ISLASTBAR;J2:=REF(HIGH,P)=HHV(HIGH,2*P+1);J3:=FILTER(J2,P);J4:=BACKSET(J3,P+1);J5:=FILTER(J4,P);J6:=J5 OR J1;J7:=REF(LOW,P)=LLV(LOW,2*P+1);J8:=FILTER(J7,P);J9:=BACKSET(J8,P+1);JA:=FILTER(J9,P);JB:=JA AND NOT(J5);JC:=BACKSET(J6,REF(BARSLAST(JB),1)+1);JD:=JC>REF(JC,1);JE:=BACKSET(JD,2);JF:=JE>REF(JE,1);J10:=BACKSET(JF AND COUNT(J6,REF(BARSLAST(JB),1)+2)=0,REF(BARSLAST(JB),1)+2);J11:=J10>REF(J10,1);J12:=BACKSET(J11 AND COUNT(J6,REF(BARSLAST(JB),1)+2)=0,REF(BARSLAST(JB),1)+2);J13:=J12>REF(J12,1);J14:=IFELSE(J6,COUNT(JB,REF(BARSLAST(J6),1)+1),0);J15:=IFELSE(J14=1 AND J6,BARSLAST(JF),0);J16:=IFELSE(J6 AND REF(LOW,BARSLAST(JF))>=REF(LOW,BARSLAST(J11)),BARSLAST(J11),BARSLAST(JF));J17:=IFELSE(J14=2 AND J6,J16,0);J18:=IFELSE(J14>=3 AND J6,IFELSE(J6 AND REF(LOW,J16)>=REF(LOW,BARSLAST(J13)),BARSLAST(J13),J16),0);J19:=J15+J17+J18;J1A:=BACKSET(J6,J19);J1B:=J1A>REF(J1A,1);J1C:=BACKSET(J1B,2);J1D:=J1C>REF(J1C,1);J1E:=J1D OR J1;J1F:=BACKSET(J1E,REF(BARSLAST(J6),1)+1);J20:=J1F>REF(J1F,1);J21:=BACKSET(J20,2);J22:=J21>REF(J21,1);J23:=BACKSET(J22 AND COUNT(J1E,REF(BARSLAST(J6),1)+2)=0,REF(BARSLAST(J6),1)+2);J24:=J23>REF(J23,1);J25:=BACKSET(J24 AND COUNT(J1E,REF(BARSLAST(J6),1)+2)=0,REF(BARSLAST(J6),1)+2);J26:=J25>REF(J25,1);J27:=IFELSE(J1E,COUNT(J5,REF(BARSLAST(J1E),1)+1),0);J28:=IFELSE(J27=1 AND J1E,BARSLAST(J22),0);J29:=IFELSE(J1E AND REF(HIGH,BARSLAST(J22))<=REF(HIGH,BARSLAST(J24)),BARSLAST(J24),BARSLAST(J22));J2A:=IFELSE(J27=2 AND J1E,J29,0);J2B:=IFELSE(J27>=3 AND J1E,IFELSE(J1E AND REF(HIGH,J29)<=REF(HIGH,BARSLAST(J26)),BARSLAST(J26),J29),0);J2C:=J28+J2A+J2B;J2D:=BACKSET(J1E,J2C);J2E:=J2D>REF(J2D,1);J2F:=BACKSET(J2E,2);J30:=J2F>REF(J2F,1);J37:=BACKSET(J1,BARSLAST(J1D)+1);J38:=J37>REF(J37,1);J39:=BACKSET(J38,REF(BARSLAST(J1D),1)+2);J3A:=J39>REF(J39,1);J3B:=BACKSET(J1,BARSLAST(J30)+1);J3C:=J3B>REF(J3B,1);J3D:=BACKSET(J3C,REF(BARSLAST(J30),1)+2);J3E:=J3D>REF(J3D,1),COLORYELLOW;QYD:REF(LOW,BARSLAST(J38)),COLORGREEN;QYG:REF(HIGH,BARSLAST(J3C)),COLORRED;DRAWTRENDLINE(J3A,LOW,J38,LOW,COLORRED),BOLD;DRAWTRENDLINE(J3E,HIGH,J3C,HIGH,COLORGREEN),BOLD;
    DRAWNUMBER(ISLASTBAR,QYD,QYD,2,COLORGREEN);DRAWNUMBER(ISLASTBAR,QYG,QYG,2,COLORRED);

     

  • 网友回复: p=3 J1:=ISLASTBAR; J2:=REF(HIGH,P)=HHV(HIGH,2*P+1); J3:=FILTER(J2,P); J4:=BACKSET(J3,P+1); J5:=FILTER(J4,P); J6:=J5 OR J1; J7:=REF(LOW,P)=LLV(LOW,2*P+1); J8:=FILTER(J7,P); J9:=BACKSET(J8,P+1); JA:=FILTER(J9,P); JB:=JA AND NOT(J5); JC:=BACKSET(J6,REF(BARSLAST(JB),1)+1); JD:=JC>REF(JC,1); JE:=BACKSET(JD,2); JF:=JE>REF(JE,1); J10:=BACKSET(JF AND COUNT(J6,REF(BARSLAST(JB),1)+2)=0,REF(BARSLAST(JB),1)+2); J11:=J10>REF(J10,1); J12:=BACKSET(J11 AND COUNT(J6,REF(BARSLAST(JB),1)+2)=0,REF(BARSLAST(JB),1)+2); J13:=J12>REF(J12,1); J14:=IFELSE(J6,COUNT(JB,REF(BARSLAST(J6),1)+1),0); J15:=IFELSE(J14=1 AND J6,BARSLAST(JF),0); J16:=IFELSE(J6 AND REF(LOW,BARSLAST(JF))>=REF(LOW,BARSLAST(J11)),BARSLAST(J11),BARSLAST(JF)); J17:=IFELSE(J14=2 AND J6,J16,0); J18:=IFELSE(J14>=3 AND J6,IFELSE(J6 AND REF(LOW,J16)>=REF(LOW,BARSLAST(J13)),BARSLAST(J13),J16),0); J19:=J15+J17+J18; J1A:=BACKSET(J6,J19); J1B:=J1A>REF(J1A,1); J1C:=BACKSET(J1B,2); J1D:=J1C>REF(J1C,1); J1E:=J1D OR J1; J1F:=BACKSET(J1E,REF(BARSLAST(J6),1)+1); J20:=J1F>REF(J1F,1); J21:=BACKSET(J20,2); J22:=J21>REF(J21,1); J23:=BACKSET(J22 AND COUNT(J1E,REF(BARSLAST(J6),1)+2)=0,REF(BARSLAST(J6),1)+2); J24:=J23>REF(J23,1); J25:=BACKSET(J24 AND COUNT(J1E,REF(BARSLAST(J6),1)+2)=0,REF(BARSLAST(J6),1)+2); J26:=J25>REF(J25,1); J27:=IFELSE(J1E,COUNT(J5,REF(BARSLAST(J1E),1)+1),0); J28:=IFELSE(J27=1 AND J1E,BARSLAST(J22),0); J29:=IFELSE(J1E AND REF(HIGH,BARSLAST(J22))<=REF(HIGH,BARSLAST(J24)),BARSLAST(J24),BARSLAST(J22)); J2A:=IFELSE(J27=2 AND J1E,J29,0); J2B:=IFELSE(J27>=3 AND J1E,IFELSE(J1E AND REF(HIGH,J29)<=REF(HIGH,BARSLAST(J26)),BARSLAST(J26),J29),0); J2C:=J28+J2A+J2B; J2D:=BACKSET(J1E,J2C); J2E:=J2D>REF(J2D,1); J2F:=BACKSET(J2E,2); J30:=J2F>REF(J2F,1); J37:=BACKSET(J1,BARSLAST(J1D)+1); J38:=J37>REF(J37,1); J39:=BACKSET(J38,REF(BARSLAST(J1D),1)+2); J3A:=J39>REF(J39,1); J3B:=BACKSET(J1,BARSLAST(J30)+1); J3C:=J3B>REF(J3B,1); J3D:=BACKSET(J3C,REF(BARSLAST(J30),1)+2); J3E:=J3D>REF(J3D,1),COLORYELLOW; QYD:REF(LOW,BARSLAST(J38)),COLORGREEN; QYG:REF(HIGH,BARSLAST(J3C)),COLORRED; DRAWTRENDLINE(J3A,LOW,J38,LOW,COLORRED); DRAWTRENDLINE(J3E,HIGH,J3C,HIGH,COLORGREEN);
    DRAWNUMBER(ISLASTBAR,QYD,QYD,2,COLORGREEN); DRAWNUMBER(ISLASTBAR,QYG,QYG,2,COLORRED);   模型仅供参考

     

  • 网友回复: 还是不显示啊

 

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

可联系技术人员 QQ: 1145508240  有需要帮忙请点击这里留言!!!进行 有偿 编写!不贵!点击查看价格!


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

相关文章

    没有相关内容