Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

OnRender

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

    OnRender

    I am still converting a big indicator from NT7 to NT 8.

    Lots of changes specially on OnRender method.

    I am converting these rectangles bounds,max, min like that :

    bounds.Bottom = ChartPanel.X + ChartPanel.H;
    bounds.Top = ChartPanel.X;
    bounds.Left = ChartPanel.X;
    bounds.Right = ChartPanel.X+ChartPanel.W;

    max = ?
    min = ?


    Need help !

    #2
    These properties are now documented in NT8 and should give you an idea of what you're looking for:



    You'll find info specific to ChartPanel here:



    ChartPanel.MinValue
    ChartPanel.MaxValue
    MatthewNinjaTrader Product Management

    Comment


      #3
      Sorry those min/maxes are the Y-value, I understand you're looking for the bounds of the chart panel.

      The min value would always be 0, and the max is chartScale.Height;

      You could also use that the GetYByValue() method to conver the ChartPanel.MinValue and MaxValue to find your coordinates:




      Code:
       int      maxValue = chartScale.GetYByValue(ChartPanel.MaxValue);
       int      minValue= chartScale.GetYByValue(ChartPanel.MinValue);
      MatthewNinjaTrader Product Management

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by CaptainJack, 05-29-2026, 05:09 AM
      0 responses
      48 views
      0 likes
      Last Post CaptainJack  
      Started by CaptainJack, 05-29-2026, 12:02 AM
      0 responses
      30 views
      0 likes
      Last Post CaptainJack  
      Started by charlesugo_1, 05-26-2026, 05:03 PM
      0 responses
      99 views
      0 likes
      Last Post charlesugo_1  
      Started by DannyP96, 05-18-2026, 02:38 PM
      1 response
      177 views
      0 likes
      Last Post NinjaTrader_ChelseaB  
      Started by CarlTrading, 05-11-2026, 05:56 AM
      0 responses
      170 views
      0 likes
      Last Post CarlTrading  
      Working...
      X