Short of connecting to my broker and sending an order too big to be accepted, how can I test this code?
Announcement
Collapse
Looking for a User App or Add-On built by the NinjaTrader community?
Visit NinjaTrader EcoSystem and our free User App Share!
Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less
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.
JimNinjaTrader Customer Service
- Likes 1
Latest Posts
Collapse
Topics | Statistics | Last Post | ||
---|---|---|---|---|
Started by Mariawilcoxi, Today, 01:32 AM
|
0 responses
1 view
0 likes
|
Last Post
by Mariawilcoxi
Today, 01:32 AM
|
||
Started by gleichnerany, Today, 01:17 AM
|
0 responses
3 views
0 likes
|
Last Post
by gleichnerany
Today, 01:17 AM
|
||
Started by WHICKED, 03-27-2024, 12:33 PM
|
4 responses
44 views
0 likes
|
Last Post Today, 12:28 AM | ||
Started by f.saeidi, Today, 12:12 AM
|
0 responses
5 views
0 likes
|
Last Post
by f.saeidi
Today, 12:12 AM
|
||
Started by Conall, Today, 12:06 AM
|
0 responses
9 views
0 likes
|
Last Post
by Conall
Today, 12:06 AM
|
Comment