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

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
    BertrandNinjaTrader Customer Service

    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 jaybedreamin, Today, 05:56 PM
            0 responses
            2 views
            0 likes
            Last Post jaybedreamin  
            Started by DJ888, 04-16-2024, 06:09 PM
            6 responses
            18 views
            0 likes
            Last Post DJ888
            by DJ888
             
            Started by Jon17, Today, 04:33 PM
            0 responses
            1 view
            0 likes
            Last Post Jon17
            by Jon17
             
            Started by Javierw.ok, Today, 04:12 PM
            0 responses
            6 views
            0 likes
            Last Post Javierw.ok  
            Started by timmbbo, Today, 08:59 AM
            2 responses
            10 views
            0 likes
            Last Post bltdavid  
            Working...
            X