I ask because I've seen on a few occasions (on a 6 Range chart) as many as 80 candles being generated in 1 second. If the target was entered separately from the stop loss it seems to me that the price could be past my stop before the stop loss was executed.
Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Clarification needed on order submission
Collapse
X
-
Clarification needed on order submission
When using SetStopLoss and SetProfitTarget in the Initialize section of a strategy then entering a position using EnterLong/EnterShort, are the stop loss and target submitted simultaneously or separately?
I ask because I've seen on a few occasions (on a 6 Range chart) as many as 80 candles being generated in 1 second. If the target was entered separately from the stop loss it seems to me that the price could be past my stop before the stop loss was executed.Tags: None
-
Hello bassmanpete,
Thank you for your post.
The Stop Loss and Profit Target are submitted simultaneously. You can check your Log tab when the Stop Loss and Profit Target is submitted to see if there is any delay in one of the orders being submitted.
Please let me know if I may be of further assistance.
-
Thanks for your reply Patrick. Looking at the log, it appears that the stop loss is processed first. Would that be because we have it declared first in the strategy as shown below or is it automatically processed that way?Originally posted by NinjaTrader_PatrickH View PostHello bassmanpete,
Thank you for your post.
The Stop Loss and Profit Target are submitted simultaneously. You can check your Log tab when the Stop Loss and Profit Target is submitted to see if there is any delay in one of the orders being submitted.
Please let me know if I may be of further assistance.
SetStopLoss("", CalculationMode.Ticks, stoploss, false);
SetProfitTarget("", CalculationMode.Ticks, target);
Whatever the case may be, and just to be on the safe side, is it possible to get the entry price of a trade, compare it to the current price and exit the trade if my stop has been passed?
Comment
-
That is what will happen anyway: if your Stop has been violated when your SetStop() is placed, then, per normal, the order will be executed immediately at market.Originally posted by bassmanpete View PostThanks for your reply Patrick. Looking at the log, it appears that the stop loss is processed first. Would that be because we have it declared first in the strategy as shown below or is it automatically processed that way?
SetStopLoss("", CalculationMode.Ticks, stoploss, false);
SetProfitTarget("", CalculationMode.Ticks, target);
Whatever the case may be, and just to be on the safe side, is it possible to get the entry price of a trade, compare it to the current price and exit the trade if my stop has been passed?
Of course, if you insist, you can always do the calculation that you outine and submit an exit order in OnMarketData().
Comment
-
So it's not possible for my stop to be bypassed and to incur an unlimited loss?Originally posted by koganam View PostThat is what will happen anyway: if your Stop has been violated when your SetStop() is placed, then, per normal, the order will be executed immediately at market.
Of course, if you insist, you can always do the calculation that you outine and submit an exit order in OnMarketData().
Comment
-
We are talking about multiple computers linked by a network that was deliberately designed to be unreliable, so that it cannot be taken down, so we cannot say: "it's not possible". However, barring unforeseen issues with the hardware somewhere in the chain, a logic failure is unlikely, so SetStop() will trigger an exit one way or another: immediate if the conditions that would otherwise trigger it have already been met; delayed until such time as exit conditions are met otherwise.Originally posted by bassmanpete View PostSo it's not possible for my stop to be bypassed and to incur an unlimited loss?
Comment
-
I tried to enter a market order transaction once during 8:30am EST news event on a 4 range chart - ORDER WAS REJECTED on ES....Originally posted by bassmanpete View PostWhen using SetStopLoss and SetProfitTarget in the Initialize section of a strategy then entering a position using EnterLong/EnterShort, are the stop loss and target submitted simultaneously or separately?
I ask because I've seen on a few occasions (on a 6 Range chart) as many as 80 candles being generated in 1 second. If the target was entered separately from the stop loss it seems to me that the price could be past my stop before the stop loss was executed.
zenfire
Comment
-
Hello sledge,
Thank you for your post.
Do you see the rejection message in your Log tab of the NinjaTrader Control Center?
If so, please detail what this message states.
If not, please send me your log and trace files for today so that I may look into what occurred.
You can do this by going to the Control Center-> Help-> Mail to Support.
Please put 'ATTN: Patrick - 835218' in the subject line and reference this thread in the body of the email: http://www.ninjatrader.com/support/f...ad.php?t=57476
I look forward to your response.
Comment
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by Geovanny Suaza, 02-11-2026, 06:32 PM
|
0 responses
648 views
0 likes
|
Last Post
|
||
|
Started by Geovanny Suaza, 02-11-2026, 05:51 PM
|
0 responses
369 views
1 like
|
Last Post
|
||
|
Started by Mindset, 02-09-2026, 11:44 AM
|
0 responses
108 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
572 views
1 like
|
Last Post
|
||
|
Started by RFrosty, 01-28-2026, 06:49 PM
|
0 responses
573 views
1 like
|
Last Post
by RFrosty
01-28-2026, 06:49 PM
|

Comment