Function with optional parameters - TradeStation | futures trading

Go Back

> Futures Trading, News, Charts and Platforms > Platforms and Indicators > TradeStation

Function with optional parameters
Started:June 1st, 2012 (04:05 AM) by ZARk Views / Replies:700 / 0
Last Reply:June 1st, 2012 (04:05 AM) Attachments:0

Welcome to

Welcome, Guest!

This forum was established to help traders (especially futures traders) by openly sharing indicators, strategies, methods, trading journals and discussing the psychology of trading.

We are fundamentally different than most other trading forums:
  • We work extremely hard to keep things positive on our forums.
  • We do not tolerate rude behavior, trolling, or vendor advertising in posts.
  • We firmly believe in openness and encourage sharing. The holy grail is within you, it is not something tangible you can download.
  • We expect our members to participate and become a part of the community. Help yourself by helping others.

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, and we will never resell your private information.

-- Big Mike

Thread Tools Search this Thread

Function with optional parameters

Old June 1st, 2012, 04:05 AM   #1 (permalink)
Futures Experience: Advanced
Platform: NinjaTrader, Tradestation
Broker/Data: Interactive Brokers
Favorite Futures: FDAX, Forex
Posts: 9 since Aug 2009
Thanks: 1 given, 1 received

Function with optional parameters


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

Reply > Futures Trading, News, Charts and Platforms > Platforms and Indicators > TradeStation > Function with optional parameters

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Upcoming Webinars and Events (4:30PM ET unless noted)

An Afternoon with FIO trader bobwest

Elite only

NinjaTrader 8: Programming Profitable Trading Edges w/Scott Hodson

Elite only

Anthony Drager: Executing on Intermarket Correlations & Order Flow, Part 2

Elite only

Adam Grimes: Five critically important keys to professional trading

Elite only

Machine Learning Concepts w/FIO member NJAMC

Elite only

MarketDelta Cloud Platform: Announcing new mobile features

Dec 1

NinjaTrader 8: Features and Enhancements

Dec 6

Similar Threads
Thread Thread Starter Forum Replies Last Post
Passing indicator parameters hawks67 NinjaTrader Programming 7 November 29th, 2012 09:04 AM
Stability and robustness of input parameters kosar Elite Automated NinjaTrader Trading 6 May 14th, 2012 05:45 AM
adding column in Parameters Window ceramictilepro NinjaTrader Programming 1 November 4th, 2011 10:36 PM
Save parameters from one session to another bukkan NinjaTrader Programming 7 January 4th, 2010 04:54 AM
OHLC with optional session times carlos NinjaTrader Programming 1 September 21st, 2009 07:37 AM

All times are GMT -4. The time now is 09:54 PM.

Copyright © 2016 by 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

Page generated 2016-10-23 in 0.07 seconds with 20 queries on phoenix via your IP