Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Execution delay?
Collapse
X
-
Execution delay?
I have a strategy running on a 1-tick chart and I'm seeing 1 second delay for entry after my signal is generated. The strategy does a market EnterLong() then draws a triangleup, however, the actual entry posted is a second later, which often results in a tick slippage. Thinking maybe the market may be too fast for the demo server (Zenfire) to return a fill confirmation, I ran it this morning during the slow period and I'm seeing the same thing. Is this execution "latency" normal due to the messaging functions between NT and the broker or does NT not support millisecond entries? See attached example.Last edited by mgin98; 11-10-2009, 08:42 AM.Tags: None
-
I've changed a few sections around in the strategy, pulled the indicator code out of the indicator and added it to onbarupdate in the strategy and I'm getting the same results. Below is what I'm doing, running on a 1-tick chart and since the triangle is painting at the correct spot, the entry logic seems to be operating properly. What I don't understand is why the entry is a number of bars behind, sometimes up to 20-30 ticks behind.
if (long_sig >= 30
&& Position.MarketPosition == MarketPosition.Flat)
{
EnterLong(DefaultQuantity, "");
DrawTriangleUp("3"+Time[0].Ticks, true, 0, GetCurrentAsk(), Color.Blue);
Comment
-
Thanks, I think I figured that out today. I created a simple "enterlong after 20 tick closes on the Ask" strategy and ran it on a 1-tick chart. My roundtrip averages 80ms to the rithmic server but the traceorder and a packet sniff shows there might be more to it. I can handle a few milliseconds, but anything beyond a few hundred ms seems to give a tick one direction or another.
However, in the traceorder snapshot attached... are the numbers I highlighted in red... in milliseconds? The time difference is consistently 500+ whatever that time unit represents. If that's the case then I can stop debugging this part of the strategy and will move on to the next part. I'll obviously have to colo if I need better speed.
Comment
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by CaptainJack, 04-24-2026, 11:07 PM
|
0 responses
43 views
0 likes
|
Last Post
by CaptainJack
04-24-2026, 11:07 PM
|
||
|
Started by Mindset, 04-21-2026, 06:46 AM
|
0 responses
134 views
0 likes
|
Last Post
by Mindset
04-21-2026, 06:46 AM
|
||
|
Started by M4ndoo, 04-20-2026, 05:21 PM
|
0 responses
189 views
0 likes
|
Last Post
by M4ndoo
04-20-2026, 05:21 PM
|
||
|
Started by M4ndoo, 04-19-2026, 05:54 PM
|
0 responses
99 views
0 likes
|
Last Post
by M4ndoo
04-19-2026, 05:54 PM
|
||
|
Started by cmoran13, 04-16-2026, 01:02 PM
|
0 responses
140 views
0 likes
|
Last Post
by cmoran13
04-16-2026, 01:02 PM
|

Comment