Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

system.math

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

    system.math

    I want to use some of the trigonometric members of system.math, but cannot find a list anywhere.
    In the help guide - NinjaScript Language Reference - C# Method (Functions) Reference, there are pointers to 'members' of system.math .DateTime and .String, but they lead nowhere. Presumably Mirosoft have reorganised their documentation and Ninja have not.
    I have searched through the Developers Network stuff but cannot find anything about this, can someone point me in the right direction please?

    Best Regards
    Dave

    #2
    Hi DaveS,

    Please check out this link - http://msdn.microsoft.com/en-us/libr...nd(VS.80).aspx

    Comment


      #3
      Thanks very much Bertrand

      Comment


        #4
        // Calculate Math Functions.
        // double degree = 25; // Degrees


        // Calculate the tangent of 30 degrees.
        // angle = 30;
        // radians = angle * (Math.PI/180);
        // result = Math.Tan(angle * (Math.PI/180));
        // Console.WriteLine("The tangent of 30 degrees is {0}.", result);
        // Calculate the arctangent of the previous tangent.
        // radians = Math.Atan(result);
        // angle = radians * (180/Math.PI);


        // double radians = degree * (Math.PI/180); // Convert Degrees to Radians
        // double degrees = (radians)*(180/Math.PI); // Convert Radians to Degrees

        // double TANR = Math.Tan(degrees); // Convert Degrees to Tan Radians
        // double ATANR = Math.Atan(degrees); // Convert Degrees to Atan Radians
        // double SINR = Math.Sin(degrees); // Convert Degrees to Sin Radians
        // double COSR = Math.Cos(degrees); // Convert Degrees to Cos Radians


        // double ATAND = ATANR / (Math.PI/180); // Convert Atan Radians to Atan Degrees
        // double SIND = Math.Sin(SINR * (Math.PI/180)); // Convert Sin Radians to Sin Degrees
        // double COSD = Math.Cos(COSR * (Math.PI/180)); // Convert Cos Radians to Cos Degrees


        // double TAND = Math.Tan((degree) * (Math.PI/180)); // Convert Degrees to Tan Degrees
        // double ATAND = Math.Atan(degree) / (Math.PI/180); // Convert Degrees to Atan Degrees
        // double SIND = Math.Sin((degree) * (Math.PI/180)); // Convert Degrees to Sin Degrees
        // double COSD = Math.Cos((degree) * (Math.PI/180)); // Convert Degrees to Cos Degrees
        RJay
        NinjaTrader Ecosystem Vendor - Innovative Trading Solutions

        Comment


          #5
          Thanks for posting.
          RayNinjaTrader Customer Service

          Comment


            #6
            Many thanks rt6176. I have done some programing in visual c++, but Ninja is my first experience of C#, so I am just beginning to find my way around. It realy is good that help is available so quickly here. I do appreciate it very much.

            Comment

            Latest Posts

            Collapse

            Topics Statistics Last Post
            Started by Hwop38, 05-04-2026, 07:02 PM
            0 responses
            164 views
            0 likes
            Last Post Hwop38
            by Hwop38
             
            Started by CaptainJack, 04-24-2026, 11:07 PM
            0 responses
            318 views
            0 likes
            Last Post CaptainJack  
            Started by Mindset, 04-21-2026, 06:46 AM
            0 responses
            246 views
            0 likes
            Last Post Mindset
            by Mindset
             
            Started by M4ndoo, 04-20-2026, 05:21 PM
            0 responses
            350 views
            0 likes
            Last Post M4ndoo
            by M4ndoo
             
            Started by M4ndoo, 04-19-2026, 05:54 PM
            0 responses
            179 views
            0 likes
            Last Post M4ndoo
            by M4ndoo
             
            Working...
            X