Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Max/Min List

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

    Max/Min List

    apologize if it is a stupid question but I am new to C#.

    any help on this matter would be appreciated.

    I am looking to the equivalent of MaxList/MinList in tradestasion.

    Math.min and Math.max are good for only 2 numbers, I need something that will work with 4 different numbers.

    thx
    Nir

    #2
    I believe you would need to do something like:

    Math.Max(Math.Max(Math.Max(value1, value2), value3), value4)
    RayNinjaTrader Customer Service

    Comment


      #3
      thx will try it

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by Jeremytang, 07-14-2018, 06:45 PM
      21 responses
      439 views
      0 likes
      Last Post mav8rick  
      Started by LeonK, Yesterday, 09:26 PM
      1 response
      8 views
      0 likes
      Last Post bltdavid  
      Started by NicholasJoannette, Yesterday, 03:01 PM
      2 responses
      11 views
      0 likes
      Last Post NicholasJoannette  
      Started by rach1994, Yesterday, 12:20 PM
      1 response
      35 views
      0 likes
      Last Post bltdavid  
      Started by litamm89, Yesterday, 11:00 AM
      5 responses
      22 views
      1 like
      Last Post rafael_delima86  
      Working...
      X