Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Chart goes off to 0

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

    Chart goes off to 0

    Hi i was wondering what causes this char to go off? it starts alirght trades for a while and sometimes indicator goes to 0 value like in the image. how can this be prevented? its the same contract within 2 week period. Nothing drastic changes...


    #2
    I don't know what your indicator is doing, looks like a parabola from middle school math to me. You should check your code. Maybe there is not enough bars to make plots correctly.
    You can disable autoscale in the indicator settings so that it won't mess up your bars​.

    Comment


      #3
      Hello tkaboris,

      Thanks for your post.

      It is likely something in your code that is causing the indicator to calculate in that manner as Leeroy_Jenkins noted.

      Debugging prints should be added to your script to understand exactly how your script is calculating logic and plotting values on the chart.

      Below is a link to a forum post that demonstrates how to use prints to understand behavior.
      https://ninjatrader.com/support/foru...121#post791121
      <span class="name">Brandon H.</span><span class="title">NinjaTrader Customer Service</span><iframe name="sig" id="sigFrame" src="/support/forum/core/clientscript/Signature/signature.php" frameborder="0" border="0" cellspacing="0" style="border-style: none;width: 100%; height: 120px;"></iframe>

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by CarlTrading, 03-31-2026, 09:41 PM
      1 response
      45 views
      0 likes
      Last Post NinjaTrader_ChelseaB  
      Started by CarlTrading, 04-01-2026, 02:41 AM
      0 responses
      21 views
      0 likes
      Last Post CarlTrading  
      Started by CaptainJack, 03-31-2026, 11:44 PM
      0 responses
      31 views
      1 like
      Last Post CaptainJack  
      Started by CarlTrading, 03-30-2026, 11:51 AM
      0 responses
      50 views
      0 likes
      Last Post CarlTrading  
      Started by CarlTrading, 03-30-2026, 11:48 AM
      0 responses
      42 views
      0 likes
      Last Post CarlTrading  
      Working...
      X