Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Property List<string>
Collapse
X
-
Property List<string>
Is it possible to create a property that is a List<string> so that it behaves similar to how an enum property would? So that it would a) create a combo box with the list of strings where it allows you to select one of them, and b) will let you optimize across the list of values in the list when optimizing?Tags: None
-
Hello,
After speaking with development on this, it looks like the maximum complexity of optimization objects would be up to enums.
A collection of objects could be any type really so there would not be a way to cover all bases on this. Instead it was suggested to utilize a Int property or an Enum and optimize that. In the script you could utilize the int to delegate logic or use a specific index in a collection for logic.
I am unsure of the specifics on your need for a list of strings but this would likely be the easiest/most correct solution regarding what can be optimized.
I look forward to being of further assistance.JesseNinjaTrader Customer Service
Comment
Latest Posts
Collapse
Topics | Statistics | Last Post | ||
---|---|---|---|---|
Started by Tim-c, Today, 02:10 PM
|
1 response
7 views
0 likes
|
Last Post Today, 02:52 PM | ||
Started by Taddypole, Today, 02:47 PM
|
0 responses
2 views
0 likes
|
Last Post
by Taddypole
Today, 02:47 PM
|
||
Started by chbruno, 04-24-2024, 04:10 PM
|
4 responses
50 views
0 likes
|
Last Post
by chbruno
Today, 02:38 PM
|
||
Started by TraderG23, 12-08-2023, 07:56 AM
|
10 responses
399 views
1 like
|
Last Post
by beobast
Today, 02:35 PM
|
||
Started by lorem, Yesterday, 09:18 AM
|
5 responses
25 views
0 likes
|
Last Post Today, 12:29 PM |
Comment