Thanks
Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Scaling in then all out
Collapse
X
-
Scaling in then all out
When scaling in at different price levels and then exiting all positions at one price, is it necessary or best to use unique entry names or is not necessary at all? Can this senario be achieved with no entry names at all?
ThanksTags: None
-
Bertrand
Is there a way to cancel the Buy1 target and combine the 2 targets to the Buy2 exit with a quantity of 2, 4 ticks from the Position.AvgPrice?
Or does it need to be handled individually: Buy1 target = Buy1 Entryprice + 2 and Buy2 target = Buy2 Entryprice + 6?
ThanksLast edited by kenb2004; 06-25-2012, 09:46 AM.
Comment
-
Ken, if you work with the Set methods this would not be possible, as you can't cancel them only move closer or further away. When you work with the Exit() methods you could cancel an individual exit order and submit a final exit order for example with a emtpy ("") tag so it would 'catch' all orders.
Comment
-
So continuing with this senario, using IOrders and no Set Methods, would this way work?
protected override void OnOrderUpdate(IOrder order)
{
if (buy2entry != null && buy2entry == order){
if (order.OrderState == OrderState.Filled){
if (buy1target != null)
CancelOrder(buy1target);
buy2target = ExitLongLimit(0, true, 2, Position.AvgPrice + 4 * TickSize, "Buy_1&2_Profit", "");
} } }
Comment
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by DannyP96, 05-18-2026, 02:38 PM
|
1 response
26 views
0 likes
|
Last Post
|
||
|
Started by CarlTrading, 05-11-2026, 05:56 AM
|
0 responses
115 views
0 likes
|
Last Post
by CarlTrading
05-11-2026, 05:56 AM
|
||
|
Started by CarlTrading, 05-10-2026, 08:12 PM
|
0 responses
69 views
0 likes
|
Last Post
by CarlTrading
05-10-2026, 08:12 PM
|
||
|
Started by Hwop38, 05-04-2026, 07:02 PM
|
0 responses
226 views
0 likes
|
Last Post
by Hwop38
05-04-2026, 07:02 PM
|
||
|
Started by CaptainJack, 04-24-2026, 11:07 PM
|
0 responses
412 views
0 likes
|
Last Post
by CaptainJack
04-24-2026, 11:07 PM
|

Comment