Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

Partner 728x90

Collapse

Last tick timestamp

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

    Last tick timestamp

    Is there any way to get the last tick timestamp of the chart?
    Time[] returns the DateTime of the bar, but not the last tick inside it.

    #2
    curious,

    If you use a multi-timeframe indicator along with Times[][] you should be able to do this.

    Here are some link to our help guide on this topic.

    Multi-timeframe : http://www.ninjatrader.com/support/h...nstruments.htm

    Times[][] : http://www.ninjatrader.com/support/h...html?times.htm

    Please let me know if I may assist further.
    Adam P.NinjaTrader Customer Service

    Comment


      #3
      Originally posted by curious View Post
      Is there any way to get the last tick timestamp of the chart?
      Time[] returns the DateTime of the bar, but not the last tick inside it.
      Easiest way is to use COBC = false with a Period.Id that is NOT in a fixed time span. Examples would be tick charts, volume charts, range charts etc.

      In which case, Close[0] is always the last tick.

      Otherwise, you can always use OnMarketData() to get the time of the last tick.
      Last edited by koganam; 01-10-2012, 03:17 PM.

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by steve257, 12-20-2023, 05:32 AM
      5 responses
      435 views
      0 likes
      Last Post Nothinox  
      Started by javaburnaus, Today, 01:51 AM
      0 responses
      1 view
      0 likes
      Last Post javaburnaus  
      Started by XanderT, Today, 01:27 AM
      0 responses
      3 views
      0 likes
      Last Post XanderT
      by XanderT
       
      Started by anton_tymoshchuk, Today, 01:14 AM
      0 responses
      8 views
      0 likes
      Last Post anton_tymoshchuk  
      Started by marco231, Yesterday, 11:32 PM
      1 response
      7 views
      0 likes
      Last Post marco231  
      Working...
      X