Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
text in the line
Collapse
X
-
-
Hi NinjaTrader_PaulH,
Regarding the indicator AddPlotNames, I would like to use it but create lines through code, for example, to draw the high of the previous week, and also change some settings according to my needs, if I need to plot text or price, or append price to the text, also to put text by code, etc.
What function can I use to do that?
Regards!
Luis
Comment
-
Hello Luis,Originally posted by LuisJorge View PostHi NinjaTrader_PaulH,
Regarding the indicator AddPlotNames, I would like to use it but create lines through code, for example, to draw the high of the previous week, and also change some settings according to my needs, if I need to plot text or price, or append price to the text, also to put text by code, etc.
What function can I use to do that?
Regards!
Luis
Thank you for your note.
Depending on what you are looking to do, you could modify the script to calculate the necessary values and then render lines and text in the OnRender() method. We have more details about using SharpDX for custom rendering in the help guide here:- https://ninjatrader.com/support/help..._rendering.htm
- Lines and Shapes: https://ninjatrader.com/support/help...chart_renderin g.htm#SharpDXLinesAndShapes
- Text rendering: https://ninjatrader.com/support/help...chart_renderin g.htm#SharpDXTextRendering
- Best practices: https://ninjatrader.com/support/help...chart_renderin g.htm#BestPracticesforSharpDXResources
If you are interested in manually drawing labeled objects, you could check out the Labeled Lines drawing tools. There are also NinjaScript overloads for these labeled lines that could be used programmatically.
This indicator is publicly available on our NinjaTrader Ecosystem website:
Here is a basic guideline of how to import NinjaScript add-ons in NinjaTrader 8:
Note — To import NinjaScripts you will need the original .zip file.
To Import:- Download the NinjaScripts to your desktop, keep them in the compressed .zip file.
- From the Control Center window select the menu Tools > Import > NinjaScript Add-on...
- Select the downloaded .zip file
- NinjaTrader will then confirm if the import has been successful.
Critical - Specifically for some NinjaScripts, it will prompt that you are running newer versions of @SMA, @EMA, etc. and ask if you want to replace, press 'No'
Once installed, you may add the indicator to a chart by:- Right-click your chart > Indicators... > Select the Indicator from the 'Available' list on the left > Add > OK
Here is a short video demonstration of the import process:
Please let me know if I can be of further assistance.
The NinjaTrader Ecosystem website is for educational and informational purposes only and should not be considered a solicitation to buy or sell a futures contract or make any other type of investment decision. The add-ons listed on this website are not to be considered a recommendation and it is the reader's responsibility to evaluate any product, service, or company. NinjaTrader Ecosystem LLC is not responsible for the accuracy or content of any product, service or company linked to on this website.
Comment
- https://ninjatrader.com/support/help..._rendering.htm
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by Geovanny Suaza, 02-11-2026, 06:32 PM
|
0 responses
670 views
0 likes
|
Last Post
|
||
|
Started by Geovanny Suaza, 02-11-2026, 05:51 PM
|
0 responses
379 views
1 like
|
Last Post
|
||
|
Started by Mindset, 02-09-2026, 11:44 AM
|
0 responses
111 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
575 views
1 like
|
Last Post
|
||
|
Started by RFrosty, 01-28-2026, 06:49 PM
|
0 responses
582 views
1 like
|
Last Post
by RFrosty
01-28-2026, 06:49 PM
|

Comment