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

Math.max method? Long time reader, first time poster ;)

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

    Math.max method? Long time reader, first time poster ;)

    Hey everyone.

    I am currently in my first year of programming and could definitively use some help.

    I am trying to solve this problem but I am completely stumped.

    "Write a program that asks the user for three sales amounts, sends all thre arguments to Math.max(), and the displays the results. Does the Math.max() method accept three arguments?"

    "Uaing Javascript, write a program to find the maximum of three sales amounts by testing whether the Math.max() method can accept three arguments."


    Could someone please assist me, would be greatly appreciated

    #2
    backspace,

    Is this a NinjaTrader related question or a general programming question? Is this a Java question or a C# question? Please keep in mind that NinjaTrader uses C#.

    Please let me know if I may be of further assistance.
    Adam P.NinjaTrader Customer Service

    Comment


      #3
      Sorry

      Its just a general question and Java

      Comment


        #4
        backspace,

        Hopefully someone can help you. Unfortunately this is beyond the scope of our support.

        I believe Java is similar to C# in that you can do something like :

        Math.Max( Math.Max ( item1 , item2 ) , item 3);

        Please let me know if you require any assistance with NinjaTrader or programming in NinjaTrader.
        Last edited by NinjaTrader_AdamP; 02-08-2012, 01:32 PM.
        Adam P.NinjaTrader Customer Service

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by pmachiraju, 11-01-2023, 04:46 AM
        8 responses
        147 views
        0 likes
        Last Post rehmans
        by rehmans
         
        Started by mattbsea, Today, 05:44 PM
        0 responses
        5 views
        0 likes
        Last Post mattbsea  
        Started by RideMe, 04-07-2024, 04:54 PM
        6 responses
        33 views
        0 likes
        Last Post RideMe
        by RideMe
         
        Started by tkaboris, Today, 05:13 PM
        0 responses
        4 views
        0 likes
        Last Post tkaboris  
        Started by GussJ, 03-04-2020, 03:11 PM
        16 responses
        3,282 views
        0 likes
        Last Post Leafcutter  
        Working...
        X