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

Need Indicator Plot in Databox and not on Chart

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

    Need Indicator Plot in Databox and not on Chart

    Hello,

    I am developing an indicator that provides Buy/Sell signals and prices to a strategy.

    I do not want the indicator Plots to show up on the chart, but I still want to inspect the values in the NT Data Box.

    I tried setting up the indicator plots to transparent like this "Add(new Plot(Color.FromKnownColor(KnownColor.Transparent), PlotStyle.Line, "Plot_EN_Price"));"

    But it will not show in the NT Data Box.

    Can you pls let me know how I can setup an indicator plot to show up in the NT Data Box and not on the Chart.

    Thanks

    #2
    Hello Lucius,

    Thank you for your post.

    I do not understand why the transparent color did not work for the DataBox. Can you provide a sample of the code you are testing that produces the same results?

    Comment


      #3
      Originally posted by Lucius View Post
      Hello,

      I am developing an indicator that provides Buy/Sell signals and prices to a strategy.

      I do not want the indicator Plots to show up on the chart, but I still want to inspect the values in the NT Data Box.

      I tried setting up the indicator plots to transparent like this "Add(new Plot(Color.FromKnownColor(KnownColor.Transparent), PlotStyle.Line, "Plot_EN_Price"));"

      But it will not show in the NT Data Box.

      Can you pls let me know how I can setup an indicator plot to show up in the NT Data Box and not on the Chart.

      Thanks
      A transparent Plot will not show up in the DataBox. Try setting the color to the same as the chart background color, which will have the same visual effect on the chart.

      ChartControl.BackColor
      The ChartControl may not be available in the Initialize() method, so you may have to use the PlotColors syntax instead, in OnBarUpdate().

      Code:
      PlotColors[0][0] = ChartControl.BackColor; //et.c.,

      Comment


        #4
        Setting the plot to the same color as the chart background did the trick. Thanks kogaman

        Comment


          #5
          Thanks for letting us know Lucius and thanks koganam for the assist here.
          BertrandNinjaTrader Customer Service

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by MacDad, 02-25-2024, 11:48 PM
          7 responses
          158 views
          0 likes
          Last Post loganjarosz123  
          Started by Belfortbucks, Today, 09:29 PM
          0 responses
          7 views
          0 likes
          Last Post Belfortbucks  
          Started by zstheorist, Today, 07:52 PM
          0 responses
          7 views
          0 likes
          Last Post zstheorist  
          Started by pmachiraju, 11-01-2023, 04:46 AM
          8 responses
          151 views
          0 likes
          Last Post rehmans
          by rehmans
           
          Started by mattbsea, Today, 05:44 PM
          0 responses
          6 views
          0 likes
          Last Post mattbsea  
          Working...
          X