Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
add extra input Without re-generate indicator
Collapse
X
-
Assuming you want to clone a built-in indicator, save as a different name, make your input change and re-compile.
-
First, add a line to the OnStateChange() block:
Then, in the Properties region declare it:Code:if (State == State.SetDefaults) { MyNewInteger = 13; }
You can always open a built-in indicator to see how it's done.Code:[Range(1, int.MaxValue), NinjaScriptProperty] [Display(ResourceType = typeof(Custom.Resource), Name = "MyNewInteger", GroupName = "NinjaScriptParameters", Order = 0)] public int Period { get; set; }
Comment
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by argusthome, 03-08-2026, 10:06 AM
|
0 responses
65 views
0 likes
|
Last Post
by argusthome
03-08-2026, 10:06 AM
|
||
|
Started by NabilKhattabi, 03-06-2026, 11:18 AM
|
0 responses
41 views
0 likes
|
Last Post
|
||
|
Started by Deep42, 03-06-2026, 12:28 AM
|
0 responses
23 views
0 likes
|
Last Post
by Deep42
03-06-2026, 12:28 AM
|
||
|
Started by TheRealMorford, 03-05-2026, 06:15 PM
|
0 responses
26 views
0 likes
|
Last Post
|
||
|
Started by Mindset, 02-28-2026, 06:16 AM
|
0 responses
52 views
0 likes
|
Last Post
by Mindset
02-28-2026, 06:16 AM
|

Comment