NexusFi: Find Your Edge


Home Menu

 





number of ticks in a bar/ms timestamp ?


Discussion in NinjaTrader

Updated
      Top Posters
    1. looks_one sam028 with 3 posts (0 thanks)
    2. looks_two Saroj with 2 posts (2 thanks)
    3. looks_3 RJay with 2 posts (2 thanks)
    4. looks_4 jcash with 2 posts (0 thanks)
      Best Posters
    1. looks_one RJay with 1 thanks per post
    2. looks_two Saroj with 1 thanks per post
    3. looks_3 Prtester with 1 thanks per post
    4. looks_4 DavidHP with 1 thanks per post
    1. trending_up 12,131 views
    2. thumb_up 8 thanks given
    3. group 4 followers
    1. forum 15 posts
    2. attach_file 1 attachments




 
Search this Thread
  #11 (permalink)
 Prtester 
SE-Asia
 
Experience: Intermediate
Platform: NinjaTrader
Broker: Amp
Trading: ES
Posts: 153 since Jun 2009
Thanks Given: 66
Thanks Received: 124


jcash View Post
e.Time.ToString("HH:mm:ss:ffff") in OnMarketData is giving me NT's rounded timestamp:

Last Price: 641.3 Last Time: 12:56:04:0000

if you want more than seconds, ex milliseconds, you can't use NT Timestamp, you should make your own time for each incoming tick,

myticktime = DateTime.Now.Ticks;

then you need to convert it to the unit you will use.

Hope that help


Reply With Quote
Thanked by:

Can you help answer these questions
from other members on NexusFi?
No book, only a stair: journaling fills where price move …
Cryptocurrency
My Rant with AMP Futures
Trading Reviews and Vendors
Building a free browser DOM/SMC simulator - need some ad …
Platforms and Indicators
Bitcoin’s 2022 low, 2025 high and 2026 low so far arou …
Cryptocurrency
AI for Traders — Agents, Memory, Tools & Real-Worl …
Elite Quantitative GenAI/LLM
 
  #12 (permalink)
 
RJay's Avatar
 RJay 
Hartford, CT. USA
 Vendor: www.innovative-trading-solutions-online.com 
 
Experience: Intermediate
Platform: NinjaTrader
Broker: AMP/CQG, Kinetick
Trading: ES
Posts: 687 since Jun 2009
Thanks Given: 765
Thanks Received: 789


jcash View Post
e.Time.ToString("HH:mm:ss:ffff") in OnMarketData is giving me NT's rounded timestamp:

Last Price: 641.3 Last Time: 12:56:04:0000


jcash,

I use my cpu to time stamp each incoming tick to the microsecond.

I use something like this:

private string format = "HH.mm:ss.ffffff";

Try using a period instead of a colon between "ss" and "ffff"

RJay


Reply With Quote
Thanked by:
  #13 (permalink)
 
RJay's Avatar
 RJay 
Hartford, CT. USA
 Vendor: www.innovative-trading-solutions-online.com 
 
Experience: Intermediate
Platform: NinjaTrader
Broker: AMP/CQG, Kinetick
Trading: ES
Posts: 687 since Jun 2009
Thanks Given: 765
Thanks Received: 789


Has anyone cracked the Zen-Fire Micro time stamp access problem??



here are some links.



uint32_t zenfire::tick::tick_t::usec

https://www.hugedomains.com/domain_profile.cfm?d=zen-fire.com

https://www.hugedomains.com/domain_profile.cfm?d=zen-fire.com


Thanks,


RJay


Reply With Quote
  #14 (permalink)
 
ThatManFromTexas's Avatar
 ThatManFromTexas 
Houston,Tx
 
Experience: Advanced
Platform: NinjaTrader
Broker: Mirus Futures/Zen-Fire
Trading: TF
Posts: 2,265 since Feb 2010
Thanks Given: 1,206
Thanks Received: 4,360


RJay View Post
jcash,

I use my cpu to time stamp each incoming tick to the microsecond.

I use something like this:

private string format = "HH.mm:ss.ffffff";

Try using a period instead of a colon between "ss" and "ffff"

RJay

@RJay

Does that prevent NT changing tick bars after a chart refresh?

I use Zenfire. Today I refreshed a chart with Momentum bars and the bars changed significantly.

I was told DTN has their own timestamp with granularity more than a second . Does NT record that or round it off?

Sorry for the But bars changing during a session really bothers me.


I'm just a simple man trading a simple plan.

My daddy always said, "Every day above ground is a good day!"
Reply With Quote
  #15 (permalink)
 
ThatManFromTexas's Avatar
 ThatManFromTexas 
Houston,Tx
 
Experience: Advanced
Platform: NinjaTrader
Broker: Mirus Futures/Zen-Fire
Trading: TF
Posts: 2,265 since Feb 2010
Thanks Given: 1,206
Thanks Received: 4,360

Got part of my answer from NT support ....


NinjaTrader_Joydeep View Post
Hello ThatManFromTexas,
The highest granulation time frame which NinjaTrader currently offers is upto second. NinjaTrader will round it off to the second even if your data feed provides say milliseconds granularity. Our next major release however is expected to support higher granularity than seconds.


I'm just a simple man trading a simple plan.

My daddy always said, "Every day above ground is a good day!"
Reply With Quote
  #16 (permalink)
 eman 
Galveston ,TX
 
Experience: Intermediate
Platform: NT7
Broker: Zaner
Trading: Futures
Posts: 386 since Mar 2010
Thanks Given: 364
Thanks Received: 435

adding precision to the timestamp will solve so many issues with respect to historical/backtest ... looking forward to NT8!

cheers,
-e


Reply With Quote
Thanked by:




Last Updated on September 21, 2012


© 2026 NexusFi®, s.a., All Rights Reserved.
Av Ricardo J. Alfaro, Century Tower, Panama City, Panama, Ph: +507 833-9432 (Panama and Intl), +1 888-312-3001 (USA and Canada)
All information is for educational use only and is not investment advice. There is a substantial risk of loss in trading commodity futures, stocks, options and foreign exchange products. Past performance is not indicative of future results.
About Us - Contact Us - Site Rules, Acceptable Use, and Terms and Conditions - Downloads - Top
no new posts