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

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 DJ888, Yesterday, 10:57 PM
      0 responses
      6 views
      0 likes
      Last Post DJ888
      by DJ888
       
      Started by MacDad, 02-25-2024, 11:48 PM
      7 responses
      158 views
      0 likes
      Last Post loganjarosz123  
      Started by Belfortbucks, Yesterday, 09:29 PM
      0 responses
      7 views
      0 likes
      Last Post Belfortbucks  
      Started by zstheorist, Yesterday, 07:52 PM
      0 responses
      7 views
      0 likes
      Last Post zstheorist  
      Started by pmachiraju, 11-01-2023, 04:46 AM
      8 responses
      151 views
      0 likes
      Last Post rehmans
      by rehmans
       
      Working...
      X