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

NT7 to NT8 conversion

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

    NT7 to NT8 conversion

    I was converting a custom Renko bars type from NT7 to NT8 and got the following first accompanying error on the "public override ..." statement;

    public override void ApplyDefaults(Gui.Chart.BarsData barsData)
    {
    barsData.Period.Value = 6;
    barsData.Period.Value2 = 6;

    barsData.Period.BasePeriodValue = 1;

    barsData.DaysBack = 5;
    }


    ... and the Error Message is: The type or namespace name 'BarsData' does not exist in the namespace 'NinjaTrader.Gui.Chart' (are you missing an assembly reference?),CS0234

    Please, what am I missing.

    Lolu

    #2
    Hi omololu, thanks for your note.

    Unfortunately, custom bar types were never supported in NinjaTrader 7 so there is no documentation to compare to NinjaTrader 8. We have plenty of supported examples in NinjaTrader 8. Below are links to bar-type documentation and other examples.

    https://ninjatrader.com/support/help...?bars_type.htm
    https://ninjatrader.com/support/help...hart_style.htm
    https://ninjatraderecosystem.com/use...nko-bartype-8/

    Please let me know if you have any further questions.

    The NinjaTrader Ecosystem website is for educational and informational purposes only and should not be considered a solicitation to buy or sell a futures contract or make any other type of investment decision. The add-ons listed on this website are not to be considered a recommendation and it is the reader's responsibility to evaluate any product, service, or company. NinjaTrader Ecosystem LLC is not responsible for the accuracy or content of any product, service or company linked to on this website.
    Last edited by NinjaTrader_ChrisL; 03-08-2020, 04:17 PM.
    Chris L.NinjaTrader Customer Service

    Comment


      #3
      Hi I also have one indicator of nt7 I want convert to nt8 how I do that can anyone help me my telgram I'd
      theforex123

      Comment


        #4
        Hello msalman,

        Thanks for your first post and welcome to the NinjaTrader Forums.

        Please note that in the support team at NinjaTrader we do not provide coding/debugging or conversaion services. If you would like it converted for you, we can provide a link to 3rd party programmers who can provide that service.

        If you wish to convert it yourself:

        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.
        Paul H.NinjaTrader Customer Service

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by agclub, 04-21-2024, 08:57 PM
        5 responses
        32 views
        0 likes
        Last Post agclub
        by agclub
         
        Started by ESHunter, Today, 08:06 PM
        2 responses
        14 views
        0 likes
        Last Post ESHunter  
        Started by ETFVoyageur, 05-07-2024, 07:05 PM
        19 responses
        150 views
        0 likes
        Last Post ETFVoyageur  
        Started by ETFVoyageur, Yesterday, 10:13 PM
        3 responses
        26 views
        0 likes
        Last Post ETFVoyageur  
        Started by ETFVoyageur, Yesterday, 12:52 AM
        3 responses
        33 views
        0 likes
        Last Post ETFVoyageur  
        Working...
        X