• If this is your first visit, you will have to register before you can post. To view messages, please scroll below and select the forum that you would like to visits. Questions? Be sure to check out the Forum FAQ.

Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Data Serie Question

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

    Data Serie Question

    I am learning ninja scripts to create indicators, but seems could not get the data series to work. I can only get value for the current data i.e. Open[0], Close[0], etc. But Open[1], or Close[1] would return nothing. for example the following code would return no value but no error as well

    protected override void OnBarUpdate()
    {
    // Use this method for calculating your indicator values. Assign a value to each
    // plot below by replacing 'Close[0]' with your own formula.
    SR.Set(Close[1]);
    }

    I am using free end of day data. I suppose that should not be a problem.

    #2
    Welcome to our forums sd888, do you see any error in your log tab when this occurs? This would be the right most tab in NT's Control Center.

    You are most likely running into this issue here - http://www.ninjatrader.com/support/f...ead.php?t=3170
    BertrandNinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by Trade95, Yesterday, 05:38 PM
    1 response
    8 views
    0 likes
    Last Post NinjaTrader_EricB  
    Started by Karelgp7, Yesterday, 03:16 PM
    1 response
    12 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Started by orenytz, Yesterday, 01:18 PM
    1 response
    22 views
    0 likes
    Last Post NinjaTrader_PaulH  
    Started by des.kkeng, Yesterday, 01:10 PM
    1 response
    13 views
    0 likes
    Last Post NinjaTrader_PatrickG  
    Started by Capablanca, Yesterday, 12:35 PM
    1 response
    10 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Working...
    X