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

why can't I use bars ago data?

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

    why can't I use bars ago data?

    I am just trying to learn how to make custom indicators in Ninja trader, But I am stumped as to why I can't use data from past bars.

    I just created an indicator using the wizard, with just default settings. It plots a line of the close with the line Plot0.Set(Close[0]);

    I then change the line to read Plot0.Set(Close[5]); and I no longer get a line. I thought that would shift it over 5 bars, but it just gives me a blank indicator.

    Sorry if this is a dumb question, but I have been trying to figure this out for hours, and am stumped as to why this won't work.

    Thanks

    #2
    This might be of value for you: http://www.ninjatrader-support2.com/...ead.php?t=3170

    Comment


      #3
      Thanks... I think that did it.

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by Mizzouman1, Today, 07:35 AM
      3 responses
      17 views
      0 likes
      Last Post NinjaTrader_Gaby  
      Started by RubenCazorla, Today, 09:07 AM
      2 responses
      13 views
      0 likes
      Last Post NinjaTrader_ChelseaB  
      Started by i019945nj, 12-14-2023, 06:41 AM
      7 responses
      82 views
      0 likes
      Last Post NinjaTrader_ChelseaB  
      Started by timmbbo, 07-05-2023, 10:21 PM
      4 responses
      158 views
      0 likes
      Last Post NinjaTrader_Gaby  
      Started by tkaboris, Today, 08:01 AM
      1 response
      8 views
      0 likes
      Last Post NinjaTrader_Gaby  
      Working...
      X