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

Comment