avatar of 发明者量化-小小梦 发明者量化-小小梦
focar em Mensagem privada
4
focar em
1271
Seguidores

Como filtrar o número real de trocas em uma estratégia de múltiplas trocas

Criado em: 2017-07-27 17:30:18, atualizado em:
comments   0
hits   1613

Como filtrar o número real de trocas em uma estratégia de múltiplas trocas

Um usuário perguntou como escolher entre um monte de exchanges adicionados (em diferentes moedas) o número de contas de negociação configuradas.

  • #### Por exemplo:

Como filtrar o número real de trocas em uma estratégia de múltiplas trocas

A escolha de uma das várias bolsas de valores.

  • #### Código de teste
function main(){
    var showArray = []
    for(var i = 0; i < exchanges.length ; i++){
        Log("Name:", exchanges[i].GetName(), "Label:", exchanges[i].GetLabel(), "#FF0000")
    }
    
    Log("筛选")
    for(var j = 0; j < exchanges.length; j++){
        var isFind = false
        for(var n = 0; n < showArray.length; n++){
            if(exchanges[j].GetLabel() == showArray[n].Label && exchanges[j].GetName() == showArray[n].Name){
                isFind = true
            }
        }
        if(!isFind){
            Log(exchanges[j].GetLabel())
            showArray.push({Name : exchanges[j].GetName() , Label : exchanges[j].GetLabel()})
        }
    }
    
    Log(showArray)
}
  • #### Resultados dos testes

Como filtrar o número real de trocas em uma estratégia de múltiplas trocas