see screenshots below. Item labeled and ending in 1 is 1 contract, and item ending in 3 is contracts. please advise.
Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Different Results Relative to contract sizes
Collapse
X
-
Different Results Relative to contract sizes
Running the playback AND Backtest to find that [everything else equal] except change 1 Contract to 3 Contracts where order management considers entry parameter for [defaultquantity]
see screenshots below. Item labeled and ending in 1 is 1 contract, and item ending in 3 is contracts. please advise.2 Photos -
Hello hdge4u,
Thank you for your post.
To clarify, are you wanting to know why there are more trades placed when the contract quantity is changed from 1 to 3?
Increasing the quantity of contracts traded would also increase the quantity of trades made when running a backtest on the strategy.
Please provide a brief description clarifying your question(s) so we may accurately assist.
Thanks in advance, I look forward to your reply.<span class="name">Brandon H.</span><span class="title">NinjaTrader Customer Service</span><iframe name="sig" id="sigFrame" src="/support/forum/core/clientscript/Signature/signature.php" frameborder="0" border="0" cellspacing="0" style="border-style: none;width: 100%; height: 120px;"></iframe>
-
Hello hdge4u,
Thank you for your notes.
The tests are not going to be the same because the quantity is higher for one of the tests. It shouldn't be expected that the results for the test with 3 contracts are 3x the amount exactly across the board. You can see on trade 3 that the entry time is different so either something was logically different between tests to cause that or the fill engine decided that with a quantity of 3 that this is when it would have filled. This may also be a part fill causing other values for the average entry or when it overall exits.
Since trade 3 was different, this would be a good starting point to understanding if the tests may still become more similar to match better. Or, if that is because of the new quantity and how that overall effects fills and your strategy's logic.
If the test had different data or anything different besides the quantity it may be related to that as well. We cannot tell from two screenshots if these are actually identical tests with just the quantity changed. You could investigate this by using prints in your strategy and making sure the logic of your script is happening expectedly between tests.
See the forum post below for information and examples of adding prints to your script to evaluate how it is behaving.
https://ninjatrader.com/support/foru...121#post791121
Please let us know if we may assist further.<span class="name">Brandon H.</span><span class="title">NinjaTrader Customer Service</span><iframe name="sig" id="sigFrame" src="/support/forum/core/clientscript/Signature/signature.php" frameborder="0" border="0" cellspacing="0" style="border-style: none;width: 100%; height: 120px;"></iframe>
Comment
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by NullPointStrategies, Yesterday, 05:17 AM
|
0 responses
55 views
0 likes
|
Last Post
|
||
|
Started by argusthome, 03-08-2026, 10:06 AM
|
0 responses
132 views
0 likes
|
Last Post
by argusthome
03-08-2026, 10:06 AM
|
||
|
Started by NabilKhattabi, 03-06-2026, 11:18 AM
|
0 responses
73 views
0 likes
|
Last Post
|
||
|
Started by Deep42, 03-06-2026, 12:28 AM
|
0 responses
45 views
0 likes
|
Last Post
by Deep42
03-06-2026, 12:28 AM
|
||
|
Started by TheRealMorford, 03-05-2026, 06:15 PM
|
0 responses
49 views
0 likes
|
Last Post
|

Comment