PDA

View Full Version : Changing a pending order entry price


TheChingachgook
10-01-2008, 02:27 AM
How is it possible to change a pending order entry price.

One of my strategies sets on a certain signal a pending (stopp buy or stopp sell) order into the market. If the order doesn't get filled immediately, the strategy tries to move the order to the High/Low of the next Candle.

Therefor the system has to change the entryprice. Currently the active order gets canceled and a new order (with the new entryprice) will be create.

But in this case the broker charges fees for the cancel transaction - now I looking for a possibility (method) to adjust the order instead of cancelling the existing order and create a new one - but I didn't find anything in the help system

does anybody know an answer ?

Thanks for help

NinjaTrader_Ben
10-01-2008, 07:10 AM
Hello,


If you call order method again when the order is already submitted and include a changed price parameter it should change the order.

if(...condition to change order...)
{
EnterLongStop(...parameters with changed price...);
}


Please note you will need to resubmit the order every single OnBarUpdate() otherwise it will be cancelled.