Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Won't plot when accessing former bars

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

    Won't plot when accessing former bars

    For some reason, I can't get an indicator to plot when Accessing former bars, for example High[1] or Close[3]

    I have tried this simple plot and it won't won't work for me

    Plot0.Set( High[1] - Low[1]);

    It compiles, it loads, and shows nothing, scale to 1. I have seen this happen when there is a possible error in a formula, such as possible division by zero. In this case, it makes no sense.

    Any reason for this?

    My full script attached.
    Attached Files

    #2
    Originally posted by webtrax View Post
    For some reason, I can't get an indicator to plot when Accessing former bars, for example High[1] or Close[3]

    I have tried this simple plot and it won't won't work for me

    Plot0.Set( High[1] - Low[1]);

    It compiles, it loads, and shows nothing, scale to 1. I have seen this happen when there is a possible error in a formula, such as possible division by zero. In this case, it makes no sense.

    Any reason for this?

    My full script attached.
    What is the error, if any, in your log?

    Comment


      #3
      webtrax, looks like you are missing this check here in your script to ensure non existent bars are not attempted to be processed at the chart series start - http://www.ninjatrader.com/support/f...ead.php?t=3170

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by Hwop38, 05-04-2026, 07:02 PM
      0 responses
      177 views
      0 likes
      Last Post Hwop38
      by Hwop38
       
      Started by CaptainJack, 04-24-2026, 11:07 PM
      0 responses
      332 views
      0 likes
      Last Post CaptainJack  
      Started by Mindset, 04-21-2026, 06:46 AM
      0 responses
      254 views
      0 likes
      Last Post Mindset
      by Mindset
       
      Started by M4ndoo, 04-20-2026, 05:21 PM
      0 responses
      356 views
      0 likes
      Last Post M4ndoo
      by M4ndoo
       
      Started by M4ndoo, 04-19-2026, 05:54 PM
      0 responses
      184 views
      0 likes
      Last Post M4ndoo
      by M4ndoo
       
      Working...
      X