8
Follow
1375
Followers
Cách lọc số lượng sàn giao dịch thực tế trong chiến lược đa sàn giao dịch
Created 2017-07-27 17:30:18
0
1887
Cách lọc số lượng sàn giao dịch thực tế trong chiến lược đa sàn giao dịch
Một số người dùng đã hỏi làm thế nào để chọn ra một số lượng tài khoản giao dịch thực sự được cấu hình từ một loạt các sàn giao dịch đã được thêm vào.
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)
}
Related Recommendations
Comment
All comments (0)
No data
- 1


