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

visible custom indicator makes chart vertically "squished"

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

    visible custom indicator makes chart vertically "squished"

    My custom indicator works well, but as soon as I make it visible, my chart scale gets vertically compressed. What is the default vertical scale parameter (or other variable) so that my indicator doesn't override the auto scale of the chart?

    Screenshot of problem:

    https://www.screencast.com/t/3JQSA5m9
    Last edited by jwikker; 08-17-2018, 12:24 AM.

    #2
    To resolve issue, I made all of my draw.line and draw.text methods autoscale parameters as false. Somewhere in my code I am drawing way out of the scale of the chart, but if I do this autoscale as false at least that bad drawing (wherever it is) isn't causing issues for the rest of the chart.

    Comment


      #3
      Hello jwikker,

      Thanks for your posts.

      Glad you were able to work around the issue.

      You may want to debug to find out why you are drawing at the extreme level. It is likely you have a 0 for the Y-level at some point or a calculation of a variable that results in an extremely large or small value. Form a debugging point of view, you can scroll all the way back and find that draw object that is showing at the extreme level. It is helpful to normally use the autoscale as you can miss a legit draw object that can be just above or below the scale of the chart when you don't use autoscale. Here is a link to our debugging tips: https://ninjatrader.com/support/help...script_cod.htm
      Paul H.NinjaTrader Customer Service

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by fwendolynlpxz, Today, 05:19 AM
      0 responses
      3 views
      0 likes
      Last Post fwendolynlpxz  
      Started by traderqz, Yesterday, 12:06 AM
      11 responses
      28 views
      0 likes
      Last Post NinjaTrader_Gaby  
      Started by PaulMohn, Today, 03:49 AM
      0 responses
      8 views
      0 likes
      Last Post PaulMohn  
      Started by inanazsocial, Today, 01:15 AM
      1 response
      10 views
      0 likes
      Last Post NinjaTrader_Jason  
      Started by rocketman7, Today, 02:12 AM
      0 responses
      11 views
      0 likes
      Last Post rocketman7  
      Working...
      X