Type/to search
8
Follow
1375
Followers
Comment filtrer le nombre réel d'échanges dans une stratégie multi-échanges
FAQ
Created 2017-07-27 17:30:18  
 0
 1887

Comment filtrer le nombre réel d'échanges dans une stratégie multi-échanges

Certains utilisateurs ont demandé comment sélectionner le nombre réel de comptes de négociation parmi un grand nombre d'échanges ajoutés.

  • Par exemple:

    img

    Il y a effectivement plusieurs bourses.

  • Test du petit code

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) }
  • Résultats des tests

    img

Related Recommendations
Comment
All comments (0)
No data
No data
  • 1
Forums
PINE Language
Get the app
iPhone Download
© 2015 - ∞ INVENTOR PTE LTD (SG)