Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

NT 7 to NT 8 TS Conversion

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

    NT 7 to NT 8 TS Conversion

    Dear Support,
    with difficulty we converted all our TS from old version to the new one.
    I have only two questions:

    1) IOrder.Token will be convert to Order.OrderId ? Because I readed in NT 8 that OrderId can change during we stay on the market..But in NT 7 Token represent the unique id of an order. Wich NT 8 property we must use?

    2) Can you show us how convert follows commands (written in OnStateChange):

    Add(MAX(Close,5));
    Add(MIN(Close,5));
    Add(EMA(intEMALong));


    Thank you so much
    Best Regards

    #2
    Hello Walter,

    The Order.OrderId will be a unique ID for the order that is provided by the broker (or from the simulation engine).


    Order.ID is not documented for use with NinjaTrader 8, however from my understanding this is the internal ID used by NinjaTrader.

    IOrder.Token is an internal id used by NinjaTrader 7 as the OrderID can change.
    Chelsea B.NinjaTrader Customer Service

    Comment


      #3
      Hello,
      thank you...
      So we will use Order.OrderId
      And.... to convert:

      Add(MAX(Close,5));
      Add(MIN(Close,5));
      Add(EMA(intEMALong));

      can you help us?

      rgds

      Comment


        #4
        Hello Walter,

        Are you asking how to add an indicator to a chart from a strategy?

        Use AddChartIndicator().


        Below is a link to the code breaking changes where you can search for the NT8 methods if they have changed from NT7.
        Chelsea B.NinjaTrader Customer Service

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by NullPointStrategies, Today, 05:17 AM
        0 responses
        50 views
        0 likes
        Last Post NullPointStrategies  
        Started by argusthome, 03-08-2026, 10:06 AM
        0 responses
        126 views
        0 likes
        Last Post argusthome  
        Started by NabilKhattabi, 03-06-2026, 11:18 AM
        0 responses
        69 views
        0 likes
        Last Post NabilKhattabi  
        Started by Deep42, 03-06-2026, 12:28 AM
        0 responses
        42 views
        0 likes
        Last Post Deep42
        by Deep42
         
        Started by TheRealMorford, 03-05-2026, 06:15 PM
        0 responses
        46 views
        0 likes
        Last Post TheRealMorford  
        Working...
        X