How can I allow a user to define the text placement?
Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
How To Serialize TextPosition.
Collapse
X
-
How To Serialize TextPosition.
I am implementing an alert function when certain conditions are met and a fixed text is shown.
How can I allow a user to define the text placement?Tags: None
-
Hello LoganJKTrader,
TextPosition is an enum. Enums, bools, strings, and numbers (int, double, float, etc) do not need to be serialized as they have a default tostring available.
Code:[NinjaScriptProperty] [Display(Name = "Text position", GroupName = "NinjaScriptParameters", Order = 0)] public TextPosition TextPositionInput { get; set; }Chelsea B.NinjaTrader Customer Service
-
Thank you Chelsea,
I had got the right Properties to add it but had moved Browseable False & Ignore alongside that then caused me to try other methods. Having remove those to have it working well.
Comment
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by CarlTrading, 03-31-2026, 09:41 PM
|
1 response
43 views
0 likes
|
Last Post
|
||
|
Started by CarlTrading, 04-01-2026, 02:41 AM
|
0 responses
20 views
0 likes
|
Last Post
by CarlTrading
04-01-2026, 02:41 AM
|
||
|
Started by CaptainJack, 03-31-2026, 11:44 PM
|
0 responses
30 views
1 like
|
Last Post
by CaptainJack
03-31-2026, 11:44 PM
|
||
|
Started by CarlTrading, 03-30-2026, 11:51 AM
|
0 responses
47 views
0 likes
|
Last Post
by CarlTrading
03-30-2026, 11:51 AM
|
||
|
Started by CarlTrading, 03-30-2026, 11:48 AM
|
0 responses
38 views
0 likes
|
Last Post
by CarlTrading
03-30-2026, 11:48 AM
|

Comment