NinjaTrader Support Forum  

Go Back   NinjaTrader Support Forum > NinjaScript Development Support > Indicator Development

Indicator Development Support for the development of custom indicators using NinjaScript.

Reply
 
Thread Tools Display Modes
Old 07-31-2010, 06:33 AM   #1
SharkCub
Junior Member
 
Join Date: Jul 2010
Location: Pittsburgh
Posts: 13
Thanks: 0
Thanked 1 time in 1 post
Send a message via AIM to SharkCub Send a message via Skype™ to SharkCub
Default Pull-Down List with Strings

In the thread: http://www.ninjatrader.com/support/f...ead.php?t=2646

Customer support shows how to create a pull-down list in parameters using a public enum. I would like to generate a pull down list that allows the user to select one of several strings. In particular:


"auto"
"0"
"0.00"
"0.000"
"0.0000"
"0.00000"

(Essential number formats for displaying information).

These CANNOT be used as "enums" (enum names must begin with a letter and cannot have embedded '.'). Any suggestions?

Thank you for your help!
SharkCub is offline  
Reply With Quote
Old 07-31-2010, 10:06 AM   #2
NinjaTrader_Bertrand
NinjaTrader Customer Service
 
NinjaTrader_Bertrand's Avatar
 
Join Date: Sep 2008
Location: Germany
Posts: 22,377
Thanks: 252
Thanked 966 times in 949 posts
Default

SharkCub, unfortunately this is outside of the scope we can support here, however if you google this issue there are several workarounds being shown so you should find snippets to start from -

http://www.codeproject.com/KB/cs/stringenum.aspx
NinjaTrader_Bertrand is offline  
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
sending strings from indicator... jonmoron Indicator Development 7 04-08-2013 02:56 AM
European date format and strings eDanny General Programming 6 03-15-2011 12:04 PM
User defined Variables: Font? Enum Pull-Down list? Lost Trader General Programming 20 08-30-2010 06:59 AM
Why can't I pull up a daily chart? BrianNC Miscellaneous Support 1 10-07-2009 03:21 AM
OrderID and custom strings furedde Miscellaneous Support 3 11-06-2006 08:27 AM


All times are GMT -6. The time now is 02:43 AM.