NinjaTrader Support Forum  
X

Attention!

This website will be down for maintenance from Friday May 24th at 6PM MDT until Saturday May 25th at 11AM MDT. We apologize for the inconvenience. If you need assistance during this time, please email sales@ninjatrader.com


Go Back   NinjaTrader Support Forum > Application Technical Support > Automated Trading

Automated Trading Support for automated trading systems using NinjaScript. Support for our ATI (Automated Trading Interface) used to link an external application such as TradeStation and eSignal to NinjaTrader.

Reply
 
Thread Tools Display Modes
Old 06-29-2012, 11:51 PM   #1
Radical
Senior Member
 
Join Date: Sep 2008
Posts: 543
Thanks: 80
Thanked 187 times in 131 posts
Default Last vs LastPlayback

For the following functions in the ATI DLL:

-int Last()
-int LastPlayback()

Is LastPlayback() the same thing as Last(), but with the overload to specify a timestamp? Otherwise are they the same thing? Thanks.
Radical is offline  
Reply With Quote
Old 07-05-2012, 08:26 AM   #2
Radical
Senior Member
 
Join Date: Sep 2008
Posts: 543
Thanks: 80
Thanked 187 times in 131 posts
Default

Anyone know? I would just test it myself, but I wouldn't be able to know if LastPlayback() is doing something else 'behind the scenes' that might be costing performance.
Radical is offline  
Reply With Quote
Old 07-05-2012, 09:13 AM   #3
NinjaTrader_Brett
NinjaTrader Customer Service
 
NinjaTrader_Brett's Avatar
 
Join Date: Dec 2009
Location: Denver, CO, USA
Posts: 6,498
Thanks: 109
Thanked 291 times in 280 posts
Default

Hello,

Thanks for the reopen, seems your forum thread got closed on accident.

They are not quite the same as they are separate methods(Otherwise we would supply a Last() with an overload with DateTime).

You will want to use Last() when possible for live data moving forward.

-Brett
NinjaTrader_Brett is offline  
Reply With Quote
The following user says thank you to NinjaTrader_Brett for this post:
Old 07-05-2012, 09:26 AM   #4
Radical
Senior Member
 
Join Date: Sep 2008
Posts: 543
Thanks: 80
Thanked 187 times in 131 posts
Default

Thanks Brett, so is there no way to feed timestamped data through the ATI DLL then? In other words, the timestamp must be added by NT itself (using the PC's clock)? Thanks.
Radical is offline  
Reply With Quote
Old 07-05-2012, 09:28 AM   #5
NinjaTrader_Brett
NinjaTrader Customer Service
 
NinjaTrader_Brett's Avatar
 
Join Date: Dec 2009
Location: Denver, CO, USA
Posts: 6,498
Thanks: 109
Thanked 291 times in 280 posts
Default

Correct.

I will have it added to our suggestion list for next major release.

-Brett
NinjaTrader_Brett is offline  
Reply With Quote
The following user says thank you to NinjaTrader_Brett for this post:
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Lastplayback function from Dll interface SirHC General Programming 6 03-03-2011 12:12 PM


All times are GMT -6. The time now is 08:47 PM.