Similar to EntryHandling parameter.
Announcement
Collapse
Looking for a User App or Add-On built by the NinjaTrader community?
Visit NinjaTrader EcoSystem and our free User App Share!
Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less
Partner 728x90
Collapse
NinjaTrader
Multi-option drop down parameters
Collapse
X
-
Excellent, I'm familiar with it.
heres an example for anyone else
Code:public enum PosTypes {Long, Short} // be sure to make this public PosTypes posType = PosTypes.Long; [Description("Pos Type")] [Category("Parameters")] public PosTypes PosType { get { return posType; } set { posType = value } }
Comment
-
Originally posted by NinjaTrader_Dierk View PostFYI: There already is an equivalent NT enum: NinjaTrader.Cbi.MarketPosition.
I was just wondering, because I'm making an indicator, and would like to include a drop-down menu with various relational operators so that the user can choose how the condition should be tested. For example with such an drop-down menu it would be possible for the user to choose between 'Variable1 > Variable2' condition and the 'Variable1 < Variable2' condition.
How can I achieve such a feature with enums? (or perhaps a different way?)
Any thoughts are highly appreciated
Regards,
Comment
Latest Posts
Collapse
Topics | Statistics | Last Post | ||
---|---|---|---|---|
Started by Mathias79, Today, 03:44 PM
|
0 responses
15 views
0 likes
|
Last Post
by Mathias79
Today, 03:44 PM
|
||
Started by Austiner87, Today, 03:42 PM
|
0 responses
9 views
0 likes
|
Last Post
by Austiner87
Today, 03:42 PM
|
||
Started by lorem, 04-25-2024, 09:18 AM
|
19 responses
82 views
0 likes
|
Last Post Today, 02:56 PM | ||
Started by joselube001, 05-10-2024, 12:17 PM
|
6 responses
29 views
0 likes
|
Last Post
by joselube001
Today, 02:34 PM
|
||
Started by bigc0220, 09-18-2018, 09:16 AM
|
6 responses
2,587 views
0 likes
|
Last Post Today, 02:05 PM |
Comment