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 CarlTrading, 03-31-2026, 09:41 PM
|
1 response
66 views
0 likes
|
Last Post
|
||
|
Started by CarlTrading, 04-01-2026, 02:41 AM
|
0 responses
36 views
0 likes
|
Last Post
by CarlTrading
04-01-2026, 02:41 AM
|
||
|
Started by CaptainJack, 03-31-2026, 11:44 PM
|
0 responses
59 views
1 like
|
Last Post
by CaptainJack
03-31-2026, 11:44 PM
|
||
|
Started by CarlTrading, 03-30-2026, 11:51 AM
|
0 responses
62 views
0 likes
|
Last Post
by CarlTrading
03-30-2026, 11:51 AM
|
||
|
Started by CarlTrading, 03-30-2026, 11:48 AM
|
0 responses
52 views
0 likes
|
Last Post
by CarlTrading
03-30-2026, 11:48 AM
|

Comment