Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

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 pibrew, Today, 06:37 AM
        0 responses
        1 view
        0 likes
        Last Post pibrew
        by pibrew
         
        Started by rbeckmann05, Yesterday, 06:48 PM
        1 response
        14 views
        0 likes
        Last Post bltdavid  
        Started by llanqui, Today, 03:53 AM
        0 responses
        6 views
        0 likes
        Last Post llanqui
        by llanqui
         
        Started by burtoninlondon, Today, 12:38 AM
        0 responses
        11 views
        0 likes
        Last Post burtoninlondon  
        Started by AaronKoRn, Yesterday, 09:49 PM
        0 responses
        16 views
        0 likes
        Last Post AaronKoRn  
        Working...
        X