Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Controlling Display in a Panel

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

    Controlling Display in a Panel

    Hi,

    I have an indicator that I display in a panel. It is a single line of dots with various colours.

    Is there a way to control the vertical location of the dots, so that they appear in the middle of the panel. Ideally setting some kind of margin. Currently the dots appear at the bottom of the panel and they partially disappear when the panel is resized. Having a bottom margin would help this.

    Thanks

    Ian

    #2
    Hello Ian,
    Thanks for your post.

    You can set the maximum and minimum values of the Y-Axis and control other elements of the Y-Axis by using the ChartScale class.

    https://ninjatrader.com/support/help...chartscale.htm

    You could also use OnCalculateMinMax() to determine the highest and lowest values that can be used for the chart scale, when using the IsAutoScale property.

    https://ninjatrader.com/support/help...lateminmax.htm
    https://ninjatrader.com/support/help...sautoscale.htm
    Josh G.NinjaTrader Customer Service

    Comment


      #3
      Josh,

      Thanks, that's fixed it.

      Ian

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by cmoran13, 04-16-2026, 01:02 PM
      0 responses
      51 views
      0 likes
      Last Post cmoran13  
      Started by PaulMohn, 04-10-2026, 11:11 AM
      0 responses
      31 views
      0 likes
      Last Post PaulMohn  
      Started by CarlTrading, 03-31-2026, 09:41 PM
      1 response
      165 views
      1 like
      Last Post NinjaTrader_ChelseaB  
      Started by CarlTrading, 04-01-2026, 02:41 AM
      0 responses
      100 views
      1 like
      Last Post CarlTrading  
      Started by CaptainJack, 03-31-2026, 11:44 PM
      0 responses
      160 views
      2 likes
      Last Post CaptainJack  
      Working...
      X