Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Canceling orders with multiple instruments

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

    Canceling orders with multiple instruments

    When I have

    Add("QQQQ", PeriodType.Day, 1);
    Add("SPY", PeriodType.Day, 1);

    and I place an order that is good until cancelled:

    Entry = EnterLongStop (BarsInProgress, true, 100, Close[0] + n, "Entry");

    How do I cancel the order for only ONE of the instruments?

    Do I require a separate IOrder object for each instrument?

    i.e. EntryQQQQ and EntrySPY

    As always help is much appreciated.

    #2
    You will indeed need separate IOrders.
    Josh P.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by kinfxhk, 07-14-2026, 09:39 AM
    0 responses
    127 views
    0 likes
    Last Post kinfxhk
    by kinfxhk
     
    Started by kinfxhk, 07-13-2026, 10:18 AM
    0 responses
    105 views
    0 likes
    Last Post kinfxhk
    by kinfxhk
     
    Started by kinfxhk, 07-13-2026, 09:50 AM
    0 responses
    85 views
    0 likes
    Last Post kinfxhk
    by kinfxhk
     
    Started by kinfxhk, 07-13-2026, 07:21 AM
    0 responses
    105 views
    0 likes
    Last Post kinfxhk
    by kinfxhk
     
    Started by kinfxhk, 07-11-2026, 02:11 AM
    0 responses
    86 views
    0 likes
    Last Post kinfxhk
    by kinfxhk
     
    Working...
    X