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!
See more
See less

Partner 728x90

Collapse

Totally hiding plot

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    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.

    #2
    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)
    {
    }
    By not calling base.OnRender(chartControl, chartScale); this would prevent the indicator from rendering any plots but they could still be utilized.

    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

    Comment


      #3
      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


        #4
        Also, I have
        IsOverlay to true

        But I get the plot at the bottom of the pane. What am I doing wrong.

        Comment


          #5
          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");
          I look forward to being of further assistance.
          JesseNinjaTrader Customer Service

          Comment


            #6
            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


              #7
              You could also set IsAutoScale false.

              Comment


                #8



                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 ScottWalsh  
                Started by frankthearm, Today, 09:08 AM
                10 responses
                35 views
                0 likes
                Last Post frankthearm  
                Started by GwFutures1988, Today, 02:48 PM
                0 responses
                3 views
                0 likes
                Last Post GwFutures1988  
                Started by mmenigma, Today, 02:22 PM
                1 response
                3 views
                0 likes
                Last Post NinjaTrader_Jesse  
                Started by NRITV, Today, 01:15 PM
                2 responses
                9 views
                0 likes
                Last Post NRITV
                by NRITV
                 
                Working...
                X