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

Need for normsdist() function

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

    Need for normsdist() function

    As i understand it, in C# this function does not come readily available for use in NT.

    I found this thread here in a search.



    My quick question is, I want to just use normsdist() within an indicator, not export anything to Excel as the were doing in the linked thread.

    Is the first few posts there all that is involved?

    My novice assumption is that once i 'import', what i will simply call "the ability to know what normsdist() IS as far as the indicator is concerned", I can then just use it in my usual coding, with variables etc etc as per normal.

    Sounds too easy? What am i missing?

    #2
    Hello Steve,

    Thank you for your post.

    I have not tested this enough to know if you can call normsdist() using the instructions outlined in your referenced thread. I would suggest testing this on your end or asking upon the thread you referenced.

    Comment


      #3
      Originally posted by NinjaTrader_PatrickH View Post
      Hello Steve,

      Thank you for your post.

      I have not tested this enough to know if you can call normsdist() using the instructions outlined in your referenced thread. I would suggest testing this on your end or asking upon the thread you referenced.
      Not too likely as i am way under-learned.

      In fact the more i read that other thread i do not think i should have even referenced it.

      I think a better question is..... how can i use the normsdist() function?

      Are there any library's or anything i could import to the "Using Declarations" region that would make the job easy enough?

      I think my original idea is just plain wrong thinking.

      Comment


        #4
        Hello Steve R,

        Thank you for your response.

        There unfortunately would not be a .dll we could reference for this. You can add you own method to calculate the normal distribution as seen at the following link and then add this to your UserDefinedMethods file and now you can call it for any indicator: http://www.daniweb.com/software-deve...-formula-in-c-

        For information on UserDefinedMethods please visit the following link: http://www.ninjatrader.com/support/h...ed_methods.htm

        Comment


          #5
          Hi Patrick. Thanks for that.

          normsdist harder to find and calc!

          but if i can figure that out we are good to go.
          Last edited by Steve R; 03-11-2014, 04:26 PM. Reason: edit

          Comment


            #6
            AH i think i have found the cumulative part here in this link for future reference for anyone looking.

            The program presented here provides a simple way to obtain area under the standard Normal curve less than z.


            It's a two-part idea and i have not done it yet myself, plus i want to look and see if "ERF" is part of the Math library already present, but my guess is it is not.

            Comment


              #7
              And of course no, C# does not have erf().

              Here's another link for erf function required to perform nomsdist(), but it is also found in the previous link. At first glance they look the same to me.

              Self-contained C++ code for computing erf(x), the error function

              Comment

              Latest Posts

              Collapse

              Topics Statistics Last Post
              Started by fx.practic, 10-15-2013, 12:53 AM
              5 responses
              5,404 views
              0 likes
              Last Post Bidder
              by Bidder
               
              Started by Shai Samuel, 07-02-2022, 02:46 PM
              4 responses
              95 views
              0 likes
              Last Post Bidder
              by Bidder
               
              Started by DJ888, Yesterday, 10:57 PM
              0 responses
              8 views
              0 likes
              Last Post DJ888
              by DJ888
               
              Started by MacDad, 02-25-2024, 11:48 PM
              7 responses
              160 views
              0 likes
              Last Post loganjarosz123  
              Started by Belfortbucks, Yesterday, 09:29 PM
              0 responses
              9 views
              0 likes
              Last Post Belfortbucks  
              Working...
              X