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

Math.Net a C# dll

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

    Math.Net a C# dll

    I am trying to get Math.Net to work with NT.

    http://www.mathdotnet.com/

    I have put the DLL MathNet.Numerics.dll in the NinjaTrader7/bin folder

    And refererenced it in References.

    Then added

    using using MathNet.Numerics; in declerations

    but when I try to call something

    number = Numerics.Statistics.Maximum(Array);

    I get the error

    The name 'numerics' does not exist in the current context

    Where am I going wrong

    #2
    tinkerz,

    Unfortunately this level of coding is unsupported. Hopefully a community member can help you resolve your issue.

    Thank you for your efforts in this regard, as I am sure the community of developers can benefit from this.
    Adam P.NinjaTrader Customer Service

    Comment


      #3
      http://numerics.mathdotnet.com/statistics/

      This is the example I am trying now, still I cant call ChiSquare without missing a directive or assembly
      Last edited by tinkerz; 01-30-2012, 04:17 PM.

      Comment


        #4
        Ok I was missing

        using MathNet.Numerics.Distributions;
        using MathNet.Numerics.Signals;
        using MathNet.Numerics.Statistics;

        But I still get this error:

        'System.Collections.Generic.!Enumberable<numberabl e.' does not contain a definition for ' Take' and no extension method accepting a first argument of the type 'System.Collections.Generic.!Enumberable<numberabl e.'could be found are you missing a using directive or an assembly reference

        AM i still mising a using from Math.net? or is Take something from c#?

        Comment


          #5
          tinkerz--

          I'm looking into downloading the Math.net stats package. Did you ever get this to work, and if so what did you have to declare to get it to work?

          Thanks,

          Aventeren

          Comment


            #6
            Originally posted by aventeren View Post
            tinkerz--

            I'm looking into downloading the Math.net stats package. Did you ever get this to work, and if so what did you have to declare to get it to work?

            Thanks,

            Aventeren
            Aventeren,

            Did you succeed in getting Math.Net to work?

            Comment


              #7
              For anyone still interested in this, I finally got it to work by:
              1. Downloading visual studio 2017 community with all the bells and whistles;
              2. In Visual>File>New>Project>Visual C# Console App
              3. Install Math.Net from the Package Manager Console from nuget.org
              4. Build>Build Solution
              5. Go to File location of the build and copy all the dlls from the bin/debug file to the Ninjatrader/bin/custom file
              6. Tools>Edit indicator, then, right click >references>add... add all the copied dlls
              7. Restart Ninja
              8. using MathNet.Numerics; //has to be added under using declarations of the code using the dll

              Comment

              Latest Posts

              Collapse

              Topics Statistics Last Post
              Started by JesseOffshore, Today, 08:20 AM
              1 response
              20 views
              0 likes
              Last Post NinjaTrader_SergeyS  
              Started by b16_aln, Today, 06:33 AM
              5 responses
              48 views
              0 likes
              Last Post b16_aln
              by b16_aln
               
              Started by Albertmanly, Today, 08:51 AM
              0 responses
              20 views
              0 likes
              Last Post Albertmanly  
              Started by Spiderbird, 10-03-2022, 10:15 PM
              6 responses
              88 views
              0 likes
              Last Post NinjaTrader_ChelseaB  
              Started by Marble, 09-02-2022, 12:24 PM
              29 responses
              161 views
              0 likes
              Last Post NinjaTrader_Jesse  
              Working...
              X