您現在的位置:程序化交易>> 期貨公式>> 金字塔等>> 金字塔知識>>正文內容

幫忙編寫下 謝謝 [金字塔]

  • 咨詢內容: 固定止損:7個跳動點,移動止盈:盈利20個跳動點后,如果盈利回撤20%就執行止盈,     

     

  • 金字塔客服:

    寫了一個大概的框架,需要把對應的下單條件,下單平倉語句填寫進去就行

     

    下單條件:=;

    variable:n=0;

     

    if 下單條件  and holding=0 then begin

       下單語句;

       n:=h;

    end

     

    if h>n then n:=h;

     

    if holding>0 and enterprice-c>7*mindiff then 平倉語句;

     

    if n-enterprice>20*mindiff and (n-h)/n<=0.2 then 平倉語句;

    [此貼子已經被作者于2013/9/29 10:10:50編輯過]

     

  • 用戶回復: 弄不懂。。開多條件:A1 and holding=0 and time<144500 and time>91800;//開多條件平空條件:A1 and holding<0 ;//平空條件開空條件:=A2  and holding=0 and time<144500 and time>91800;//開空條件平多條件:=A2 and holding>0 ;//平多條件

    幫忙完整編下 謝謝

     

  • 網友回復: 開多條件:A1 and holding=0 and time<144500 and time>91800;//開多條件 平空條件:A1 and holding<0 ;//平空條件 開空條件:=A2  and holding=0 and time<144500 and time>91800;//開空條件 平多條件:=A2 and holding>0 ;//平多條件

    variable:n=0;

     

    if 開多條件  and holding=0 then begin

       buy(1,1,market);

       n:=h;

    end

     

    if h>n then n:=h;

     

    if holding>0 and enterprice-c>7*mindiff then sell(1,0,market);//固定止損多

     

    if n-enterprice>20*mindiff and (n-enterprice)/enterprice<=0.2 then sell(1,0,market);//移動止盈多

     

    if 平多條件 then sell(holding>0,0,market);

     

     

    if 開空條件 and holding=0 then begin

       buyshort(1,1,market);

       n:=l;

    end

     

    if l<n then n:=l; 

     

    if holding<0 and enterprice-c>7*mindiff then sell(1,0,market);//固定止損空

     

    if enterprice-n>20*mindiff and (enterprice-n)/n<=0.2 then sell(1,0,market);//移動止盈空

     

    if 平空條件 and holding<0 then sellshort(1,0,market);

 

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

可聯系技術人員 QQ: 1145508240  有需要幫忙請點擊這里留言!!!進行 有償 編寫!不貴!點擊查看價格!


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

相關文章

    沒有相關內容
主站蜘蛛池模板: 中文字幕+乱码+中文乱码| 极品丝袜乱系列大全集目录| 欧美黑人巨大xxxxx视频| 欧美在线性爱视频| 肥臀熟女一区二区三区| 狠狠做深爱婷婷综合一区| 欧美人与动人物牲交免费观看| 日本簧片在线观看| 好男人www社区| 国产精品成人无码久久久久久| 国产在线视频一区二区三区| 四虎国产精品永久在线网址| 亚洲色大成网站www永久| 亚洲AV无码专区在线观看亚| 东京一本一道一二三区| 69堂在线观看| 色哟哟精品视频在线观看| 毛片女人毛片一级毛片毛片| 日本毛茸茸的丰满熟妇| 在线观看国产一区二区三区| 国产女人精品视频国产灰线| 免费在线你懂的| 久操免费在线观看| h在线观看视频免费网站| 麻豆精品传媒成人精品| 男女一边摸一边做爽爽毛片| 日韩精品无码久久一区二区三| 好好的曰com久久| 国产大片黄在线观看| 亚洲视频在线看| 久久亚洲国产精品成人AV秋霞| 99国产欧美久久精品| 草莓视频未满十八勿网站| 欧美牲交a欧美牲交aⅴ图片| 成年女人免费视频| 国产真实伦在线观看| 免费**毛片在线播放视| 久久夜色精品国产噜噜| 69久久夜色精品国产69| 老湿机香蕉久久久久久| 狼人香蕉香蕉在线视频播放|