• If this is your first visit, you will have to register before you can post. To view messages, please scroll below and select the forum that you would like to visits. Questions? Be sure to check out the Forum FAQ.

Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Convert NT 7 Indicator to NT 8

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

    Convert NT 7 Indicator to NT 8

    What is the best way to convert a NT 7 Indicator to NT 8?

    #2
    pick a simple Ninja NT7 indicator and compare the code with Ninja NT8 indicator to see how it translated. If the code is so diff pick another indicator. It's easier to learn when looking at familiar code & structure.

    Comment


      #3
      Hello CKnudsen,

      Thank you for your post.

      There are a few key items to look for when converting your scripts from NinjaTrader 7 format to NinjaTrader 8, and we keep a Code Breaking Changes table updated in the NinjaTrader 8 Help Guide to assist in identifying changes or new implementations of familiar methods and properties from NinjaTrader 7: http://ninjatrader.com/support/helpG...ng_changes.htm

      Some notable items to consider when converting your code will be the following:
      • Initialization has changed significantly. Initialize() has been replaced with OnStateChange(), which can be used to filter out different stages of the entire life cycle of a script (SetDefaults, Configure, Historical, Realtime, Terminated, etc.) OnStateChange() is fully covered in the Help Guide.
      • The names of many methods and properties have changed slightly, so you will need to refactor these in your code. The Code Breaking Changes table can make this task much easier, and there is also an alphabetical reference in the Help Guide that can help to find new method/property names: http://ninjatrader.com/support/helpG..._reference.htm
      • In numerous instances, you now have direct access to objects, where in NinjaTrader 7 you had to work with interfaces. For example, rather than the IOrder interface, you now have direct access to an Order object and its related fields. This will require a change in the way items like this are handled in your code.

      As always, we are more than happy to help out with tips and advice in this area, although we do not offer full script conversion services.
      Patrick H.NinjaTrader Customer Service

      Comment


        #4
        Originally posted by CKnudsen View Post
        What is the best way to convert a NT 7 Indicator to NT 8?
        Check this thread,

        https://ninjatrader.com/support/foru...ad.php?t=79551

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by Vincere, Today, 01:59 AM
        0 responses
        4 views
        0 likes
        Last Post Vincere
        by Vincere
         
        Started by Davoone1, Yesterday, 07:28 PM
        1 response
        7 views
        0 likes
        Last Post NinjaTrader_ChrisSch  
        Started by Bobisam, Yesterday, 10:53 PM
        1 response
        6 views
        0 likes
        Last Post Bobisam
        by Bobisam
         
        Started by quantera, Yesterday, 05:38 PM
        0 responses
        5 views
        0 likes
        Last Post quantera  
        Started by ciro1963, Yesterday, 03:58 PM
        0 responses
        6 views
        0 likes
        Last Post ciro1963  
        Working...
        X