• 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

Indicator from NT7 to NT8

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

    Indicator from NT7 to NT8

    Hello,

    what would be the best way to modify an indicator in NT7 so that it works in NT8? Is there a sorted glossary where one can look for syntax in NT7 and get from there the appropriate syntax in NT8?

    And one question more please: I think the indicator I want to modify is related so some other code. Because when save in NT7 with a new name and I want to delete the source indicator I get an error-message. How one can find out what other indicator or file it is referring to please?

    Thank you!
    Tony

    #2
    Hello tonynt,

    Thank you for your post.

    You cannot delete the original indicator if it was a built in one, in either NinjaTrader 7 or 8 - you would need to rename items to not conflict with the original indicator.

    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.
    Kate W.NinjaTrader Customer Service

    Comment


      #3
      Many moons ago someone posted this,
      https://ninjatrader.com/support/foru...and-strategies

      Comment


        #4
        Thank you!

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by HiddenPhilosopher, Yesterday, 11:58 PM
        3 responses
        17 views
        0 likes
        Last Post NinjaTrader_ChrisL  
        Started by Mykro, Yesterday, 09:48 AM
        1 response
        8 views
        0 likes
        Last Post NinjaTrader_ChrisL  
        Started by Brillo, Today, 12:40 PM
        0 responses
        3 views
        0 likes
        Last Post Brillo
        by Brillo
         
        Started by authenticx, 05-29-2020, 03:51 PM
        3 responses
        62 views
        0 likes
        Last Post NinjaTrader_ChrisL  
        Started by nikolaalx, Today, 07:31 AM
        10 responses
        41 views
        0 likes
        Last Post bltdavid  
        Working...
        X