I just tested the workaround you gave in post#10 above. I am baffled as to how/why this works? Why does this work to suppress drawing the line? I noticed when I comment out the OnRender block entirely, it does not work and the line is drawn. Can you explain that? I am confused as to what is actually happening here to make this work.
Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Drawing Labels in Y Scale
Collapse
X
-
Chelsea,
I just tested the workaround you gave in post#10 above. I am baffled as to how/why this works? Why does this work to suppress drawing the line? I noticed when I comment out the OnRender block entirely, it does not work and the line is drawn. Can you explain that? I am confused as to what is actually happening here to make this work.
-
Sorry, can you give an example of how to do that? Would I just create a partial class as an AddOn and put this override into that? I need a way that makes it easy to distribute the Indicator as one Indicator without the user knowing this is two different indicators. So far, the only way I have found to do that is by putting a partial class in the AddOn folder.
Comment
-
Hello swcooke,
I'm not suggesting anything with partial classes.
I'm suggesting that you create a new indicator in the NinjaScript Editor. In the Explorer pane on the right, right-click the Indicators folder > select New Indicator > click OK.
In this new indicator add the logic to draw the other items. (You could even call the first indicator to get a plot value from it if you wanted)Chelsea B.NinjaTrader Customer Service
Comment
-
Issue solved? If yes. Please help me too. As I am not able to solve it mxplayerOriginally posted by seoking View Post
Even I am looking for the same mate, let me know once you find.
Regards,
Regards, mxplayer for pcLast edited by pinknemo13; 07-18-2020, 11:41 AM.
Comment
-
Hello pinknemo13,
It is possible to custom render text if you wanted to do this in the OnRender() override and then not call base.OnRender() so that the chart objects from the script are not rendered.
Below is a link to an example of rendering text.
Simple script that adds a background watermark of the instrument symbol (and expiry if a future) to the chart. (Updated July 10th, 2018 ‐ The opacity needed to be casted as a double and divided by 100 to be between 0 and 1) (Update: August 24th, 2021 – Subtracted the ChartPanel.Y so indicator can be […]Chelsea B.NinjaTrader Customer Service
Comment
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by Geovanny Suaza, 02-11-2026, 06:32 PM
|
0 responses
637 views
0 likes
|
Last Post
|
||
|
Started by Geovanny Suaza, 02-11-2026, 05:51 PM
|
0 responses
366 views
1 like
|
Last Post
|
||
|
Started by Mindset, 02-09-2026, 11:44 AM
|
0 responses
107 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
569 views
1 like
|
Last Post
|
||
|
Started by RFrosty, 01-28-2026, 06:49 PM
|
0 responses
571 views
1 like
|
Last Post
by RFrosty
01-28-2026, 06:49 PM
|

Comment