How does one hide a plot in NT8, so it does take any space. I need the plot to communicate with Market Analyzer, but really don't want it to show at all on my chart.
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
Totally hiding plot
Collapse
X
-
Totally hiding plot
Hi, I recently asked the question (by mistake) in NT7 forum http://ninjatrader.com/support/forum...ad.php?t=96844. I really need it for NT8.
How does one hide a plot in NT8, so it does take any space. I need the plot to communicate with Market Analyzer, but really don't want it to show at all on my chart. -
Hello,
Thank you for the post.
Does this item only happen to use one plot or do you want to hide all plots from this indicator? If so, you could implement the OnRender override without calling the base.OnRender(..);
Code:protected override void OnRender(ChartControl chartControl, ChartScale chartScale) { }
If you have other plots which need to be seen, in that case, I could only suggest making the plots color Transparent.
I look forward to being of further assistance.JesseNinjaTrader Customer Service
-
Hi Jesse,
Thanks for the quick reply. I appreciate.
Using your code, I could hide my indicator. However, it does not release vertical space, so my price plot is squished to the top. Any help is appreciated. As a workaround? can I render the plot to a different pane? Just searching for answers.
I don't know how to make the plot color transparent in NT8, please help. But it would still not relinquish space.
Comment
-
Hello,
Thank you for the reply.
I am unsure what you mean by the vertical space, do you mean that the chart is still being scaled to include the indicators value?
To make the plot transparent instead, you would just need to set the plots initial color when you configure it:
Code:AddPlot(Brushes.Transparent, "Plot0");
JesseNinjaTrader Customer Service
Comment
-
Hi Jesse, for whatever reason, the new plot (after a series of other plots) was showing at the bottom and not overlayed, even though isOveraly was true. So it was taking vertical space.
But your solution AddPlot(Brushes.Transparent, "Plot0");
worked great. The plot is gone, and it is no longer taking any vertical space.
PROBLEM SOLVED. Thanks!
Comment
-
-
check out that link, its to an example script that uses exposable variables.
you can add exposed series to your indicator to replace plots, then set your indicator to IsOverLay = true. This way, you can still reference the indicator via analyzer, other indicators, and strategies for values just like a regular plot without any of the visual mess.Last edited by gubbar924; 03-06-2017, 04:53 AM.
Comment
Latest Posts
Collapse
Topics | Statistics | Last Post | ||
---|---|---|---|---|
Started by ScottWalsh, 04-16-2024, 04:29 PM
|
6 responses
27 views
0 likes
|
Last Post
by ScottWalsh
Today, 02:57 PM
|
||
Started by frankthearm, Today, 09:08 AM
|
10 responses
35 views
0 likes
|
Last Post
by frankthearm
Today, 02:54 PM
|
||
Started by GwFutures1988, Today, 02:48 PM
|
0 responses
3 views
0 likes
|
Last Post Today, 02:48 PM | ||
Started by mmenigma, Today, 02:22 PM
|
1 response
3 views
0 likes
|
Last Post Today, 02:34 PM | ||
Started by NRITV, Today, 01:15 PM
|
2 responses
9 views
0 likes
|
Last Post
by NRITV
Today, 01:51 PM
|
Comment