Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

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 FishTrade, Yesterday, 11:11 PM
      3 responses
      11 views
      0 likes
      Last Post FishTrade  
      Started by Graci117, Today, 09:02 PM
      1 response
      11 views
      0 likes
      Last Post NinjaTrader_Manfred  
      Started by ETFVoyageur, Today, 07:55 PM
      0 responses
      8 views
      0 likes
      Last Post ETFVoyageur  
      Started by janio973, Today, 07:24 PM
      1 response
      7 views
      0 likes
      Last Post NinjaTrader_Manfred  
      Started by aligator, 01-06-2022, 12:14 PM
      4 responses
      250 views
      0 likes
      Last Post john_44573  
      Working...
      X