• 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

NT8 C# version

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

    NT8 C# version

    Hi,

    Can you please tell me which version of C# does NT8 implement? I tried to use some C# 6 features (nameof) and the script did not compile. Thank you.

    #2
    Hello Zeos6,

    From my understanding NinjaTrader 8 uses .NET 4.5 and C# 5.0.

    If I find this has been updated to any other version I will update this thread.
    Chelsea B.NinjaTrader Customer Service

    Comment


      #3
      Thanks Chelsea. I appreciate it.
      C# is now up to version 7 with some nice features. It would be nice if we could take advantage of the new features in NT.

      Comment


        #4
        Hello Zeos6,

        I've received a tracking ID for your request.

        Your request for NinjaTrader to target .NET 4.7 with C# 7 is being tracked with ID #SFT-3124.

        Please note it is up to the NinjaTrader Development to decide if and when any request will be implemented.

        Thank you for your feedback on this.
        Chelsea B.NinjaTrader Customer Service

        Comment


          #5
          Hello,

          As of today, which version of .Net and C# should we use when developing a strategy in Visual Studio?. Do you have a template just to start correctly? Thanks!

          Comment


            #6
            Hello roblogic,

            Use NinjaTrader to generate a new strategy or indicator from the NinjaScript Editor window. Then click the VisualStudio icon on the NinjaScript Editor to load the NinjaTrader project in VisualStudio. Then open the file to begin editing it.

            NinjaTrader 8 uses .NET 4.5 and C# 5.0.

            See post #2 in this thread.
            Last edited by NinjaTrader_ChelseaB; 12-11-2018, 07:19 AM.
            Chelsea B.NinjaTrader Customer Service

            Comment


              #7
              Add my vote for targeting newer C# language versions - at least C# 7 please.

              Comment


                #8
                Hi robotic, thank you for your post. Your vote has been added.
                Chris L.NinjaTrader Customer Service

                Comment


                  #9
                  It would be nice if it were at least C# 6 so we could just use string interpolation and the advanced async capabilities.

                  Comment

                  Latest Posts

                  Collapse

                  Topics Statistics Last Post
                  Started by gemini42, Yesterday, 09:44 PM
                  0 responses
                  6 views
                  0 likes
                  Last Post gemini42  
                  Started by martyn73, Yesterday, 03:09 PM
                  0 responses
                  4 views
                  0 likes
                  Last Post martyn73  
                  Started by martyn73, Yesterday, 03:05 PM
                  0 responses
                  5 views
                  0 likes
                  Last Post martyn73  
                  Started by mic414, Yesterday, 02:17 PM
                  0 responses
                  2 views
                  0 likes
                  Last Post mic414
                  by mic414
                   
                  Started by U0000999, 11-15-2019, 06:18 PM
                  1 response
                  23 views
                  0 likes
                  Last Post NinjaTrader_ChrisL  
                  Working...
                  X