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 Brevo, Today, 01:45 AM
        0 responses
        6 views
        0 likes
        Last Post Brevo
        by Brevo
         
        Started by aussugardefender, Today, 01:07 AM
        0 responses
        3 views
        0 likes
        Last Post aussugardefender  
        Started by pvincent, 06-23-2022, 12:53 PM
        14 responses
        242 views
        0 likes
        Last Post Nyman
        by Nyman
         
        Started by TraderG23, 12-08-2023, 07:56 AM
        9 responses
        384 views
        1 like
        Last Post Gavini
        by Gavini
         
        Started by oviejo, Today, 12:28 AM
        0 responses
        6 views
        0 likes
        Last Post oviejo
        by oviejo
         
        Working...
        X