Is there anything that can be done to a strategy that will enhance the accuracy of market replay with respect to limit orders? I have my strategy with limit entries that submit orders on a 1 Tick data series. Take NQ for example, let's say I run my strategy live today, it may show 10 trades filled via limit order entries in a live account. If I re-run that same strategy over the same CQG data in market replay, there is usually a significant amount more entries made, sometimes triple the # of trades. In a live market these trades were not filled. My VPS server latency to CQG is very low. In general terms is there anything that can be done to have market replay show more realistic limit entry fills, such as adding a 1 Tick Bid and 1 Tick Ask series? Or any other strategy configurations to make replay more realistic?
Announcement
Collapse
Looking for a User App or Add-On built by the NinjaTrader community?
Visit NinjaTrader EcoSystem and our free User App Share!
Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less
Partner 728x90
Collapse
NinjaTrader
Limit order fill accuracy in replay
Collapse
X
-
Limit order fill accuracy in replay
Hello,
Is there anything that can be done to a strategy that will enhance the accuracy of market replay with respect to limit orders? I have my strategy with limit entries that submit orders on a 1 Tick data series. Take NQ for example, let's say I run my strategy live today, it may show 10 trades filled via limit order entries in a live account. If I re-run that same strategy over the same CQG data in market replay, there is usually a significant amount more entries made, sometimes triple the # of trades. In a live market these trades were not filled. My VPS server latency to CQG is very low. In general terms is there anything that can be done to have market replay show more realistic limit entry fills, such as adding a 1 Tick Bid and 1 Tick Ask series? Or any other strategy configurations to make replay more realistic?Tags: None
-
Hello dirkdiggler,
To better understand what is happening you would need to add prints to the script to ensure that the entry conditions are becoming true identically as it did in realtime. Without doing that kind of comparison we wouldn't be able to say if its due to fill accuracy. You already submit orders to a 1 tick series so that would be the most granular you can use for order submission.JesseNinjaTrader Customer Service
-
Prints are added in already, the entry conditions align, it’s just a matter of replay showing the order as filled versus in real time we are just not getting the fills as often. I am also a vendor and the strategy is coded very well, we’re just trying to understand the replay logic a bit more as to why there are so many more fills in replay versus live. Does replay account for a certain network latency between order submission and being received by broker?
Comment
-
Hello dirkdiggler,
The playback account uses the same general settings as a Sim101 account for fill processing. There is some simulated delay however it will not specifically match internet connection -> broker directly for a variety of factors.
You may want to try recording your live data as playback, if you are downloading it from the historical data server that may be another source that produces differences.
JesseNinjaTrader Customer Service
Comment
Latest Posts
Collapse
Topics | Statistics | Last Post | ||
---|---|---|---|---|
Started by judysamnt7, 03-13-2023, 09:11 AM
|
4 responses
59 views
0 likes
|
Last Post
by DynamicTest
Today, 08:25 PM
|
||
Started by ScottWalsh, Today, 06:52 PM
|
4 responses
36 views
0 likes
|
Last Post
by ScottWalsh
Today, 07:40 PM
|
||
Started by olisav57, Today, 07:39 PM
|
0 responses
7 views
0 likes
|
Last Post
by olisav57
Today, 07:39 PM
|
||
Started by trilliantrader, Today, 03:01 PM
|
2 responses
22 views
0 likes
|
Last Post
by helpwanted
Today, 07:25 PM
|
||
Started by cre8able, Today, 07:24 PM
|
0 responses
10 views
0 likes
|
Last Post
by cre8able
Today, 07:24 PM
|
Comment