Type/to search

50行多平台对冲策略(教学)

Study
8
Follow
1364
Followers

教学策略

Source
JavaScript
var preSumBalance = 0
var initSumBalance = 0
function UpdateAccount(isFirst){
    var msg = ""
    var sumStocks = 0
    var sumBalance = 0
    for(var i = 0; i < exchanges.length; i++){
        if(exchanges[i].needUpdate == true || isFirst == true){
            exchanges[i].account = _C(exchanges[i].GetAccount)
            exchanges[i].needUpdate = false
            if(isFirst == true){
                initSumBalance += (exchanges[i].account.Balance + exchanges[i].account.FrozenBalance)
Strategy parameters
Strategy parameters
对冲差价
对冲量
下单量精度
下单价格精度
Comment
All comments (2)

    请教梦总,exchanges.length,这是什么?交易所的数量?

    8 years ago

    这个是 在创建机器人时 页面上添加的 交易所对象的 个数。 添加的交易所对象 都在 exchanges 这个数组中。

    8 years ago
  • 1
iPhone Download
Forums
PINE Language
© 2015 - ∞ INVENTOR PTE LTD (SG)