Announcement

Collapse
No announcement yet.

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

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by Geovanny Suaza, 02-11-2026, 06:32 PM
      0 responses
      560 views
      0 likes
      Last Post Geovanny Suaza  
      Started by Geovanny Suaza, 02-11-2026, 05:51 PM
      0 responses
      325 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
      547 views
      1 like
      Last Post Geovanny Suaza  
      Started by RFrosty, 01-28-2026, 06:49 PM
      0 responses
      547 views
      1 like
      Last Post RFrosty
      by RFrosty
       
      Working...
      X