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
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
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.
-
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
-
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
-
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
-
Originally posted by bassmanpete View PostSo it's not possible for my stop to be bypassed and to incur an unlimited loss?
Comment
-
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 rbeckmann05, Yesterday, 06:48 PM
|
1 response
12 views
0 likes
|
Last Post
by bltdavid
Today, 05:43 AM
|
||
Started by llanqui, Today, 03:53 AM
|
0 responses
6 views
0 likes
|
Last Post
by llanqui
Today, 03:53 AM
|
||
Started by burtoninlondon, Today, 12:38 AM
|
0 responses
10 views
0 likes
|
Last Post Today, 12:38 AM | ||
Started by AaronKoRn, Yesterday, 09:49 PM
|
0 responses
15 views
0 likes
|
Last Post
by AaronKoRn
Yesterday, 09:49 PM
|
||
Started by carnitron, Yesterday, 08:42 PM
|
0 responses
11 views
0 likes
|
Last Post
by carnitron
Yesterday, 08:42 PM
|
Comment