Announcement

Collapse
No announcement yet.

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.

      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.

          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.

                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.

                    Comment

                    Latest Posts

                    Collapse

                    Topics Statistics Last Post
                    Started by NullPointStrategies, Yesterday, 05:17 AM
                    0 responses
                    54 views
                    0 likes
                    Last Post NullPointStrategies  
                    Started by argusthome, 03-08-2026, 10:06 AM
                    0 responses
                    130 views
                    0 likes
                    Last Post argusthome  
                    Started by NabilKhattabi, 03-06-2026, 11:18 AM
                    0 responses
                    72 views
                    0 likes
                    Last Post NabilKhattabi  
                    Started by Deep42, 03-06-2026, 12:28 AM
                    0 responses
                    44 views
                    0 likes
                    Last Post Deep42
                    by Deep42
                     
                    Started by TheRealMorford, 03-05-2026, 06:15 PM
                    0 responses
                    49 views
                    0 likes
                    Last Post TheRealMorford  
                    Working...
                    X