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

[原創(chuàng)]移動止損后臺交易模板 [金字塔]

  • 咨詢內(nèi)容: 以下內(nèi)容為程序代碼:

    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

     

  • 金字塔客服:

    通不過

     

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

     

  • 網(wǎng)友回復: 學習了

     

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

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

相關(guān)文章

    沒有相關(guān)內(nèi)容
主站蜘蛛池模板: 日日夜夜天天久久| 狠狠色综合网站久久久久久久高清 | 欧美性色黄大片www喷水| 四虎成年永久免费网站| 北岛玲日韩精品一区二区三区| 妖精色av无码国产在线看| 久久国产乱子伦精品免费不卡| 毛片a级毛片免费播放下载| 午夜视频在线观看按摩女| 黑料不打烊tttzzz网址入口| 国产黄色片在线播放| 丁香花高清在线观看完整版| 日韩中文字幕在线| 亚洲成人网在线观看| 真实国产乱子伦久久| 国产一级一片免费播放| 你懂的视频在线| 在线观看成人网站| 一级做a爰片性色毛片中国| 日韩a级毛片免费视频| 亚洲国产日韩在线成人蜜芽| 男女做羞羞的事漫画| 国产2021中文天码字幕| 久久综合久久鬼| 波多野结衣动态图| 又粗又黄又猛又爽大片免费| 黄色免费短视频| 成人免费区一区二区三区| 乌克兰大白屁股| 欧美日本韩国一区二区| 免费a级毛片无码| 美女被按在的视频网站观看| 国产成人欧美视频在线| 2020因为爱你带字幕免费观看全集| 好吊色欧美一区二区三区四区| 中文无码AV一区二区三区| 日韩精品一区二区亚洲av观看 | 激情另类小说区图片区视频区| 啊灬啊别停灬用力啊老师网站| 陪读妇乱子伦小说| 国产无套内射久久久国产|