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 CaptainJack, 05-29-2026, 05:09 AM
      0 responses
      237 views
      0 likes
      Last Post CaptainJack  
      Started by CaptainJack, 05-29-2026, 12:02 AM
      0 responses
      152 views
      0 likes
      Last Post CaptainJack  
      Started by charlesugo_1, 05-26-2026, 05:03 PM
      0 responses
      163 views
      1 like
      Last Post charlesugo_1  
      Started by DannyP96, 05-18-2026, 02:38 PM
      1 response
      246 views
      0 likes
      Last Post NinjaTrader_ChelseaB  
      Started by CarlTrading, 05-11-2026, 05:56 AM
      0 responses
      198 views
      0 likes
      Last Post CarlTrading  
      Working...
      X