SHARE
TWEET

ts-ib-types

selnomeria Jan 8th, 2020 82 in 185 days
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. inputs: cat_(numericsimple);
  2.  
  3. vars: res_("");
  4.  
  5. if      (cat_ = 0)  then res_= "FUT"
  6. else if (cat_ = 1)  then res_= "FOP"
  7. else if (cat_ = 2)  then res_= "STK"
  8. else if (cat_ = 3)  then res_= "OPT" // ?
  9. else if (cat_ = 4)  then res_= "IND"
  10. else if (cat_ = 5)  then res_= "OPT" // ?
  11. else if (cat_ = 6)  then res_= "FUND"
  12. else if (cat_ = 7)  then res_= ""    // ?
  13. else if (cat_ = 8)  then res_= "OPT" // ?
  14. else if (cat_ = 9)  then res_= ""    // ?
  15. else if (cat_ = 10) then res_= "BOND"
  16. else if (cat_ = 11) then res_= ""    // ?
  17. else if (cat_ = 12) then res_= "CASH"
  18. else if (cat_ = 13) then res_= ""
  19. else if (cat_ = 14) then res_= ""
  20. else if (cat_ = 15) then res_= ""
  21. else if (cat_ = 16) then res_= ""
  22. else if (cat_ = 17) then res_= ""
  23. else if (cat_ = 18) then res_= ""
  24. else if (cat_ = 19) then res_= ""
  25. else if (cat_ = 20) then res_= ""
  26. else if (cat_ = 21) then res_= "";
  27. tc_CategoryToIBtype = res_;
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Top