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 Max238, Today, 01:28 AM
        5 responses
        40 views
        0 likes
        Last Post Max238
        by Max238
         
        Started by giulyko00, Yesterday, 12:03 PM
        3 responses
        12 views
        0 likes
        Last Post NinjaTrader_BrandonH  
        Started by habeebft, Today, 07:27 AM
        1 response
        14 views
        0 likes
        Last Post NinjaTrader_ChristopherS  
        Started by AveryFlynn, Today, 04:57 AM
        1 response
        12 views
        0 likes
        Last Post NinjaTrader_Erick  
        Started by r68cervera, Today, 05:29 AM
        1 response
        10 views
        0 likes
        Last Post NinjaTrader_ChelseaB  
        Working...
        X