Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Strategy crashed
Collapse
X
-
Hello rcollen,
The strategy was disabled because an order was rejected.
The order was rejected because the order was a buy stop order placed below the current market price.
Are you checking that the price you are submitting the order to is above the market price before it is submitted?Chelsea B.NinjaTrader Customer Service
-
Hello rcollen,
A stop loss will use a stop limit order. Since this order was a stop market order, this tells me that you are using ExitShortStop() in your code. You need to add logic to ensure the price that you are passing to the ExitShortStop() call is below the current market price.
if (myPrice < Close[0]-1*TickSize)
{
ExitShortStop(myPrice);
}
This ensures that the price is at least two ticks less than the close price to prevent this error.
A stop order that is placed too close to the current Close price can be rejected if the price moves too quickly against your order.
If that is the case, place the stop further away from the current price and then move it up if necessary.Chelsea B.NinjaTrader Customer Service
Comment
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by Geovanny Suaza, 02-11-2026, 06:32 PM
|
0 responses
663 views
0 likes
|
Last Post
|
||
|
Started by Geovanny Suaza, 02-11-2026, 05:51 PM
|
0 responses
376 views
1 like
|
Last Post
|
||
|
Started by Mindset, 02-09-2026, 11:44 AM
|
0 responses
110 views
0 likes
|
Last Post
by Mindset
02-09-2026, 11:44 AM
|
||
|
Started by Geovanny Suaza, 02-02-2026, 12:30 PM
|
0 responses
575 views
1 like
|
Last Post
|
||
|
Started by RFrosty, 01-28-2026, 06:49 PM
|
0 responses
580 views
1 like
|
Last Post
by RFrosty
01-28-2026, 06:49 PM
|

Comment