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 CarlTrading, 03-31-2026, 09:41 PM
      1 response
      82 views
      1 like
      Last Post NinjaTrader_ChelseaB  
      Started by CarlTrading, 04-01-2026, 02:41 AM
      0 responses
      43 views
      0 likes
      Last Post CarlTrading  
      Started by CaptainJack, 03-31-2026, 11:44 PM
      0 responses
      64 views
      2 likes
      Last Post CaptainJack  
      Started by CarlTrading, 03-30-2026, 11:51 AM
      0 responses
      68 views
      0 likes
      Last Post CarlTrading  
      Started by CarlTrading, 03-30-2026, 11:48 AM
      0 responses
      56 views
      0 likes
      Last Post CarlTrading  
      Working...
      X