Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Why my order.StopPrice alway a Zero number?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Why my order.StopPrice alway a Zero number?

    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

    #2
    To monitor your order's stop loss please refer to this reference sample: http://www.ninjatrader-support.com/v...ead.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.
    Josh P.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by tgn55, Today, 09:51 PM
    0 responses
    1 view
    0 likes
    Last Post tgn55
    by tgn55
     
    Started by cxxazssx, Today, 09:45 PM
    0 responses
    1 view
    0 likes
    Last Post cxxazssx  
    Started by southpacific001, 02-26-2021, 09:25 PM
    14 responses
    63 views
    0 likes
    Last Post REI140205  
    Started by punkiy2111, Today, 05:22 PM
    0 responses
    2 views
    0 likes
    Last Post punkiy2111  
    Started by secrettrader, Today, 03:36 PM
    0 responses
    8 views
    0 likes
    Last Post secrettrader  
    Working...
    X