• 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 value

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

  • NinjaTrader_Joydeep
    replied
    Hello alexeymarvel,
    In addition to koganam's query, can you say what CalculateOnBarClose you are using?

    I look forward to assisting you further.

    Leave a comment:


  • koganam
    replied
    Originally posted by alexeymarvel View Post
    It gives the same value as Time[0] as at bar's open. But I need the timer the same as in the replay window.
    In what event handler are you using the construct ?

    Leave a comment:


  • alexeymarvel
    replied
    It gives the same value as Time[0] as at bar's open. But I need the timer the same as in the replay window.

    Leave a comment:


  • NinjaTrader_Joydeep
    replied
    Hello alexeymarvel,
    You can try the below unsupported code

    Code:
    this.Bars.MarketData.Connection.Now
    Please let me know if I can assist you any further.

    Leave a comment:


  • alexeymarvel
    replied
    Yes I Know how to get it in real time. But how to get it in market replay mode?

    Leave a comment:


  • NinjaTrader_Joydeep
    replied
    Hello alexeymarvel,
    You can use the DateTime.Now function to get the current timestamp of your PC.

    http://msdn.microsoft.com/en-us/libr...etime.now.aspx

    Please note it will work in realtime only and not for historical bars or in backtesting.

    Please let me know if I can assist you any further.

    Leave a comment:


  • alexeymarvel
    started a topic Time value

    Time value

    Can you advise how to get a time value updated each second?

    ToTime(Time[0]) function gives only a value of bar's opening.

Latest Posts

Collapse

Topics Statistics Last Post
Started by gemini42, Yesterday, 09:44 PM
0 responses
5 views
0 likes
Last Post gemini42  
Started by martyn73, Yesterday, 03:09 PM
0 responses
2 views
0 likes
Last Post martyn73  
Started by martyn73, Yesterday, 03:05 PM
0 responses
4 views
0 likes
Last Post martyn73  
Started by mic414, Yesterday, 02:17 PM
0 responses
1 view
0 likes
Last Post mic414
by mic414
 
Started by U0000999, 11-15-2019, 06:18 PM
1 response
22 views
0 likes
Last Post NinjaTrader_ChrisL  
Working...
X