Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
How reliable in the strategy analyzer?
Collapse
X
-
Hello samish18,
The Slippage setting is used to set the amount of slippage in ticks per execution used in performance calculations during backtests. You can use 0 slippage to calculate trades base on the price data or you can include a positive amount to simulate having slippage on executions. The value you use would be a number you need to come up with based on your actual slippage that you see when trading.
The maximum difference in results would be impossible to calculate because two tests can vary in a lot of ways. Depending on how the strategy is programmed and if it uses performance information you may see differences ranging in different execution prices to having the strategy work completely differently based on its logic.
-
Hello samish18,
You can see differences between historical and realtime tests for a number of reasons. You can compare the results between the tests to get a very broad overview, if you can spot the specific differences that were happening you may be able to determine what is happening different in each test. More commonly you would need to add debugging into the script so you can output how it worked for each test. That lets you compare the results and see specifically what was different. You can find more information on this topic in the following links.
Comment
-
Hello samish18,
Tick bars are one area where you can see differences between both backtests and realtime tests. Tick bars are built based on a number of ticks, if the start date changes at all between tests the bars will build differently so you can expect different results in that case. It would be fairly difficult to get an exact match between a historical and realtime test when using tick data.
In order to get matching results you would need to have the exact same data loaded starting with the same tick as the historical test. That would let the script do its initial bactest and reach the same conclusion and then include the now realtime data. You would otherwise need to take the results from the bactest as more of a suggestion of what's possible because the realtime test could look fairly different depending on how your logic has equated on the new bars.
Comment
-
Hello samish18,
Any two tests are going to differ when different data is being used when you run your conditions over each dataset. using 1 tick bars could also differ depending on your trading conditions and what tick you start on.
The only way to have an exactly identical test between two modes is to have the strategy process the same. Lets say you did backtest and want to replicate those results and test in realtime now. To do that you need to apply a strategy to a realtime chart where the exact same historical dataset that was used in the backest is loaded.If the strategy is able to once again start on the same data point it can reproduce the same results as the backtest and then enter realtime.
Comment
-
Hello samish18,
Here is a very simple way to think about it.
For 1 tick bars if you load 100 bars (ticks) and then do an moving average you will get a different result if you change any of the 100 ticks that you loaded or also started at a different point in time which would shift the ticks being used.
Lets say you are using a 500 Tick chart with 1 Days to load. If you select 1 Days to load we are only going to get the same tick 500 chart as long as the very first tick in the dataset is always the same as the first time we viewed it. If you try to compare this on another PC or data provider or if you started the chart at a different time previously you may get a different chart. You could also get a slightly different chart at a later time when the data provider has finalized historical data for this day and the historical data has been reloaded.
Comment
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by NullPointStrategies, Yesterday, 05:17 AM
|
0 responses
72 views
0 likes
|
Last Post
|
||
|
Started by argusthome, 03-08-2026, 10:06 AM
|
0 responses
143 views
0 likes
|
Last Post
by argusthome
03-08-2026, 10:06 AM
|
||
|
Started by NabilKhattabi, 03-06-2026, 11:18 AM
|
0 responses
76 views
0 likes
|
Last Post
|
||
|
Started by Deep42, 03-06-2026, 12:28 AM
|
0 responses
47 views
0 likes
|
Last Post
by Deep42
03-06-2026, 12:28 AM
|
||
|
Started by TheRealMorford, 03-05-2026, 06:15 PM
|
0 responses
51 views
0 likes
|
Last Post
|

Comment