Short of connecting to my broker and sending an order too big to be accepted, how can I test this code?
Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Testing RealtimeErrorHandling
Collapse
X
-
Testing RealtimeErrorHandling
I have written some code to handle order rejections (as suggested here https://ninjatrader.com/support/help...eErrorHandling ).
Short of connecting to my broker and sending an order too big to be accepted, how can I test this code?Tags: None
-
Hello AnotherTrader,
Thanks for your post.
You can set Maximum Position Size ion a Sim101 account to be able to test order rejections with realtime data. (Control Center > Accounts tab > Sim101 > Right Click > Edit Account) The Playback Connection will inherit settings from the Sim101 account, so if you want to test in Playback, you could enter in a Maximum Position Quantity for the Sim101 account, then connect to Playback.
Realtime Error Handling is used for realtime order submissions so they can be reproduced with realtime trades to the Sim101 account or Playback accounts. Some cases of order rejections cannot be recreated with the Sim account and would be best tested using a paper trading account if it is offered by your broker, or by carefully testing with a live account.
We look forward to assisting.
- Likes 1
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by CaptainJack, 05-29-2026, 05:09 AM
|
0 responses
167 views
0 likes
|
Last Post
by CaptainJack
05-29-2026, 05:09 AM
|
||
|
Started by CaptainJack, 05-29-2026, 12:02 AM
|
0 responses
88 views
0 likes
|
Last Post
by CaptainJack
05-29-2026, 12:02 AM
|
||
|
Started by charlesugo_1, 05-26-2026, 05:03 PM
|
0 responses
128 views
0 likes
|
Last Post
by charlesugo_1
05-26-2026, 05:03 PM
|
||
|
Started by DannyP96, 05-18-2026, 02:38 PM
|
1 response
208 views
0 likes
|
Last Post
|
||
|
Started by CarlTrading, 05-11-2026, 05:56 AM
|
0 responses
185 views
0 likes
|
Last Post
by CarlTrading
05-11-2026, 05:56 AM
|

Comment