Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Custom Indicator
Collapse
X
-
Custom Indicator
I opened one of your system indicators and would like to add a user parameter and change the code a little. I can change the code ok, however when I add a parameter I run into issues for the Properties section. Is there a way I can have the wizard help with that in an edit mode to add a parameter?Tags: None
-
velocity,
If you want to change the code for a system indicator you must first save it as a new name as NT doesn't allow you to modify system indicators.
So, first open the indicator and right mouse click the code window. Then go to Save As and save it as xxxxV1 or something.
Now, you're working with an indicator you can modify.
If you're trying to add an input you can use the following example.
Add something like this...
[Description("Desc")]
[Category("Parameters")]
public int Period
{
get { return iPeriods; }
set { iPeriods = Math.Max(1, value); }
}
now, up in the variables section you have to add a variable as such
private int iPeriods = 1; //or some other default value to replace 1
make sense?
hope this helps.
-
here you go. I added the buy and sell criteria inputAttached Files
Comment
-
velocity,
At the bottom of your code
You have to define output parameters for any plots you define.
You have to define input parameters for any inputs you define.
Your plot names were the same as your input names.
The name of your plots must match the name of the plot parameters you define.
Look over the attached. Search for //mrlogik to see what i changed.
I have to run.
(attached)Attached Files
Comment
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by Geovanny Suaza, 02-11-2026, 06:32 PM
|
0 responses
574 views
0 likes
|
Last Post
|
||
|
Started by Geovanny Suaza, 02-11-2026, 05:51 PM
|
0 responses
333 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
553 views
1 like
|
Last Post
|
||
|
Started by RFrosty, 01-28-2026, 06:49 PM
|
0 responses
551 views
1 like
|
Last Post
by RFrosty
01-28-2026, 06:49 PM
|

Comment