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 cmtjoancolmenero, Yesterday, 05:05 PM
            2 responses
            30 views
            0 likes
            Last Post cmtjoancolmenero  
            Started by naanku, Yesterday, 07:25 PM
            1 response
            10 views
            0 likes
            Last Post NinjaTrader_Gaby  
            Started by nissan200sx55, Yesterday, 06:25 AM
            3 responses
            15 views
            0 likes
            Last Post NinjaTrader_Jesse  
            Started by memonic, 05-01-2024, 01:23 PM
            6 responses
            32 views
            0 likes
            Last Post NinjaTrader_Jesse  
            Started by fredericlebre, Today, 01:19 AM
            1 response
            15 views
            0 likes
            Last Post NinjaTrader_Erick  
            Working...
            X