This does not amount to anything significant but I'm curious as to why/how this occurs. Any ideas?
Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
5 seconds
Collapse
X
-
5 seconds
I have "CalculateOnBarClose = true" in my strategy as well as the UI. My orders seem to occur approximately 5 or 6 seconds before close of bar. I also have the buy/sell orders nested within "BarsInProgress == 0".
This does not amount to anything significant but I'm curious as to why/how this occurs. Any ideas?Tags: None
-
Thanks Ray for the reply. Thats what I thought for a while but I am using "DateTime.Now" in my sendmail method upon order entry so something seems amiss unless "DateTime.Now" uses my PC clock. It is the "DateTime.Now" time that I am referring to and not the time the email was sent.
Also, when I backtest this strategy the order entrys reflect the open of the next bar (as expected upon bar close), when run real time the orders reflect close of current bar albiet 5 seconds to go to the open of the next bar to mirror the backtesting result.
Although 5 or 6 seconds doesn't really matter, I don't quite understand why this is occuring.
Does "DateTime.Now" use my PC clock?
Comment
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by sjsj2732, Yesterday, 04:31 AM
|
0 responses
38 views
0 likes
|
Last Post
by sjsj2732
Yesterday, 04:31 AM
|
||
|
Started by NullPointStrategies, 03-13-2026, 05:17 AM
|
0 responses
287 views
0 likes
|
Last Post
|
||
|
Started by argusthome, 03-08-2026, 10:06 AM
|
0 responses
289 views
0 likes
|
Last Post
by argusthome
03-08-2026, 10:06 AM
|
||
|
Started by NabilKhattabi, 03-06-2026, 11:18 AM
|
0 responses
134 views
1 like
|
Last Post
|
||
|
Started by Deep42, 03-06-2026, 12:28 AM
|
0 responses
95 views
0 likes
|
Last Post
by Deep42
03-06-2026, 12:28 AM
|

Comment