Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Programming plot line width
Collapse
X
-
An odd thing happened. When I put that line in initialize I got an error message in the output box "failed to call method initialize'. After remming the line out, the inidicator worked with the plot lines plotting thicker as I wanted. How does it work with them remmed out?
Comment
-
It seems to be working now,,, thanks a lot.
I have a new question regarding initialize method and the Variables region... I would like to create an alert and plot a line at a user defined level on a custom oscillator... one that I can reset (reload) as time passes. Is there an example of how this can be done?
Thanks again in advance.
Comment
-
Most of this can be setup when you create a new indicator through the wizard. You can define custom inputs in the wizard. Create a double type input and then set a plot to it.
You can then work with CrossAbove or CrossBelow to check for crossing and use Alert() command. If you have any trouble with syntax, you can create these expressions in strategy wizard, and copy paste into your indicator code.
Ryan M.NinjaTrader Customer Service
Comment
-
Thank you for the help... (again). I have successfully created this alert and plot using the custom indicator wizard. It would be nice, however, to not have to recreate the indicator and in the process rename then delete the old one. For my own Ninja Script education I would like to understand how to accomplish this manually using the variables and properties regions along with the initialize method. However, thanks to your help my Ninja Script abilities are getting better! Thanks again.
Comment
-
Ryan M.NinjaTrader Customer Service
Comment
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by Geovanny Suaza, 02-11-2026, 06:32 PM
|
0 responses
607 views
0 likes
|
Last Post
|
||
|
Started by Geovanny Suaza, 02-11-2026, 05:51 PM
|
0 responses
353 views
1 like
|
Last Post
|
||
|
Started by Mindset, 02-09-2026, 11:44 AM
|
0 responses
105 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
560 views
1 like
|
Last Post
|
||
|
Started by RFrosty, 01-28-2026, 06:49 PM
|
0 responses
561 views
1 like
|
Last Post
by RFrosty
01-28-2026, 06:49 PM
|

Comment