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 SantoshXX, Today, 03:09 AM
|
0 responses
11 views
0 likes
|
Last Post
by SantoshXX
Today, 03:09 AM
|
||
Started by DanielTynera, Today, 01:14 AM
|
0 responses
2 views
0 likes
|
Last Post
by DanielTynera
Today, 01:14 AM
|
||
Started by yertle, 04-18-2024, 08:38 AM
|
9 responses
41 views
0 likes
|
Last Post
by yertle
Today, 01:00 AM
|
||
Started by techgetgame, Yesterday, 11:42 PM
|
0 responses
12 views
0 likes
|
Last Post
by techgetgame
Yesterday, 11:42 PM
|
||
Started by sephichapdson, Yesterday, 11:36 PM
|
0 responses
2 views
0 likes
|
Last Post Yesterday, 11:36 PM |
Comment