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 sukhob, 05-18-2023, 08:26 PM
    2 responses
    127 views
    0 likes
    Last Post TraderJA  
    Started by timwey, Yesterday, 10:55 AM
    4 responses
    23 views
    0 likes
    Last Post timwey
    by timwey
     
    Started by DJ888, 06-28-2024, 10:18 PM
    3 responses
    39 views
    0 likes
    Last Post AdamDJ8
    by AdamDJ8
     
    Started by ntwong, Yesterday, 08:22 PM
    0 responses
    16 views
    0 likes
    Last Post ntwong
    by ntwong
     
    Started by Sigma Cypher, 01-08-2022, 06:56 AM
    9 responses
    1,170 views
    0 likes
    Last Post Tbryant
    by Tbryant
     
    Working...
    X