大伊人青草狠狠久久-大伊香蕉精品视频在线-大伊香蕉精品一区视频在线-大伊香蕉在线精品不卡视频-大伊香蕉在线精品视频75-大伊香蕉在线精品视频人碰人

您現(xiàn)在的位置:程序化交易>> 期貨公式>> 金字塔等>> 金字塔知識>>正文內(nèi)容

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

  • 咨詢內(nèi)容: 固定止損:7個跳動點(diǎn),移動止盈:盈利20個跳動點(diǎn)后,如果盈利回撤20%就執(zhí)行止盈,     

     

  • 金字塔客服:

    寫了一個大概的框架,需要把對應(yīng)的下單條件,下單平倉語句填寫進(jìn)去就行

     

    下單條件:=;

    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 平倉語句;

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

     

  • 用戶回復(fù): 弄不懂。。開多條件: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 ;//平多條件

    幫忙完整編下 謝謝

     

  • 網(wǎng)友回復(fù): 開多條件: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);

 

有思路,想編寫各種指標(biāo)公式,程序化交易模型,選股公式,預(yù)警公式的朋友

可聯(lián)系技術(shù)人員 QQ: 1145508240  有需要幫忙請點(diǎn)擊這里留言!!!進(jìn)行 有償 編寫!不貴!點(diǎn)擊查看價格!


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

相關(guān)文章

    沒有相關(guān)內(nèi)容
主站蜘蛛池模板: 99久久精品99999久久 | 奇米青青草 | 香蕉网站在线观看影院 | 国产精品一区二区久久精品 | 鲁丝丝国产一区二区 | 国产在线毛片 | 亚洲区视频 | 不卡一二区 | 久久婷婷色综合老司机 | 毛片96视频免费观看 | 99久久香蕉国产线看观香 | 欧美日韩专区 | 国产深夜福利视频在线观看 | 久久成人18 | 欧美精品成人一区二区在线观看 | 日韩a一级欧美一级在线播放 | 婷婷色九月综合激情丁香 | 欧美精品国产综合久久 | 久久久久久国产精品mv | 欧美黄色网页 | 国产欧美一区二区三区在线看 | 亚洲精品在线视频观看 | 国产三级久久久精品三级 | 四虎最新网址入口 | 国产午夜免费 | 国产区在线观看视频 | 日韩在线视频网址 | 老子影院无码午夜伦不卡 | 97se亚洲综合 | 狠狠躁夜夜躁人人爽天天不 | 日本高清中文字幕一区二区三区 | 国产成人99久久亚洲综合精品 | 久久久www成人免费精品 | 国产偷国产偷亚洲高清在线 | 久久青草免费91观看 | 亚洲香蕉国产高清在线播放 | 老司机精品视频个人在观看 | 久久91精品国产一区二区 | 99国产精品 | 国产手机在线视频放线视频 | 免费人成黄页网站在线观看 |