Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Draw Objects on Daily Bars

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

    Draw Objects on Daily Bars

    I'm having trouble displaying text from an indicator on daily bars. It works fine on minute bars. I have even simplified the indicator to just 1 line and am still having the issue. I'm sure I have set up something wrong. If I run this code I will get no text on daily bars:

    If ( Low[0] < Low[1] )
    {
    Drawtext...
    }

    Do I have to set up anything differently when designing indicators for both minute and daily bars?

    Thanks

    Westsider

    #2
    Hello Westsider,

    Thank you for posting.

    Do you receive any errors in the Log Tab of the Control Center after applying the indicator?

    Can you attach the simplified script so that I can test this on my end?
    Cal H.NinjaTrader Customer Service

    Comment


      #3
      Ahhh- Brilliant
      Log error - index value out of range... Didn't think I needed this on such simple code but this fixed it

      if( CurrentBar < 20 )
      return;

      Thanks
      Cal

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by Geovanny Suaza, 02-11-2026, 06:32 PM
      0 responses
      595 views
      0 likes
      Last Post Geovanny Suaza  
      Started by Geovanny Suaza, 02-11-2026, 05:51 PM
      0 responses
      343 views
      1 like
      Last Post Geovanny Suaza  
      Started by Mindset, 02-09-2026, 11:44 AM
      0 responses
      103 views
      0 likes
      Last Post Mindset
      by Mindset
       
      Started by Geovanny Suaza, 02-02-2026, 12:30 PM
      0 responses
      556 views
      1 like
      Last Post Geovanny Suaza  
      Started by RFrosty, 01-28-2026, 06:49 PM
      0 responses
      554 views
      1 like
      Last Post RFrosty
      by RFrosty
       
      Working...
      X