Similar to EntryHandling parameter.
Announcement
Collapse
No announcement yet.
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
-
Hm, that's interesting.Originally posted by NinjaTrader_Dierk View PostFYI: There already is an equivalent NT enum: NinjaTrader.Cbi.MarketPosition.
Is there also such a class for relational operators? (<,>,>=,etc)
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 Geovanny Suaza, 02-11-2026, 06:32 PM
|
0 responses
571 views
0 likes
|
Last Post
|
||
|
Started by Geovanny Suaza, 02-11-2026, 05:51 PM
|
0 responses
331 views
1 like
|
Last Post
|
||
|
Started by Mindset, 02-09-2026, 11:44 AM
|
0 responses
101 views
0 likes
|
Last Post
by Mindset
02-09-2026, 11:44 AM
|
||
|
Started by Geovanny Suaza, 02-02-2026, 12:30 PM
|
0 responses
549 views
1 like
|
Last Post
|
||
|
Started by RFrosty, 01-28-2026, 06:49 PM
|
0 responses
549 views
1 like
|
Last Post
by RFrosty
01-28-2026, 06:49 PM
|

Comment