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 pechtri, 06-22-2023, 02:31 AM
      10 responses
      124 views
      0 likes
      Last Post Leeroy_Jenkins  
      Started by judysamnt7, 03-13-2023, 09:11 AM
      4 responses
      59 views
      0 likes
      Last Post DynamicTest  
      Started by ScottWalsh, Yesterday, 06:52 PM
      4 responses
      36 views
      0 likes
      Last Post ScottWalsh  
      Started by olisav57, Yesterday, 07:39 PM
      0 responses
      7 views
      0 likes
      Last Post olisav57  
      Started by trilliantrader, Yesterday, 03:01 PM
      2 responses
      22 views
      0 likes
      Last Post helpwanted  
      Working...
      X