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

Change Panel name OR do not display panel name at all?

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

    Change Panel name OR do not display panel name at all?

    Hey,

    I am trying to add a "debug" panel below the chart, where I would draw vertical lines whenever my strategy rules are met. I created my custom indicator, called EntrySignal, but I failed to get those lines drawn into that panel, but I am able to get the lines drawn if I use another indicator. However, the name of that indicator also is displayed in the indicator Panel, and I would either:
    1) change the name of the panel
    2) get rid of that title (I tried to search for name change of the panel, but was unable to find it, so if it's not possible - I'd be ok not seeing it at all)

    The best option, however, would be to see those vertical lines in EntrySignal indicator, but it's not showing up.

    I think I did everything right (because, otherwise, it wouldn't show on any indicator), but somehow it doesn't. Steps:

    1. (after Strategy class)
    Code:
    private NinjaTrader.NinjaScript.Indicators.TSX.EntrySignal EntrySignal1;
    2. (State == State.Configure)
    Code:
    EntrySignal1 = EntrySignal(Close);
    EntrySignal1.Plots[0].Brush = Brushes.Transparent;
    EntrySignal1.Panel = 3;
    AddChartIndicator(EntrySignal1);
    3. (OnBarUpdate, I also removed my entry logic, just showing code for Draw Vertical Line)
    Code:
                    Draw.VerticalLine(EntrySignal1, @"Long Signal " + Convert.ToString(CurrentBars[0]), 0, Brushes.Lime, DashStyleHelper.Solid, 3, false);

    #2
    By the way, horizontal line is drawn as expected on EntrySignal1 panel. But vertical - not.

    Comment


      #3
      Hello UltraNIX,

      Thank you for your post.

      Without a simplified example I wouldn't really be able to say why you're not seeing those being drawn. You mentioned you are seeing horizontal lines being drawn, I assume these are using Draw.HorizontalLine and not AddLine()?

      Could you provide a simplified, importable example so we may test on our end?

      Thanks in advance; I look forward to assisting you further.
      Kate W.NinjaTrader Customer Service

      Comment


        #4
        Thank you. See the attached example file

        I just used SampleMACrossOver as a base for entry logic, and Strategy Builder to build a strategy.

        And then I just copied my code parts.

        And result is identical to what I get - panel is visible, but it's empty.
        Attached Files

        Comment


          #5
          Hello UltraNIX,

          Thank you for your reply.

          In our testing it looks like something odd is going on with Draw.VerticalLine when drawn from a strategy in an indicator. We've sent this to our QA team to take a look at and we'll let you know what they say.

          Thanks in advance; I look forward to assisting you further.
          Kate W.NinjaTrader Customer Service

          Comment


            #6
            Thank you, will be waiting for updates.

            Comment


              #7
              Originally posted by NinjaTrader_Kate View Post
              Hello UltraNIX,

              Thank you for your reply.

              In our testing it looks like something odd is going on with Draw.VerticalLine when drawn from a strategy in an indicator. We've sent this to our QA team to take a look at and we'll let you know what they say.

              Thanks in advance; I look forward to assisting you further.
              Any news, NinjaTrader_Kate ?

              Comment


                #8
                Hello UltraNIX,

                Thank you for your reply.

                No news from our QA team yet, but I'll let you know as soon as I hear anything.

                Thanks in advance for your patience.
                Kate W.NinjaTrader Customer Service

                Comment


                  #9
                  NinjaTrader_Kate maybe there are any news? Or if this is such a tall task, maybe there's another option of achieving that 'debug signal marking'?

                  Comment


                    #10
                    Hello UltraNIX,

                    Thank you for your reply.

                    It's currently with the development team, but I have yet to hear further information. As soon as I hear from them, I will let you know.

                    Thanks in advance for your patience.
                    Kate W.NinjaTrader Customer Service

                    Comment

                    Latest Posts

                    Collapse

                    Topics Statistics Last Post
                    Started by andrewtrades, Today, 04:57 PM
                    1 response
                    8 views
                    0 likes
                    Last Post NinjaTrader_Manfred  
                    Started by chbruno, Today, 04:10 PM
                    0 responses
                    6 views
                    0 likes
                    Last Post chbruno
                    by chbruno
                     
                    Started by josh18955, 03-25-2023, 11:16 AM
                    6 responses
                    436 views
                    0 likes
                    Last Post Delerium  
                    Started by FAQtrader, Today, 03:35 PM
                    0 responses
                    7 views
                    0 likes
                    Last Post FAQtrader  
                    Started by rocketman7, Today, 09:41 AM
                    5 responses
                    19 views
                    0 likes
                    Last Post NinjaTrader_Jesse  
                    Working...
                    X