人人爽天天爽夜夜爽qc-人人爽天天爽夜夜爽曰-人人天天爱天天做天天摸-人人天天夜夜-色网站在线-色网站在线看

您現在的位置:程序化交易>> 期貨公式>> 文華財經>> 文華財經知識>>正文內容

[求助]修改指標成文華財經 [文華財經]

  • 咨詢內容: ?老師,發現帝納波利點位交易法的一個指標公式(博弈版),請轉成文華財經的;如下源碼 DDD:DATE,LINETHICK0,COLORWHITE; A1:=IF(D=1, REF(H,BARSLAST(DATE=A_TIME)), IF(D=2, REF(L,BARSLAST(DATE=ATIME)), 0));
    B1:=IF(D=1, REF(L,BARSLAST(DATE=B_TIME)), IF(D=2, REF(H,BARSLAST(DATE=BTIME)), 0));
    C1:=IF(D=1, REF(H,BARSLAST(DATE=C_TIME)), IF(D=2, REF(L,BARSLAST(DATE=CTIME)), 0));

    入場點1:=0.618*(A1-B1)+B1,COLORRED;
    入場點2:=0.5*(A1-B1)+B1,COLORRED;
    入場點3:=0.382*(A1-B1)+B1,COLORRED;

    OP:B1-A1+C1,COLORYELLOW,LINETHICK0;
    COP:0.618*(B1-A1)+C1,COLORYELLOW,LINETHICK0;
    XOP:1.618*(B1-A1)+C1,COLORYELLOW,LINETHICK0;

    PARTLINE(DD=10 AND DATE>= B_TIME AND D=1, 入場點1), COLORRED;
    PARTLINE(DD=10 AND DATE>= B_TIME AND D=1, 入場點2), COLORRED;
    PARTLINE(DD=10 AND DATE>= B_TIME AND D=1, 入場點3), COLORRED;

    PARTLINE(DD=10 AND DATE>= BTIME AND D=2, 入場點1), COLORRED;
    PARTLINE(DD=10 AND DATE>= BTIME AND D=2, 入場點2), COLORRED;
    PARTLINE(DD=10 AND DATE>= BTIME AND D=2, 入場點3), COLORRED;

    DRAWNUMBER(FILTER(DD=10 AND DATE>= B_TIME AND D=1,300),入場點1,0.618,3),ALIGN2;
    DRAWNUMBER(FILTER(DD=10 AND DATE>= B_TIME AND D=1,300),入場點2,0.5,1),ALIGN2;
    DRAWNUMBER(FILTER(DD=10 AND DATE>= B_TIME AND D=1,300),入場點3,0.382,3),ALIGN2;

    DRAWNUMBER(FILTER(DD=10 AND DATE>= BTIME AND D=2,300),入場點1,0.618,3),ALIGN2;
    DRAWNUMBER(FILTER(DD=10 AND DATE>= BTIME AND D=2,300),入場點2,0.5,1),ALIGN2;
    DRAWNUMBER(FILTER(DD=10 AND DATE>= BTIME AND D=2,300),入場點3,0.382,3),ALIGN2;


    PARTLINE(DD=10 AND DATE>= C_TIME AND D=1, OP), COLORYELLOW;
    PARTLINE(DD=10 AND DATE>= C_TIME AND D=1, COP), COLORYELLOW;
    PARTLINE(DD=10 AND DATE>= C_TIME AND D=1, XOP), COLORYELLOW;

    PARTLINE(DD=10 AND DATE>= CTIME AND D=2, OP), COLORYELLOW;
    PARTLINE(DD=10 AND DATE>= CTIME AND D=2, COP), COLORYELLOW;
    PARTLINE(DD=10 AND DATE>= CTIME AND D=2, XOP), COLORYELLOW;
    {PARTLINE(DD=10 AND DATE>= ATIME AND D=2, A1), COLORWHITE;
    PARTLINE(DD=10 AND DATE>= A_TIME AND D=1, A1), COLORWHITE;
    }
    DRAWTEXT(FILTER(DD=10 AND DATE>= C_TIME AND D=1,300),OP,'OP'),ALIGN2;
    DRAWTEXT(FILTER(DD=10 AND DATE>= C_TIME AND D=1,300),COP,'COP'),ALIGN2;
    DRAWTEXT(FILTER(DD=10 AND DATE>= C_TIME AND D=1,300),XOP,'XOP'),ALIGN2;

    DRAWTEXT(FILTER(DD=10 AND DATE>= CTIME AND D=2,300),OP,'OP'),ALIGN2;
    DRAWTEXT(FILTER(DD=10 AND DATE>= CTIME AND D=2,300),COP,'COP'),ALIGN2;
    DRAWTEXT(FILTER(DD=10 AND DATE>= CTIME AND D=2,300),XOP,'XOP'),ALIGN2;

    STICKLINE(FILTER(DD=10 AND DATE>= C_TIME AND D=1,300),L,XOP,0.01,0),COLORGREEN;

    STICKLINE(FILTER(DD=10 AND DATE>= CTIME AND D=2,300),L,XOP,0.01,0),COLORGREEN;

    DRAWTEXT(FILTER(DD=10 AND DATE>= A_TIME AND D=1,300),A1,'A'),ALIGN2;
    DRAWTEXT(FILTER(DD=10 AND DATE>= B_TIME AND D=1,300),B1,'B'),ALIGN2;
    DRAWTEXT(FILTER(DD=10 AND DATE>= C_TIME AND D=1,300),C1,'C'),ALIGN2;
    DRAWTEXT(FILTER(DD=10 AND DATE>= ATIME AND D=2,300),A1,'A'),ALIGN2;
    DRAWTEXT(FILTER(DD=10 AND DATE>= BTIME AND D=2,300),B1,'B'),ALIGN2;
    DRAWTEXT(FILTER(DD=10 AND DATE>= CTIME AND D=2,300),C1,'C'),ALIGN2;

    POLYLINE((DATE=A_TIME OR DATE=B_TIME) AND D=1,IF(DATE=A_TIME, H, L)),COLORGREEN;
    POLYLINE((DATE=B_TIME OR DATE=C_TIME) AND D=1,IF(DATE=B_TIME, L, H)),COLORGREEN;


    POLYLINE((DATE=ATIME OR DATE=BTIME) AND D=2,IF(DATE=ATIME, L, H)),COLORGREEN;
    POLYLINE((DATE=BTIME OR DATE=CTIME) AND D=2,IF(DATE=BTIME, H, L)),COLORGREEN; ?

    ?

    ?來源:程序化99

  • 文華技術人員:

    前8行是參數,需要您對照其他軟件源碼進行修改:

    ?

    D:=1;
    DD:=10;
    ATIME:=180211;
    BTIME:=180212;
    CTIME:=180213;
    AATIME:=180211;
    BBTIME:=180212;
    CCTIME:=180213;
    DDD:=DATE,NODRAW,COLORWHITE;
    A1:=IF(D=1, REF(H,BARSLAST(DATE=ATIME)), IF(D=2, REF(L,BARSLAST(DATE=ATIME)), 0));
    B1:=IF(D=1, REF(L,BARSLAST(DATE=BTIME)), IF(D=2, REF(H,BARSLAST(DATE=BTIME)), 0));
    C1:=IF(D=1, REF(H,BARSLAST(DATE=CTIME)), IF(D=2, REF(L,BARSLAST(DATE=CTIME)), 0));
    入場點1:=0.618*(A1-B1)+B1,COLORRED;
    入場點2:=0.5*(A1-B1)+B1,COLORRED;
    入場點3:=0.382*(A1-B1)+B1,COLORRED;
    OP:B1-A1+C1,COLORYELLOW,NODRAW;
    COP:0.618*(B1-A1)+C1,COLORYELLOW,NODRAW;
    XOP:1.618*(B1-A1)+C1,COLORYELLOW,NODRAW;
    PARTLINE1(DD=10 AND DATE>= BTIME AND D=1, 入場點1), COLORRED;
    PARTLINE1(DD=10 AND DATE>= BTIME AND D=1, 入場點2), COLORRED;
    PARTLINE1(DD=10 AND DATE>= BTIME AND D=1, 入場點3), COLORRED;
    PARTLINE1(DD=10 AND DATE>= BBTIME AND D=2, 入場點1), COLORRED;
    PARTLINE1(DD=10 AND DATE>= BBTIME AND D=2, 入場點2), COLORRED;
    PARTLINE1(DD=10 AND DATE>= BBTIME AND D=2, 入場點3), COLORRED;
    DRAWNUMBER1(FILTER(DD=10 AND DATE>= BTIME AND D=1,300),入場點1,0.618,3),ALIGN2;
    DRAWNUMBER1(FILTER(DD=10 AND DATE>= BTIME AND D=1,300),入場點2,0.5,1),ALIGN2;
    DRAWNUMBER1(FILTER(DD=10 AND DATE>= BTIME AND D=1,300),入場點3,0.382,3),ALIGN2;
    DRAWNUMBER1(FILTER(DD=10 AND DATE>= BBTIME AND D=2,300),入場點1,0.618,3),ALIGN2;
    DRAWNUMBER1(FILTER(DD=10 AND DATE>= BBTIME AND D=2,300),入場點2,0.5,1),ALIGN2;
    DRAWNUMBER1(FILTER(DD=10 AND DATE>= BBTIME AND D=2,300),入場點3,0.382,3),ALIGN2;
    PARTLINE1(DD=10 AND DATE>= CTIME AND D=1, OP), COLORYELLOW;
    PARTLINE1(DD=10 AND DATE>= CTIME AND D=1, COP), COLORYELLOW;
    PARTLINE1(DD=10 AND DATE>= CTIME AND D=1, XOP), COLORYELLOW;
    PARTLINE1(DD=10 AND DATE>= CCTIME AND D=2, OP), COLORYELLOW;
    PARTLINE1(DD=10 AND DATE>= CCTIME AND D=2, COP), COLORYELLOW;
    PARTLINE1(DD=10 AND DATE>= CCTIME AND D=2, XOP), COLORYELLOW;
    DRAWTEXT(FILTER(DD=10 AND DATE>= CTIME AND D=1,300),OP,'P',ALIGN2;
    DRAWTEXT(FILTER(DD=10 AND DATE>= CTIME AND D=1,300),COP,'OP',ALIGN2;
    DRAWTEXT(FILTER(DD=10 AND DATE>= CTIME AND D=1,300),XOP,'OP',ALIGN2;
    DRAWTEXT(FILTER(DD=10 AND DATE>= CCTIME AND D=2,300),OP,'P',ALIGN2;
    DRAWTEXT(FILTER(DD=10 AND DATE>= CCTIME AND D=2,300),COP,'OP',ALIGN2;
    DRAWTEXT(FILTER(DD=10 AND DATE>= CCTIME AND D=2,300),XOP,'OP',ALIGN2;
    STICKLINE(FILTER(DD=10 AND DATE>= CTIME AND D=1,300),L,XOP,0.01,0),COLORGREEN;
    STICKLINE(FILTER(DD=10 AND DATE>= CCTIME AND D=2,300),L,XOP,0.01,0),COLORGREEN;
    DRAWTEXT(FILTER(DD=10 AND DATE>= ATIME AND D=1,300),A1,'',ALIGN2;
    DRAWTEXT(FILTER(DD=10 AND DATE>= BTIME AND D=1,300),B1,'',ALIGN2;
    DRAWTEXT(FILTER(DD=10 AND DATE>= CTIME AND D=1,300),C1,'',ALIGN2;
    DRAWTEXT(FILTER(DD=10 AND DATE>= AATIME AND D=2,300),A1,'',ALIGN2;
    DRAWTEXT(FILTER(DD=10 AND DATE>= BBTIME AND D=2,300),B1,'',ALIGN2;
    DRAWTEXT(FILTER(DD=10 AND DATE>= CCTIME AND D=2,300),C1,'',ALIGN2;
    POLYLINE1((DATE=ATIME OR DATE=BTIME) AND D=1,IF(DATE=ATIME, H, L)),COLORGREEN;
    POLYLINE1((DATE=BTIME OR DATE=CTIME) AND D=1,IF(DATE=BTIME, L, H)),COLORGREEN;
    POLYLINE1((DATE=AATIME OR DATE=BBTIME) AND D=2,IF(DATE=AATIME, L, H)),COLORGREEN;
    POLYLINE1((DATE=BBTIME OR DATE=CCTIME) AND D=2,IF(DATE=BBTIME, H, L)),COLORGREEN;

 

有思路,想編寫各種指標公式,程序化交易模型,選股公式,預警公式的朋友

可聯系技術人員 QQ: 511411198  點擊這里給我發消息或微信:cxhjy888 進行 有償 編寫!不貴!點擊查看價格!


【字體: 】【打印文章】【查看評論

相關文章

    沒有相關內容
主站蜘蛛池模板: 国产盗摄精品一区二区 | 日本黄色小视频在线观看 | 成人观看网站a | 视频在线观看一区二区三区 | 中文在线免费看视频 | 亚欧洲精品在线视频免费观看 | 欧美性4khd| 一级 黄 色 片免费 一级 黄 色 毛片 | 一级片在线免费看 | 岛国在线播放v片免费 | 国产 日韩 欧美在线 | 久久性视频 | 亚洲免费人成在线视频观看 | 亚洲色图第四页 | 亚洲五月综合 | 黄色毛片视频网站 | 久久精品国产精品亚洲综合 | 一个人的视频www片免费 | 最近在线观看免费完整视频 | 丁香婷婷亚洲六月综合色 | 一级黄色免费网站 | 中文字幕一区二区三区 精品 | 欧美videos另类hd肥妇色 | 国产精品合集一区二区 | 中国一级特黄毛片 | 欧美高清日韩 | 美女网站视频黄 | 日本三级香港三级人妇gg在线 | 一级毛片在线完整免费观看 | 免费在线观看你懂的 | 欧美黑人性色黄在线视频 | 日本视频www色变态 日本爽p大片免费观看 | 亚洲免费精品视频 | 中国女人hd | 精品一区二区三区的国产在线观看 | 99在线观看视频免费精品9 | 日本一本在线视频 | 在线观看国产精品日本不卡网 | 亚洲四播房 | 精品国产免费人成网站 | 欧美成人久久一级c片免费 欧美成人看片 |