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 wzgy0920, 04-20-2024, 06:09 PM
                    2 responses
                    27 views
                    0 likes
                    Last Post wzgy0920  
                    Started by wzgy0920, 02-22-2024, 01:11 AM
                    5 responses
                    32 views
                    0 likes
                    Last Post wzgy0920  
                    Started by wzgy0920, 04-23-2024, 09:53 PM
                    2 responses
                    49 views
                    0 likes
                    Last Post wzgy0920  
                    Started by Kensonprib, 04-28-2021, 10:11 AM
                    5 responses
                    193 views
                    0 likes
                    Last Post Hasadafa  
                    Started by GussJ, 03-04-2020, 03:11 PM
                    11 responses
                    3,235 views
                    0 likes
                    Last Post xiinteractive  
                    Working...
                    X