Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Advanced Statistics Library

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

    Advanced Statistics Library

    Hey all,

    Is there any way to integrate a more advanced statistics library into NinjaScript code? I found some open source C# libraries such as dnAnalytics, but I can't seem to figure out how to use them with NinjaTrader....is it even possible in the first place?

    It would be nice to be able to do some fancier stuff, Matlab style.

    Thanks,
    Phil

    #2
    Hello Phil,

    Thank you for your post.

    This is not supported but you may be able to add the library with the "using" statements at the top of the code. You can also add references to external files by right clicking within the editor > references > Add.
    Ryan M.NinjaTrader Customer Service

    Comment


      #3
      Yes I have tried to do so but the objects used in the calculation aren't compatible. Is there any way to transform a NinjaScript data series to a normal array or vector?

      Comment


        #4
        Yes, this is possible but you will have to look into the C# implementation of this. A NinjaScript data series is essentially an array, only they're tied to each individual bar object.
        Ryan M.NinjaTrader Customer Service

        Comment


          #5
          Ok great. Thanks for the quick reply.

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by Hwop38, 05-04-2026, 07:02 PM
          0 responses
          181 views
          0 likes
          Last Post Hwop38
          by Hwop38
           
          Started by CaptainJack, 04-24-2026, 11:07 PM
          0 responses
          334 views
          0 likes
          Last Post CaptainJack  
          Started by Mindset, 04-21-2026, 06:46 AM
          0 responses
          258 views
          0 likes
          Last Post Mindset
          by Mindset
           
          Started by M4ndoo, 04-20-2026, 05:21 PM
          0 responses
          358 views
          0 likes
          Last Post M4ndoo
          by M4ndoo
           
          Started by M4ndoo, 04-19-2026, 05:54 PM
          0 responses
          187 views
          0 likes
          Last Post M4ndoo
          by M4ndoo
           
          Working...
          X