Announcement
Collapse
Looking for a User App or Add-On built by the NinjaTrader community?
Visit NinjaTrader EcoSystem and our free User App Share!
Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less
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 quicksandatl, 05-09-2024, 11:11 AM
|
3 responses
23 views
0 likes
|
Last Post
by quicksandatl
Today, 07:12 PM
|
||
Started by morrnel, 05-12-2024, 06:07 PM
|
6 responses
67 views
1 like
|
Last Post Today, 06:52 PM | ||
Started by algospoke, 05-13-2024, 06:53 PM
|
2 responses
21 views
0 likes
|
Last Post
by algospoke
Today, 06:49 PM
|
||
Started by janio973, Yesterday, 07:24 PM
|
6 responses
30 views
0 likes
|
Last Post Today, 06:01 PM | ||
Started by AlphaOptions, 06-18-2013, 08:24 AM
|
5 responses
2,172 views
0 likes
|
Last Post Today, 05:48 PM |
Comment