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 Orion1504, Today, 11:59 AM
1 response
8 views
0 likes
Last Post NinjaTrader_Kate  
Started by z3trader, Today, 11:50 AM
4 responses
18 views
0 likes
Last Post z3trader  
Started by Mykro, Today, 11:20 AM
3 responses
11 views
0 likes
Last Post NinjaTrader_BrandonH  
Started by RedDuke, Today, 10:49 AM
2 responses
5 views
0 likes
Last Post RedDuke
by RedDuke
 
Started by ChainsawDR, Today, 10:20 AM
2 responses
14 views
0 likes
Last Post NinjaTrader_Eleanore  
Working...
X