Function with optional parameters - futures io
futures io

Function with optional parameters

Discussion in TradeStation

    1. trending_up 1,908 views
    2. thumb_up 0 thanks given
    3. group 1 followers
    1. forum 0 posts
    2. attach_file 0 attachments

Welcome to futures io: the largest futures trading community on the planet, with well over 125,000 members
  • Genuine reviews from real traders, not fake reviews from stealth vendors
  • Quality education from leading professional traders
  • We are a friendly, helpful, and positive community
  • We do not tolerate rude behavior, trolling, or vendors advertising in posts
  • We are here to help, just let us know what you need
You'll need to register in order to view the content of the threads and start contributing to our community.  It's free and simple.

-- Big Mike, Site Administrator

(If you already have an account, login at the top of the page)

Search this Thread

Function with optional parameters

(login for full post details)
  #1 (permalink)
Posts: 9 since Aug 2009
Thanks: 1 given, 1 received


Under TS8 . Is it possible to call a function with optional parameters ?

Ideally, i'd like to call a function with an unlimited amount of params, but this is most probably not supports under EasyLanguage ? ( Under c# we have the "params" keyword to allow this).

My work-around would be to accept an Array as parameter. But i would like users who do not need to send the array to not have to create an empty array and call the function with an empty array.

so basically i'd like to be able to do this :

ret = myFunc();


Array: myArray [2] ("");
myArray[0] = "TestValue";
myArray[1] = "54";

ret = myFunc(myArray);

Reply With Quote

futures io Trading Community Platforms and Indicators TradeStation > Function with optional parameters

Last Updated on June 1, 2012

Upcoming Webinars and Events

NinjaTrader Indicator Challenge!


Journal Challenge w/$1,800 in prizes!

May 7

The Cold Hard Truth: Maybe I Am Not Good Enough w/Chris Gray @ Earn2Trade

Elite only

Copyright © 2021 by futures io, s.a., Av Ricardo J. Alfaro, Century Tower, Panama, Ph: +507 833-9432 (Panama and Intl), +1 888-312-3001 (USA and Canada),
All information is for educational use only and is not investment advice.
There is a substantial risk of loss in trading commodity futures, stocks, options and foreign exchange products. Past performance is not indicative of future results.
no new posts