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

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

請問 大師能否把這個代碼做一個注釋啊? [金字塔]

  • 咨詢內(nèi)容:

    offset=3

     count = order.ordernum2

     for i = 0 to count-1
      call order.orderinfo2(index, orderid, consign, filled, remaining, action, ordertype, lmtprice,auxprice, account, code, market)
      if ordertype=0 then 
       order.contract code,market,multiplier,mintick,shortpercent,longpercent
       set report1 = marketdata.getreportdata(code,market)
       
       if abs(report1.newprice-lmtprice)>=offset*mintick then
        call order.cancelorder(orderid)
            
        if action=0 and kaiping=0 then
         order.buy 0,remaining,report1.newprice,0,code,market,account,0
        end if
        
        if action=0 and kaiping=1 then
         order.sell 0,remaining,report1.newprice,0,code,market,account,0
        end if
        
        if action=1 and kaiping=0 then
         order.buyshort 0,remaining,report1.newprice,0,code,market,account,0
        end if
        
        if action=1 and kaiping=1 then
         order.sellshort 0,remaining,report1.newprice,0,code,market,account,0
        end if    
       end if
      end if  
     next




    這些參數(shù)貌似都沒有地方查。或者給一個可以查的鏈接。非常感謝

     

  • 金字塔客服: Public ExcelApp, iRowNo, iStartPingDuo, iStartPingKong, AccountCountPublic iMultipliter

    Sub ORDER_OrderStatusEx2(OrderID, Status, Filled, Remaining, Price, Code, Market, OrderType, Aspect, Kaiping, Account, AccountType)    '賬戶類型 0 IB 1 CTP 2 金仕達    Dim sStatus                         '成交狀態(tài)
        If AccountType = 0 Then        sAccType = "0.IB"    ElseIf AccountType = 1 Then        sAccType = "1.CTP"    ElseIf AccountType = 2 Then        sAccType = "2.金士達"    End If            If AccountType = 0 Then        sStatus = "FILLED"    ElseIf AccountType = 1 Then        sStatus = "TRADEING"    ElseIf AccountType = 2 Then        sStatus = "FILLED"    End If    If UCase(Status) = sStatus Then     '只跟蹤成交的單        WriteTradeLog OrderID, Status, Filled, Remaining, Price, Code, Market, OrderType, Aspect, Kaiping, Account    End IfEnd Sub''''''''''''''''''''''''''''''''''''''''''Sub WriteTradeLog(OrderID, Status, Filled, Remaining, Price, Code, Market, OrderType, Aspect, Kaiping, AccountCode)    Dim i, j    Dim sSheetName, TradeSxf    On Error Resume Next
                              If iStartPingDuo = 0 Then                iStartPingDuo = 1            End If            If iStartPingKong = 0 Then                iStartPingKong = 1            End If            If Kaiping = 0 Then     '開倉               TBUY(1,Filled,Code)                Else            '平倉                If Aspect = 1 And Kaiping >= 1 Then '平多                                                       End If                If Aspect = 0 And Kaiping >= 1 Then '平空                                 End If            End If       
    End Sub

    TBUY(1,Filled,Code)    我想開倉,截獲的品種和數(shù)量,但是系統(tǒng)提示,這樣是不行。請問大神,這個代碼要怎么寫?
    [此貼子已經(jīng)被作者于2014/10/31 11:43:37編輯過]

     

  • 用戶回復(fù):

    TBUY(1,Filled,Code) 是perl后臺語句,不能用在vba代碼段中,在vba代碼中得用Order對象的buy方法

    建議學(xué)習(xí)一下我發(fā)布的vba代碼范例中的order對象

    http://www.weistock.com/bbs/dispbbs.asp?boardid=5&Id=11642

     

    [此貼子已經(jīng)被作者于2014/11/1 18:03:36編輯過]

     

  • 網(wǎng)友回復(fù): 謝謝

 

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

可聯(lián)系技術(shù)人員 QQ: 1145508240  點擊這里給我發(fā)消息進行 有償 編寫!不貴!點擊查看價格!


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

相關(guān)文章

    沒有相關(guān)內(nèi)容
主站蜘蛛池模板: 综合国产在线 | 私人影院免费 | 四虎影院的网址 | 国产成人综合网在线观看 | 国产亚洲一区二区在线观看 | 99在线国产 | 成年女人免费看一级人体片 | 日韩精品亚洲一级在线观看 | 伊人色综合久久天天网蜜月 | 青青青手机视频 | 国产91精品福利在线观看 | 不卡的在线视频免费观看 | 好色亚洲 | 久久久精品久久久久三级 | 5x性区m免费毛片视频看看 | 日本亚州在线播放精品 | 狠狠色丁香婷婷综合最新地址 | 国产亚洲人成a在线v网站 | 亚洲一区综合在线播放 | 亚洲精品综合一区二区三区 | 成人黄色免费网站 | 997在线观看视频国产 | 奇米888四色在线精品 | 成人在线欧美 | 国产激情对白一区二区三区四 | 国产美女久久久亚洲 | 天天爽夜夜操 | 中文一级黄色片 | 欧美日本高清视频在线观看 | 午夜精品久久久久久久第一页 | 97se在线观看 | 日本不卡中文字幕 | 久久国产精品99久久久久久牛牛 | 久久综合中文字幕一区二区三区 | 久久精品国产一区二区三区 | 福利视频99 | 国产成人精品cao在线 | 国产成人在线免费 | 停停色 | 玖玖成人网 | 91中文在线 |