Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Help with Breakout Stop Entry code.
Collapse
X
-
No. I do this all the time with real orders doing discretionary trading.Originally posted by piersh View Postplease correct me if i'm wrong, but i think it's because, in your case you have essentially two conflicting orders, both of which could get filled. at that point you'd have both long & short positions open on the same signal.
Lets say the market is at 50 and I place a buy 1 stop order at 51 and a sell 1 stop order at 49.
If the market goes to say 52 then 48 I would go long at 51 then flat at 49. Or instead, if the market goes to say 48 first then 52, I would go short at 49 then flat at 51. That how the real world works.
However, Ninjatrader's Strategy code and Tradestation's Strategy code assumes the trader wants to reverse when both long and short entry orders are placed. So in the above first example, we would go long at 51 then Tradestation, behind the scene would double the order size for the sell stop order so when the market traded down to 48 we would be short 1 from 49.
shawnj
Comment
-
I proposed that workaround on message #3 of this thread. The problem with this workaround is that backtesting / optimizing gets very messy.Originally posted by hatori View PostYes , two independent strategy placing opposite EnterStopLimit orders.
I'ts obvious the NT folks put a lot of work into NT's backtesting/optimizing/walkForwardOptimization. It's just sad however that the simplest type of breakout strategy cannot utilize any of it.
shawnj
Comment
-
shawnj, NinjaTrader 7 will give you more flexibility for this as it introduces a new 'unmanaged order submission' mode - http://www.ninjatrader.com/webnew/NT7/NinjaTrader7.html
New Unmanaged Order Submission
In 6.5 some users were burdened with our "Internal Order Handling" rules. We have introduced unmanaged order submission which bypasses the convenience of our order handling layer. This lower level of programming allows you to do what you want relative to order submission/management without any limitations other than any imposed by your broker. There are only three methods, SubmitOrder(), ChangeOrder() and CancelOrder(). You then get the flexibility of managing your orders how you see fit and optionally handling rejections
Comment
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by Geovanny Suaza, 02-11-2026, 06:32 PM
|
0 responses
662 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
574 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