Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

mathematical functions

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

    mathematical functions

    Can someone please tell me how Ninja implements a simple logarithmic formula (with basis 10), this way transforming the numbers 99, 999 and 9999 respectively into 2, 3 and 4 ?

    y = loga (x)

    #2
    Hello fliesen,

    NinjaTrader would use the C# Math Methods: https://msdn.microsoft.com/en-us/lib...63(vs.71).aspx

    In context to the question can you provide a bit more insight on what you are looking for here?
    You are asking about basis 10 but using 99, 999, 9999 as the results? And what do 2, 3, and 4 have to do with it?
    In the application (NinjaTrader), where did this question arise from?

    Comment


      #3
      Perfect, your C# Math Methods link is enough to me (I only needed it for a calculation, but didn't know how to correctly write that formula in NinjaScript).
      Thank you.

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by puapwr, Today, 06:09 PM
      0 responses
      2 views
      0 likes
      Last Post puapwr
      by puapwr
       
      Started by franciscog21, Today, 05:27 PM
      0 responses
      5 views
      0 likes
      Last Post franciscog21  
      Started by hdge4u, 04-29-2024, 12:23 PM
      5 responses
      28 views
      0 likes
      Last Post MisterTee  
      Started by llanqui, 01-25-2024, 06:15 PM
      9 responses
      64 views
      0 likes
      Last Post MisterTee  
      Started by tradingnasdaqprueba, 05-07-2024, 03:42 AM
      16 responses
      67 views
      0 likes
      Last Post tradingnasdaqprueba  
      Working...
      X