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

Using ValueTuple C#7 with NinjaTrader 8

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

    Using ValueTuple C#7 with NinjaTrader 8

    Hello,

    As of today NT8 targets C#5, so ValueTuple can not be used out of the box. There is a Nuget Package to provide this functionality but NT8 support can not confirm it will work reliably.

    Is there any fellow trader that has managed to use ValueTuple in NT8 working successfully?
    Last edited by roblogic; 09-30-2021, 12:26 PM.

    #2
    Hello roblogic,

    Thank you for your post.

    As we've discussed that this would be outside the realm of what our support can assist with, I will leave this thread open for others to post any experiences they may have had.

    Please let us know if we may be of further assistance to you.
    Kate W.NinjaTrader Customer Service

    Comment


      #3
      Good reading here.

      Comment


        #4
        I have imported the System.ValueTuple.dll ./ found in the folder net47 of the Nuget Package found here:

        Provides the System.ValueTuple structs, which implement the underlying types for tuples in C# and Visual Basic. Commonly Used Types: System.ValueTuple System.ValueTuple System.ValueTuple System.ValueTuple System.ValueTuple System.ValueTuple System.ValueTuple System.ValueTuple System.ValueTuple 30ab651fcb4354552bd4891619a0bdd81e0ebdbf When using NuGet 3.x this package requires at least version 3.4.


        /. into the Custom directory and added the reference in the editor as per the instructions in post 3 here:

        Hi How can I import a DLL and use it on my strategy? Is there a .net framework limitation? Thanks


        These steps work fine but when I add using System.ValueTuple; it does not compile saying System.ValueTuple is a type not a namespace. Also not including using System.ValueTuple, ValueTuple won't work either in the Editor.

        Any idea to get this working?

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by cocoescala, 10-12-2018, 11:02 PM
        6 responses
        939 views
        0 likes
        Last Post Jquiroz1975  
        Started by gbourque, Today, 06:39 AM
        1 response
        4 views
        0 likes
        Last Post NinjaTrader_Erick  
        Started by cmtjoancolmenero, Yesterday, 03:58 PM
        1 response
        17 views
        0 likes
        Last Post NinjaTrader_Gaby  
        Started by benmarkal, Yesterday, 12:52 PM
        3 responses
        23 views
        0 likes
        Last Post NinjaTrader_Gaby  
        Started by helpwanted, Today, 03:06 AM
        1 response
        20 views
        0 likes
        Last Post sarafuenonly123  
        Working...
        X