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
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
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
-
Originally 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 Ludwik, Today, 03:52 AM
|
0 responses
2 views
0 likes
|
Last Post
by Ludwik
Today, 03:52 AM
|
||
Started by wuannetraam, Today, 02:40 AM
|
0 responses
8 views
0 likes
|
Last Post
by wuannetraam
Today, 02:40 AM
|
||
Started by cyberpete76, 03-27-2023, 12:29 AM
|
7 responses
269 views
1 like
|
Last Post
by slightly
Today, 01:47 AM
|
||
Started by renewsaltwater, Today, 01:15 AM
|
0 responses
2 views
0 likes
|
Last Post Today, 01:15 AM | ||
Started by slightly, Today, 12:49 AM
|
0 responses
4 views
0 likes
|
Last Post
by slightly
Today, 12:49 AM
|
Comment