PDA

View Full Version : Why my order.StopPrice alway a Zero number?


asalada
03-23-2008, 09:10 AM
What is wrong with this? I cant even print to windows output for wstop, what I want is to know what is the current order stoploss.

private IOrder entryOrder = null;
protected override void OnOrderUpdate(IOrder order)
{
if ( order != null)
{
wstop = order.StopPrice;
Print (" wstop " + wstop );
}
}

Thank You

NinjaTrader_Josh
03-23-2008, 01:25 PM
To monitor your order's stop loss please refer to this reference sample: http://www.ninjatrader-support.com/vb/showthread.php?t=5790

Note: Your position's stop loss is essentially a separate order that is independent of your entry order so it will be on a separate IOrder.