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, 03-31-2026, 09:41 PM
|
1 response
79 views
1 like
|
Last Post
|
||
|
Started by CarlTrading, 04-01-2026, 02:41 AM
|
0 responses
40 views
0 likes
|
Last Post
by CarlTrading
04-01-2026, 02:41 AM
|
||
|
Started by CaptainJack, 03-31-2026, 11:44 PM
|
0 responses
63 views
2 likes
|
Last Post
by CaptainJack
03-31-2026, 11:44 PM
|
||
|
Started by CarlTrading, 03-30-2026, 11:51 AM
|
0 responses
63 views
0 likes
|
Last Post
by CarlTrading
03-30-2026, 11:51 AM
|
||
|
Started by CarlTrading, 03-30-2026, 11:48 AM
|
0 responses
54 views
0 likes
|
Last Post
by CarlTrading
03-30-2026, 11:48 AM
|

Comment