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.



    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


      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 jclose, Today, 09:37 PM
              0 responses
              4 views
              0 likes
              Last Post jclose
              by jclose
               
              Started by WeyldFalcon, 08-07-2020, 06:13 AM
              10 responses
              1,413 views
              0 likes
              Last Post Traderontheroad  
              Started by firefoxforum12, Today, 08:53 PM
              0 responses
              9 views
              0 likes
              Last Post firefoxforum12  
              Started by stafe, Today, 08:34 PM
              0 responses
              10 views
              0 likes
              Last Post stafe
              by stafe
               
              Started by sastrades, 01-31-2024, 10:19 PM
              11 responses
              169 views
              0 likes
              Last Post NinjaTrader_Manfred  
              Working...
              X