Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Running strategies on 1 tick charts
Collapse
X
-
Running strategies on 1 tick charts
Does ninjatrader struggle with 1-tick charts. I've tried running strategies and the entries are very different and I experience slippage even when using limit orders. I am using the same data sets between live and backtestTags: None
-
In the State == State.SetDefaults it is set to calculate.OnEachTick (out of curiosity, because I am running on 1-Tick bars, would there be a difference if I used onBarClose?). I do not believe I have Tick Replay enabled, how do I enable it and what does it do?
Comment
-
I set that start days to match when setting up. It takes a while to scroll back all the way on 1-tick bars, is there an easy way to verify the equivalent data. Additionally, if the conditions for taking a position only rely on the past 50 bars (say you are using a 50 SMA and a 10 SMA), on 1-Tick bars, wouldn't any differences between live and backtest even out after 50 bars?
Comment
-
I added in my logic to the strategy listed in the link you sent and this was the output
Comment
-
In following the video, when trying to run the strategy, I am not getting error from the print statements: "Strategy Error on calling OnBarUpdate method on bar 207: Index (zero based) must be greater than or equal to zero and less than the size of the argument list"
Comment
-
I was able to fix the issue and run the strategy live and backtested. I am using limit orders, so it makes sense that not every trade in the backtest was completed, however, when trades do match (the order is filled on both live and backtest) I am getting a couple points of slippage of every entry and exit despite using limit orders, I have included of the comparison between live and backtest. As you can see, the first two orders with 5:00:08 and 5:00:09 entries did not have their orders filled live. The issue exists in that when an order is filled, such as the short entry at 5:00:11, I am experiencing slippage despite using limit orders. In this case there was no slippage on entry but 3/4 points of slippage on exit.
Comment
-
Hello samish18,
You may want to give our Futures Hosting a try to reduce your latency and slippage for your backtesting strategy on both live and demo.
Probably you want to continue with your existing VPS and do a comparison on the performance on a month to month basis.
We offer 24/7 support and if you require any assistance, do not hesitate to contact our live chat.
Comment
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by Geovanny Suaza, 02-11-2026, 06:32 PM
|
0 responses
580 views
0 likes
|
Last Post
|
||
|
Started by Geovanny Suaza, 02-11-2026, 05:51 PM
|
0 responses
335 views
1 like
|
Last Post
|
||
|
Started by Mindset, 02-09-2026, 11:44 AM
|
0 responses
102 views
0 likes
|
Last Post
by Mindset
02-09-2026, 11:44 AM
|
||
|
Started by Geovanny Suaza, 02-02-2026, 12:30 PM
|
0 responses
554 views
1 like
|
Last Post
|
||
|
Started by RFrosty, 01-28-2026, 06:49 PM
|
0 responses
552 views
1 like
|
Last Post
by RFrosty
01-28-2026, 06:49 PM
|

Comment