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 tkaboris, Today, 05:13 PM
        0 responses
        2 views
        0 likes
        Last Post tkaboris  
        Started by GussJ, 03-04-2020, 03:11 PM
        16 responses
        3,281 views
        0 likes
        Last Post Leafcutter  
        Started by WHICKED, Today, 12:45 PM
        2 responses
        19 views
        0 likes
        Last Post WHICKED
        by WHICKED
         
        Started by Tim-c, Today, 02:10 PM
        1 response
        10 views
        0 likes
        Last Post NinjaTrader_ChelseaB  
        Started by Taddypole, Today, 02:47 PM
        0 responses
        5 views
        0 likes
        Last Post Taddypole  
        Working...
        X