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

[原創]移動止損后臺交易模板 [金字塔]

  • 咨詢內容: 以下內容為程序代碼:

    1 input:stopnum(20,5,50,5);
    2 runmode:1;
    3
    4 if tholding=0 then begin
    5     extgbdataset('stopprice',low-stopnum*mindiff);
    6     tbuy(1,1,lmt,close);
    7 end;
    8
    9 if tholding>0 then begin
    10     if low-stopnum*mindiff>extgbdata('stopprice') then
    11         extgbdataset('stopprice',low-stopnum*mindiff);
    12     
    13     if low<=extgbdata('stopprice') then begin
    14         tsell(1,tholding,lmt,extgbdata('stopprice')),orderqueue;
    15         tbuyshort(1,1,lmt,extgbdata('stopprice')),orderqueue;
    16     end;
    17 end;
    18
    19 if tholding<0 then begin
    20     if high+stopnum*mindiff<extgbdata('stopprice') then
    21         extgbdataset('stopprice',high+stopnum*mindiff);
    22     
    23     if high>=extgbdata('stopprice') then begin
    24         tsellshort(1,tholding,lmt,extgbdata('stopprice')),orderqueue;
    25         tbuy(1,1,lmt,extgbdata('stopprice')),orderqueue;
    26     end;    
    27 end;
    28

     

  • 金字塔客服:

    通不過

     

  • 用戶回復: 將代碼前面序號去掉

     

  • 網友回復: 學習了

     

  • 網友回復: ...一下就獎勵5個金幣。。真好啊。

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

相關文章

    沒有相關內容
主站蜘蛛池模板: 无码人妻精品一区二区三区久久 | 国产主播在线看| 性做久久久久久久久| 亚洲av无码一区二区乱子伦as | 噜噜影院无毒不卡| 被吃奶跟添下面视频| 天天躁日日躁狠狠躁中文字幕 | 紧窄极品名器美妇灌| 国产精品久久久久影院| eeuss在线播放| 打开腿给医生检查黄文| 五月天婷婷免费视频| 欧美黑人巨大videos极品| 口工全彩无遮挡3d漫画在线| 黄色网址免费观看视频| 国产精品美女视视频专区| 一级一级一级毛片| 日本人视频jizz69页码| 亚洲一区二区三区精品视频| 波多野结衣护士系列播放| 出包王女第四季op| 被公侵幕岬奈奈美中文字幕| 日韩一级在线视频| 亚洲福利视频网站| 精品国产一区在线观看| 国产免费牲交视频| 亚洲欧美日韩人成| 在线|一区二区三区| 一级呦女专区毛片| 日本三级很黄试看120秒| 亚洲av无码专区在线| 欧美色综合高清视频在线| 免费又黄又硬又爽大片| 老司机带带我懂得视频| 国产女人高潮视频在线观看| 最新黄色免费网站| 在线观看特色大片免费网站 | 精品久久中文网址| 国产一区在线观看免费| 黄色网在线播放| 国产精品一区二区久久国产|