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 llanqui, Today, 03:53 AM
        0 responses
        5 views
        0 likes
        Last Post llanqui
        by llanqui
         
        Started by burtoninlondon, Today, 12:38 AM
        0 responses
        10 views
        0 likes
        Last Post burtoninlondon  
        Started by AaronKoRn, Yesterday, 09:49 PM
        0 responses
        15 views
        0 likes
        Last Post AaronKoRn  
        Started by carnitron, Yesterday, 08:42 PM
        0 responses
        11 views
        0 likes
        Last Post carnitron  
        Started by strategist007, Yesterday, 07:51 PM
        0 responses
        14 views
        0 likes
        Last Post strategist007  
        Working...
        X