• 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

Time.GetValueAt

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

  • NinjaTrader_ChelseaB
    replied
    Hello ElectronicLocal,

    The .GetValueAt() method is available to Series<T> but not available to TimeSeries<DateTime>. These are different structure types TimeSeries<DateTime> does not inherit from Series<T>.

    As a work around, you may try Time[CurrentBar - (CurrentBar - barValue)]

    Leave a comment:


  • ElectronicLocal
    started a topic Time.GetValueAt

    Time.GetValueAt

    The documentation says that 'Time' is a Series<DateTime>.


    However, when I use this code: Time.GetValueAt(index) I get the compiler error:
    'NinaTrader.NinjaScript.TimeSeries' does not contain a definition for 'GetValueAt'.... CS1061


    I believe 'Time' should support the GetValueAt method.

Latest Posts

Collapse

Topics Statistics Last Post
Started by asmmbillah, Today, 02:23 PM
1 response
7 views
0 likes
Last Post NinjaTrader_Jesse  
Started by steveg, Today, 02:44 PM
0 responses
2 views
0 likes
Last Post steveg
by steveg
 
Started by BatBart, Today, 01:24 PM
1 response
11 views
0 likes
Last Post Jonsey529  
Started by lightsun47, Today, 12:33 PM
1 response
11 views
0 likes
Last Post NinjaTrader_Jim  
Started by Woomera, Today, 12:21 PM
2 responses
9 views
0 likes
Last Post Woomera
by Woomera
 
Working...
X