While live trading a coded strategy, exit quantities are not matching entry quantities even though the same quantity variable is being passed into all the orders. When backtesting, quantities all match perfectly. When live trading a sim101 or Rithmic account, they do not match the vast majority of the time. I've included a screenshot of the live performance view to help visualize the problem. I made a post a few weeks back when I was under the impression that the problem was with Rithmic exclusively, but I have since noticed this happening in the sim101 account as well. Thought it would be cleaner to create a new topic. Any help with this is much appreciated!
Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Exit Quantities Don't Match Entry Quantities While Live Trading a Strategy
Collapse
X
-
Exit Quantities Don't Match Entry Quantities While Live Trading a Strategy
Hi,
While live trading a coded strategy, exit quantities are not matching entry quantities even though the same quantity variable is being passed into all the orders. When backtesting, quantities all match perfectly. When live trading a sim101 or Rithmic account, they do not match the vast majority of the time. I've included a screenshot of the live performance view to help visualize the problem. I made a post a few weeks back when I was under the impression that the problem was with Rithmic exclusively, but I have since noticed this happening in the sim101 account as well. Thought it would be cleaner to create a new topic. Any help with this is much appreciated!
Tags: None
-
-
Hello irochester,
Thank you for your reply.
Is the strategy using By Strategy Position or Per Entry Execution for its Stop and Target handling?
Can you provide the strategy along with instructions to reproduce this behavior? You can export the strategy from Tools > Export > NInjaScript Addon. Do not check the box to export as a compiled assembly or we will not be able to review your logic. Please attach the resulting .zip file to your reply.
Thanks in advance; I look forward to assisting you further.
Comment
-
-
Hello irochester,
Thank you for your reply.
Absolutely. You can send those via email to us at scriptingsupport [at] ninjatrader [dot] com. Any code provided will be kept confidential.
Please reference the following ticket number in the body of the email: 3641253 ATTN Kate W. and include a link to this post.
Thanks in advance; I look forward to assisting you further.
Comment
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by argusthome, 03-08-2026, 10:06 AM
|
0 responses
61 views
0 likes
|
Last Post
by argusthome
03-08-2026, 10:06 AM
|
||
|
Started by NabilKhattabi, 03-06-2026, 11:18 AM
|
0 responses
40 views
0 likes
|
Last Post
|
||
|
Started by Deep42, 03-06-2026, 12:28 AM
|
0 responses
21 views
0 likes
|
Last Post
by Deep42
03-06-2026, 12:28 AM
|
||
|
Started by TheRealMorford, 03-05-2026, 06:15 PM
|
0 responses
23 views
0 likes
|
Last Post
|
||
|
Started by Mindset, 02-28-2026, 06:16 AM
|
0 responses
51 views
0 likes
|
Last Post
by Mindset
02-28-2026, 06:16 AM
|

Comment