Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Is it error in AtmStrategyCancelEntryOrder Help Doc?

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

    Is it error in AtmStrategyCancelEntryOrder Help Doc?

    Dear Support,

    Could u check whether the entryOrder[] index 3 is correct (see the example code below extracted from your Help page)? My reading of your other Help page seem to indicate the index should be 2. Thanks for looking into this.

    https://ninjatrader.com/support/help...entryorder.htm
    Example:
    protectedoverridevoidOnBarUpdate()
    {
    // ATM strategy methods only work during real-time
    if(State!=State.Realtime)
    return;

    string[]entryOrder=GetAtmStrategyEntryOrderStatus("orderId");

    // checks if the entry order exists
    // and the order state is not already cancelled/filled/rejected
    if(entryOrder.Length>0&&entryOrder[3]=="Working")
    {
    AtmStrategyCancelEntryOrder("orderId");
    }
    }

    #2
    Hello Tiang,

    Thanks for your post.

    Your observation is correct, the order state status should be an index of [2].

    We will initiate a change to the helpguide to correct the example.
    Paul H.NinjaTrader Customer Service

    Comment


      #3
      Hello Tiang,

      Just to update you, with the latest release of NT8 (8.0.13.0) the helpguide was updated to reflect the change you inquired about.
      Paul H.NinjaTrader Customer Service

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by zacharydw00, Today, 05:14 PM
      0 responses
      7 views
      0 likes
      Last Post zacharydw00  
      Started by shahabjet1, Today, 04:47 PM
      0 responses
      14 views
      0 likes
      Last Post shahabjet1  
      Started by aligator, Today, 04:32 PM
      0 responses
      13 views
      0 likes
      Last Post aligator  
      Started by timko, Today, 04:02 PM
      0 responses
      10 views
      0 likes
      Last Post timko
      by timko
       
      Started by asmmbillah, Today, 03:37 PM
      2 responses
      18 views
      0 likes
      Last Post asmmbillah  
      Working...
      X