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

Reference to 'netstandard, Version=2.0.0.0, ...

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

    Reference to 'netstandard, Version=2.0.0.0, ...

    Hi

    Current 8.0.23.0 version says that it support :
    .NET 4.8 Upgrade
    General
    Feature #14630

    and it seems that I managed to add to strategy or indicator after installing ML.NET and adding reference to it C:\xxx\xxx ... \Microsoft.ML.152\lib\netstandard2.0\Microsoft.ML. Core.dll ...

    using Microsoft.ML;
    using Microsoft.ML.Data;

    this will compile !

    but if I add any next steps like

    MLContext mlContext = new MLContext(seed: 0);

    to the code, it does not compile but gives an error:

    The type 'System.Object' is defined in an assembly that is not referenced. You must add a reference to assembly 'netstandard, Version=2.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51'.


    Any help ? so what needed and where to be added or configured?
    Something simple or not possible?
    ( the ML.Net support that .Net 4.8 platform)





    #2
    Hello raffu,

    Thank you for your post.

    Netstandard is one of the .Net framework versions but it is not used with NinjaTrader. If you were in Visual Studio and changed it to use Netstandard, you'd need to change back to either 4.8 if you've updated or 4.5 if you're not. The project NinjaTrader uses is .Net framework so if you have changed the project over to a Netstandard project you'd need to delete the project and then uninstall and reinstall the platform.

    Please let us know if we may assist further.
    Brandon H.NinjaTrader Customer Service

    Comment


      #3
      Hi, I actually installed that Microsoft.ML stuff with visual studio using .net framework 4.8 application and got the libraries from there .. and added references to those libraries got from there.
      (Actually I don't even use Visual Studio anyway with NinjaTrader, no idea how .. NinjaScript Editor is good enough for me)


      Anyway have anyone able to to use those Microsoft.ML libraries with NT?
      That's more or less my q. as this is more or less not NT support issue.


      Comment


        #4
        Hello raffu,

        Thank you for your note.

        The thread is open to any community members to share their sight if they have tried something similar.

        Please note that our support is able to assist with referencing 3rd party assemblies, however, we do not directly support their use.

        Please let us know if you have any other questions.
        Brandon H.NinjaTrader Customer Service

        Comment


          #5
          Hey raffu and Brandon, I am having the same issues. I created a project in Visual Studio using .NET 4.8 but when I go to install Microsoft.ML from Nuget it has a dependency of .NetStandard V2.0 even the older version. To overcome this I have my Machine Learning model write to a text file and then NinjaTrader reads from that file on trades it needs to make, this is a terrible solution right now as I have to sleep the thread for Ninja to read the file, it messes up my backtests sometimes but real time so far is decent. Please if anyone has any other solutions feel free to reply, need ML in Ninja.

          Click image for larger version

Name:	Capture.PNG
Views:	706
Size:	24.2 KB
ID:	1141349

          Comment


            #6
            Hi All. Same issue. Did anyone find a workaround?

            Comment


              #7
              Hello pjsmith,

              Thanks for your note.

              We are still not aware of a current workaround for this. Please see post number 2 in regards to this.

              That said, this thread will be open for other community members to share their insight on the topic.

              Let us know if we may further assist.
              Brandon H.NinjaTrader Customer Service

              Comment

              Latest Posts

              Collapse

              Topics Statistics Last Post
              Started by RookieTrader, Today, 09:37 AM
              3 responses
              15 views
              0 likes
              Last Post NinjaTrader_ChelseaB  
              Started by kulwinder73, Today, 10:31 AM
              0 responses
              5 views
              0 likes
              Last Post kulwinder73  
              Started by terofs, Yesterday, 04:18 PM
              1 response
              23 views
              0 likes
              Last Post terofs
              by terofs
               
              Started by CommonWhale, Today, 09:55 AM
              1 response
              3 views
              0 likes
              Last Post NinjaTrader_Erick  
              Started by Gerik, Today, 09:40 AM
              2 responses
              7 views
              0 likes
              Last Post Gerik
              by Gerik
               
              Working...
              X