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

老师帮忙在看一下爱怎么修改 [文华财经]

  • 咨询内容:  


    文件名:110.jpg



    文件名:112.jpg



    //DRAWTEXT_FIX(1,0.01,0.01,0,'【★★仓位控制的量化标准★★】'),COLORMAGENTA;//DRAWTEXT_FIX(1,0.01,0.08,0,'【★★1、粉+红=满,2、粉+绿=6,3、蓝+红=4 ,4、蓝+绿=空★★】'),COLORYELLOW;E1:=EMA(C,5);E2:=EMA(C,10);E3:=EMA(C,20);E4:=EMA(C,60);E5:=EMA(C,120);VARE1:=(E1+E2+E3+E4)/4;VARE2:=(E1+E2+E3+E5)/4;N:=IF(CODELIKE(鰿') OR CODELIKE(̆') OR CODELIKE(願') OR CODELIKE('),1,0);D1:=IF(N=1,0.013,0.03);D2:=IF(N=1,0.018,0.03);C1:=IF(N=1,0.015,0.03);C2:=IF(N=1,0.015,0.03);短线多:EMA(VARE1,5)+EMA(VARE1,5)*D1,COLORRED;短线空:EMA(VARE1,5)-EMA(VARE1,5)*D2,COLORRED;长线多:EMA(VARE2,70)+EMA(VARE2,70)*C1,COLORMAGENTA;//DRAWTEXT_FIX(1,0,50,5,0),COLORRED;长线空:EMA(VARE2,70)-EMA(VARE2,70)*C2,COLORMAGENTA;
    TJ1:=RANGE(C,短线空,短线多);TJ2:=RANGE(C,长线空,长线多);STICKLINE1(短线多>REF(短线多,1) AND TJ1=0,短线多,短线空,0.1,1),COLORRED;STICKLINE1(短线多<REF(短线多,1) AND TJ1=0,短线多,短线空,0.1,1),COLORGREEN;STICKLINE1(长线多>REF(长线多,1) AND TJ2=0,长线多,长线空,0.1,1),COLORMAGENTA;STICKLINE1(长线多<REF(长线多,1) AND TJ2=0,长线多,长线空,0.1,1),COLORBLUE;NOTEXT短线多:IF(短线多<REF(短线多,1),短线多,NULL),COLORGREEN;NOTEXT短线空:IF(短线空<REF(短线空,1),短线空,NULL),COLORGREEN;NOTEXT长线多:IF(长线多<REF(长线多,1),长线多,NULL),COLORBLUE;NOTEXT长线空:IF(长线空<REF(长线空,1),长线空,NULL),COLORBLUE;空:=REF(C,1)>REF(短线空,1) AND C<短线空 AND C<REF(C,1);多:=REF(C,1)<REF(短线多,1) AND C>短线多 AND C>REF(C,1);空1:=空&&REF(BARSLAST(空)>BARSLAST(多),1);多1:=多&&REF(BARSLAST(多)>BARSLAST(空),1);DRAWTEXT(空1,短线多*1.04,'空'),COLORGREEN;DRAWTEXT(多1,短线空*0.96,'多'),COLORRED;DRAWICON(空1,短线多*1.02,2);DRAWICON(多1,短线空*0.98,1);A1:=C>REF(C,4); A2:=BARSLASTCOUNT(A1); A3:=REF(A2,1)=8 AND A2>REF(A2,1); A4:=REF(BETWEEN(A2,5,8),1) AND A2<REF(A2,1); A5:=ISLASTBAR AND BETWEEN(A2,6,8); A6:=(BACKSET(A3>0,9) OR BACKSET(A4>0,A2+1)*0 OR  BACKSET(A5>0,A2))*A2;N1:=BARSLAST(CROSS(A6,0.5))+1; DRAWNUMBER1(A6>0,H+H*0.02,N1,0),COLORFF00FF{COLOR00FFFF}; DRAWTEXT(A2=9,H+H*0.02,'?'),COLOR00FF00;//您上传的源码标注文字这部分是乱码,对照之前软件的源码调整下就可以了 B1:=C<REF(C,4); B2:=BARSLASTCOUNT(B1); B3:=REF(B2,1)=8 AND B2>REF(B2,1); B4:=REF(BETWEEN(B2,5,8),1) AND B2<REF(B2,1); B5:=ISLASTBAR AND BETWEEN(B2,6,8); B6:=(BACKSET(B3>0,9) OR BACKSET(B4>0,B2+1)*0 OR  BACKSET(B5>0,B2))*B2;N2:=BARSLAST(CROSS(B6,0.5))+1; DRAWNUMBER1(B6>0,L-L*0.02,N2,0),COLOR00FF00; DRAWTEXT(B2=9,L-L*0.02,'?'),COLORFF00FF;//同上

     

     来源:程序化99

  • 文华技术人员: 大周期正常,小周期乱了,看一下怎么修改

     

     来源: WWW.CXH99.COM

  • 文华客服:  您1楼的 来源: WWW.CXH99.COM
  • 文华客服:N:=IF(CODELIKE(鰿') OR CODELIKE(̆') OR CODELIKE(願') OR CODELIKE('),1,0); 是乱码的,请重新发送一下

     

  • 网友回复: //DRAWTEXT_FIX(1,0.01,0.01,0,'【★★仓位控制的量化标准★★】'),COLORMAGENTA; //DRAWTEXT_FIX(1,0.01,0.08,0,'【★★1、粉+红=满,2、粉+绿=6,3、蓝+红=4 ,4、蓝+绿=空★★】'),COLORYELLOW; E1:=EMA(C,5); E2:=EMA(C,10); E3:=EMA(C,20); E4:=EMA(C,60); E5:=EMA(C,120); VARE1:=(E1+E2+E3+E4)/4; VARE2:=(E1+E2+E3+E5)/4; N:=IF(CODELIKE(鰿') OR CODELIKE(̆') OR CODELIKE(願') OR CODELIKE('),1,0); D1:=IF(N=1,0.013,0.03); D2:=IF(N=1,0.018,0.03); C1:=IF(N=1,0.015,0.03); C2:=IF(N=1,0.015,0.03); 短线多:EMA(VARE1,5)+EMA(VARE1,5)*D1,COLORRED; 短线空:EMA(VARE1,5)-EMA(VARE1,5)*D2,COLORRED; 长线多:EMA(VARE2,70)+EMA(VARE2,70)*C1,COLORMAGENTA; //DRAWTEXT_FIX(1,0,50,5,0),COLORRED; 长线空:EMA(VARE2,70)-EMA(VARE2,70)*C2,COLORMAGENTA; TJ1:=RANGE(C,短线空,短线多); TJ2:=RANGE(C,长线空,长线多); STICKLINE1(短线多>REF(短线多,1) AND TJ1=0,短线多,短线空,0.1,1),COLORRED; STICKLINE1(短线多REF(长线多,1) AND TJ2=0,长线多,长线空,0.1,1),COLORMAGENTA; STICKLINE1(长线多REF(短线空,1) AND C<短线空 and="" c短线多 AND C>REF(C,1); 空1:=空&&REF(BARSLAST(空)>BARSLAST(多),1); 多1:=多&&REF(BARSLAST(多)>BARSLAST(空),1); DRAWTEXT(空1,短线多*1.04,'空'),COLORGREEN; DRAWTEXT(多1,短线空*0.96,'多'),COLORRED; DRAWICON(空1,短线多*1.02,2); DRAWICON(多1,短线空*0.98,1); A1:=C>REF(C,4); A2:=BARSLASTCOUNT(A1); A3:=REF(A2,1)=8 AND A2>REF(A2,1); A4:=REF(BETWEEN(A2,5,8),1) AND A20,9) OR BACKSET(A4>0,A2+1)*0 OR BACKSET(A5>0,A2))*A2; N1:=BARSLAST(CROSS(A6,0.5))+1; DRAWNUMBER1(A6>0,H+H*0.02,N1,0),COLORFF00FF{COLOR00FFFF}; DRAWTEXT(A2=9,H+H*0.02,'?'),COLOR00FF00;//您上传的源码标注文字这部分是乱码,对照之前软件的源码调整下就可以了 B1:=CREF(B2,1); B4:=REF(BETWEEN(B2,5,8),1) AND B20,9) OR BACKSET(B4>0,B2+1)*0 OR BACKSET(B5>0,B2))*B2; N2:=BARSLAST(CROSS(B6,0.5))+1; DRAWNUMBER1(B6>0,L-L*0.02,N2,0),COLOR00FF00; DRAWTEXT(B2=9,L-L*0.02,'?'),COLORFF00FF;//同上

     

  • 网友回复:


    文件名:qq截图20180911183529.jpg
      上传是乱码,我截图

 

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

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


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

相关文章

    没有相关内容