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 Geovanny Suaza, 02-11-2026, 06:32 PM
      0 responses
      574 views
      0 likes
      Last Post Geovanny Suaza  
      Started by Geovanny Suaza, 02-11-2026, 05:51 PM
      0 responses
      332 views
      1 like
      Last Post Geovanny Suaza  
      Started by Mindset, 02-09-2026, 11:44 AM
      0 responses
      101 views
      0 likes
      Last Post Mindset
      by Mindset
       
      Started by Geovanny Suaza, 02-02-2026, 12:30 PM
      0 responses
      553 views
      1 like
      Last Post Geovanny Suaza  
      Started by RFrosty, 01-28-2026, 06:49 PM
      0 responses
      551 views
      1 like
      Last Post RFrosty
      by RFrosty
       
      Working...
      X