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 halgo_boulder, 04-20-2024, 08:44 AM
      2 responses
      21 views
      0 likes
      Last Post halgo_boulder  
      Started by mishhh, 05-25-2010, 08:54 AM
      19 responses
      6,189 views
      0 likes
      Last Post rene69851  
      Started by gwenael, Today, 09:29 AM
      0 responses
      5 views
      0 likes
      Last Post gwenael
      by gwenael
       
      Started by Karado58, 11-26-2012, 02:57 PM
      8 responses
      14,830 views
      0 likes
      Last Post Option Whisperer  
      Started by Option Whisperer, Today, 09:05 AM
      0 responses
      2 views
      0 likes
      Last Post Option Whisperer  
      Working...
      X