Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Order.Token

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

    Order.Token

    In Ninja Trader 7 , IOrder has a definition for Token (ScreenShot 1).But if we use the same strategy in Ninja Trader 8, the following error will display.

    NinjaTrader.Cbi.Order’ does not contain a definition for ‘Token’ and no extension method ‘Token’ accepting a first argument of type ‘NinjaTrader.Cbi.Order’ could be found(are you missing a using directive or an assembly reference?)

    So which definition is used in Ninja Trader 8 instead of Token ?
    Attached Files

    #2
    Hello,

    You can reference Order.OrderId to get a string representing an order ID sent from the broker. If you are looking for a local token, then it looks like Order.Id may be the way to go. However, after testing on my end, it looks like Order.Id may not be fully implemented at this time, but feel free to test it out.
    Dave I.NinjaTrader Product Management

    Comment


      #3
      Token

      Hello,


      Thanks for the Reply..lets try with this id...

      Comment


        #4
        rmk, I've got a clarification for you on this question. Using a token is actually no longer necessary in NinjaTrader 8, because the Order object is not contained in a wrapper. Now you can directly compare the Order object in question to the one you created upon submitting the order, so there is no need for that extra step.
        Dave I.NinjaTrader Product Management

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by lightsun47, Today, 03:51 PM
        0 responses
        5 views
        0 likes
        Last Post lightsun47  
        Started by 00nevest, Today, 02:27 PM
        1 response
        8 views
        0 likes
        Last Post 00nevest  
        Started by futtrader, 04-21-2024, 01:50 AM
        4 responses
        44 views
        0 likes
        Last Post futtrader  
        Started by Option Whisperer, Today, 09:55 AM
        1 response
        13 views
        0 likes
        Last Post bltdavid  
        Started by port119, Today, 02:43 PM
        0 responses
        9 views
        0 likes
        Last Post port119
        by port119
         
        Working...
        X