View Full Version : changing the limit price for a exitlongstop order
Eklavya
01-06-2010, 06:30 AM
Hello,
How can I change the limit price of an exitlongstop order?
Thanks,
Eklavya
NinjaTrader_Bertrand
01-06-2010, 07:24 AM
Eklavya, just rebsubmit the order at the new price then.
Eklavya
01-06-2010, 10:24 AM
Ok thanks..
I am trying to manually manage stops and profit target for an order and trying to enter order as below..
IOrder order=EnterLong(100000, Time[0].ToString());
double stopLoss=1.4500;
double takeProfit=1.4900;
IOrder stopLossOrder=ExitLongStop(stopLoss, "StopExit", order.FromEntrySignal);
IOrder profitTargetOrder=ExitLongStop(takeProfit, "ProfitExit", order.FromEntrySignal);
However the second ExitLongStop seems to be only updating the earlier order. How can we place different stop and profit target order for an order?
NinjaTrader_Bertrand
01-06-2010, 11:30 AM
Are you running your order handling per strategy position or per entry execution?
http://www.ninjatrader-support.com/HelpGuideV6/StrategiesTab.html
Or are you trying to scale out?
Then you would need to scale it first to be able to do this later -
http://www.ninjatrader-support2.com/vb/showthread.php?t=3751
malmaa
01-13-2010, 09:39 AM
I do not know that I got you right.
You are using ExitLongStop() for both stop and profit limit. Try using ExitLongLimit() for take profit.
IOrder stopLossOrder=ExitLongStop(stopLoss, "StopExit", order.FromEntrySignal);
IOrder profitTargetOrder=ExitLongLimit(takeProfit, "ProfitExit", order.FromEntrySignal);