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 alifarahani, Today, 09:40 AM
        4 responses
        20 views
        0 likes
        Last Post alifarahani  
        Started by gentlebenthebear, Today, 01:30 AM
        3 responses
        16 views
        0 likes
        Last Post NinjaTrader_Jesse  
        Started by PhillT, Today, 02:16 PM
        2 responses
        7 views
        0 likes
        Last Post PhillT
        by PhillT
         
        Started by Kaledus, Today, 01:29 PM
        3 responses
        11 views
        0 likes
        Last Post NinjaTrader_Jesse  
        Started by frankthearm, Yesterday, 09:08 AM
        14 responses
        47 views
        0 likes
        Last Post NinjaTrader_Clayton  
        Working...
        X