Jump to content

Welcome to the new Traders Laboratory! Please bear with us as we finish the migration over the next few days. If you find any issues, want to leave feedback, get in touch with us, or offer suggestions please post to the Support forum here.

tcyue1984

Members
  • Content Count

    2
  • Joined

  • Last visited

Personal Information

  • First Name
    TradersLaboratory.com
  • Last Name
    User
  • City
    Burnaby
  • Country
    Canada
  • Gender
    Male

Trading Information

  • Vendor
    No
  1. Dear all, I am currently working on a tradestation function which requires early return. Please find an example attached below: if (x=y) then return if(y>3) then return y=y+1; Note that there seems to be no return statement for easy langauge. It would be really nice if someone can provide me with some advice. Thanks in advance
  2. the best way to return an array is to go for return as reference. please find the example function (called exfun) below. //----------------------------------// inputs: inarray[M](numericarrayref); //EL code// //end EL code// exfun=1; //note: M is length of array, and inarray is returned as by reference. Also, exfun=1 is required or else you will get an error from TS saying that you haven't assign a value to the function. Hope this helps!
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.