Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

DrawOnPricePanel = false & Y axes

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

    DrawOnPricePanel = false & Y axes

    I have an indicator where I set the DrawOnPricePanel = false.
    When I use DrawLine with High and Low as the prices the Y axes is set to 1- 0 so the values don't show. Here is the code. Is there a problem with the Y axes??

    if(CurrentBar<frequency) return;

    NLow = Low[LowestBar(Low,frequency)];
    NHigh = High[HighestBar(High,frequency)];

    NOpen = Open[frequency-1];
    NClose = Close[0];

    DrawLine("Tag1"+CurrentBar,true,0,NHigh,0,NLow,Col or.Black,DashStyle.Solid,1);
    if(NOpen > NClose)
    DrawLine("Tag2"+CurrentBar,true,0,NOpen,0,NClose,C olor.Red,DashStyle.Solid,3);
    else
    DrawLine("Tag3"+CurrentBar,true,0,NOpen,0,NClose,C olor.Green,DashStyle.Solid,3);

    #2
    Guy, I'll have someone take a look at this and get back to you tomorrow.
    AustinNinjaTrader Customer Service

    Comment


      #3
      GuyFB,

      You will need a plot in the indicator for the panel scaling to start working.
      Josh P.NinjaTrader Customer Service

      Comment


        #4
        Originally posted by NinjaTrader_Josh View Post
        GuyFB,

        You will need a plot in the indicator for the panel scaling to start working.

        B U G? Fixed in Next Release?

        Comment


          #5
          This is not a bug. If you don't have a plot, there is no scale for the panel.
          Josh P.NinjaTrader Customer Service

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by argusthome, 03-08-2026, 10:06 AM
          0 responses
          104 views
          0 likes
          Last Post argusthome  
          Started by NabilKhattabi, 03-06-2026, 11:18 AM
          0 responses
          52 views
          0 likes
          Last Post NabilKhattabi  
          Started by Deep42, 03-06-2026, 12:28 AM
          0 responses
          34 views
          0 likes
          Last Post Deep42
          by Deep42
           
          Started by TheRealMorford, 03-05-2026, 06:15 PM
          0 responses
          38 views
          0 likes
          Last Post TheRealMorford  
          Started by Mindset, 02-28-2026, 06:16 AM
          0 responses
          74 views
          0 likes
          Last Post Mindset
          by Mindset
           
          Working...
          X