Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

After update to latest version of Ninja, chartScale.Width does not work

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

    After update to latest version of Ninja, chartScale.Width does not work

    Hi,

    In my indicator I need to get the width of the chart. To do that, in the OnRender method, I call chartScale.Width. This has always worked but in the latest version of Ninja it seems not to work. I have in front of me the two versions running the same custom indicator, on the same symbol with all the same settings. It seems to me that chartScale.Width now returns a value which is approximately 3/4 of the actual width. Is this a bug? How can I solve this issue?

    Thank you


    #2
    Hello VFI26,

    I'll do some testing and if I am able to reproduce I'll make a report to our development.

    I appreciate your patience.
    Chelsea B.NinjaTrader Customer Service

    Comment


      #3
      Hello VFI26,

      I've done some testing but I am finding the chartScale.Width is returning the correct value.

      Below is a link to a video of the test.


      And an indicator in the User App Share that uses this value.
      Simple script that adds a background watermark of the instrument symbol (and expiry if a future) to the chart. (Updated July 10th, 2018 ‐ The opacity needed to be casted as a double and divided by 100 to be between 0 and 1) (Update: August 24th, 2021 – Subtracted the ChartPanel.Y so indicator can be […]
      Chelsea B.NinjaTrader Customer Service

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by Geovanny Suaza, 02-11-2026, 06:32 PM
      0 responses
      574 views
      0 likes
      Last Post Geovanny Suaza  
      Started by Geovanny Suaza, 02-11-2026, 05:51 PM
      0 responses
      332 views
      1 like
      Last Post Geovanny Suaza  
      Started by Mindset, 02-09-2026, 11:44 AM
      0 responses
      101 views
      0 likes
      Last Post Mindset
      by Mindset
       
      Started by Geovanny Suaza, 02-02-2026, 12:30 PM
      0 responses
      553 views
      1 like
      Last Post Geovanny Suaza  
      Started by RFrosty, 01-28-2026, 06:49 PM
      0 responses
      551 views
      1 like
      Last Post RFrosty
      by RFrosty
       
      Working...
      X