Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
difference between enter long by stop limit order and exit long by stop limit order
Collapse
X
-
difference between enter long by stop limit order and exit long by stop limit order
can i go long by using enter long stop limit order? or, are my only options enter long position and enter long position by limit order?Tags: None
-
-
If I am using unmanaged approach, I would use order type Buy to go long, or SellShort to go short. For stop loss, I can use:
for Long:
SubmitOrderUnmanaged(0, OrderAction.Sell, OrderType.StopMarket, Position.Quantity, 0, Position.AveragePrice - StopLoss * TickSize, oco, "StopLoss");
and for Short:
SubmitOrderUnmanaged(0, OrderAction.BuyToCover, OrderType.StopMarket, Position.Quantity, 0, Position.AveragePrice + StopLoss * TickSize, oco, "StopLoss");
Correct?
Then for my target exits,
for Long:
SubmitOrderUnmanaged(0, OrderAction.Sell, OrderType.Limit, Position.Quantity, 0, Position.AveragePrice + TakeProfit * TickSize, oco, "TakeProfit");
and for Short:
SubmitOrderUnmanaged(0, OrderAction.BuyToCover, OrderType.Limit, Position.Quantity, 0, Position.AveragePrice - TakeProfit * TickSize, oco, "TakeProfit");
...or should I use OrderType.StopLimit ?
Comment
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by CarlTrading, 05-11-2026, 05:56 AM
|
0 responses
53 views
0 likes
|
Last Post
by CarlTrading
05-11-2026, 05:56 AM
|
||
|
Started by CarlTrading, 05-10-2026, 08:12 PM
|
0 responses
32 views
0 likes
|
Last Post
by CarlTrading
05-10-2026, 08:12 PM
|
||
|
Started by Hwop38, 05-04-2026, 07:02 PM
|
0 responses
195 views
0 likes
|
Last Post
by Hwop38
05-04-2026, 07:02 PM
|
||
|
Started by CaptainJack, 04-24-2026, 11:07 PM
|
0 responses
356 views
0 likes
|
Last Post
by CaptainJack
04-24-2026, 11:07 PM
|
||
|
Started by Mindset, 04-21-2026, 06:46 AM
|
0 responses
275 views
0 likes
|
Last Post
by Mindset
04-21-2026, 06:46 AM
|

Comment