NinjaTrader Support Forum  

Go Back   NinjaTrader Support Forum > NinjaScript Development Support > General Programming

General Programming General NinjaScript programming questions.

Reply
 
Thread Tools Display Modes
Old 06-26-2012, 10:59 AM   #1
GAVETSO
Member
 
Join Date: Jun 2012
Posts: 32
Thanks: 4
Thanked 0 times in 0 posts
Cool Create multiselection menus in indicator options

I’m porting some good indicators from Thinkorswing platform to NT7 and i have a question regarding create Multiselection menus in NT7 IM trying to get some info about that and i cant code that in nt7 let me show the examples how i already have the indicator in TOS and how i get code in NT7 .


photo upload

I want code a Multiselection menu as Black screen in TOS in NT7 do you know some library TO DO THAT OR CODE or framework to do that? Please?

THANK YOU FOR YOUR IDEAS AND SUPPORT GUYS
GAVETSO is offline  
Reply With Quote
Old 06-26-2012, 11:08 AM   #2
NinjaTrader_Joydeep
NinjaTrader Customer Service
 
NinjaTrader_Joydeep's Avatar
 
Join Date: Dec 2011
Location: India
Posts: 3,286
Thanks: 580
Thanked 546 times in 541 posts
Default

Hello GAVETSO,
Welcome to the forum and I am happy to assist you.

You can create your own user defined parameters by further custom coding your NinjaScript code.

Please refer to this sample code which demonstrates it
http://ninjatrader.com/support/forum...ead.php?t=3420

Also in this context let me say that NinjaScript is basically C# (.Net framework) and you can harness the full potential of the .Net framework to code your NinjaScript code.
NinjaTrader_Joydeep is offline  
Reply With Quote
The following user says thank you to NinjaTrader_Joydeep for this post:
Old 06-27-2012, 06:34 AM   #3
koganam
Senior Member
 
Join Date: Feb 2008
Location: Durham, North Carolina, USA
Posts: 3,199
Thanks: 24
Thanked 1,225 times in 996 posts
Send a message via Skype™ to koganam
Default

You would use an enum variable to hold the selectable types and a switch block to determine which code path to execute based on the selection.
koganam is offline  
Reply With Quote
The following 2 users say thank you to koganam for this post:
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
Programming Custom Drop-Down Menus Jim-Boulder Indicator Development 1 07-26-2011 10:39 AM
I want to create custom indicator samualdev Charting 1 06-16-2011 06:42 AM
Menus are not friendly Ramon Suggestions And Feedback 1 05-12-2011 10:22 AM
Make menus remember last settings rangerdoc Suggestions And Feedback 1 01-10-2011 10:52 AM
Indicator Placment - More Options stevestrading Suggestions And Feedback 2 08-14-2007 12:53 AM


All times are GMT -6. The time now is 05:40 PM.