Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Take the lesser of 2

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

    Take the lesser of 2

    Hi,
    a simple question : i need to take the lesser of 2 Low.
    For example i have Low[0] and Low[1]
    x = lesser of 2

    Which is the right syntax ?

    Thank in advance

    Luca

    #2
    Hello,

    Thank you for the question.

    You could use the Math.Min method for this.

    https://msdn.microsoft.com/en-us/lib...v=vs.110).aspx

    A simple example would be:

    Code:
    double myMin = Math.Min(Low[0], Low[1]);
    I look forward to being of further assistance.
    JesseNinjaTrader Customer Service

    Comment


      #3
      Thank you very much !

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by siroki, Today, 03:22 AM
      0 responses
      10 views
      0 likes
      Last Post siroki
      by siroki
       
      Started by nailui, Today, 03:01 AM
      1 response
      11 views
      0 likes
      Last Post NinjaTrader_Jason  
      Started by an.fedorov, Today, 02:32 AM
      0 responses
      10 views
      0 likes
      Last Post an.fedorov  
      Started by rustyspring, Today, 01:31 AM
      1 response
      13 views
      0 likes
      Last Post NinjaTrader_Jason  
      Started by op1031, Today, 12:26 AM
      0 responses
      12 views
      0 likes
      Last Post op1031
      by op1031
       
      Working...
      X