• If this is your first visit, you will have to register before you can post. To view messages, please scroll below and select the forum that you would like to visits. Questions? Be sure to check out the Forum FAQ.

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 Da vinci, Today, 04:19 PM
      0 responses
      5 views
      0 likes
      Last Post Da vinci  
      Started by brunoviveiros, Today, 09:36 AM
      1 response
      19 views
      0 likes
      Last Post NinjaTrader_BrandonH  
      Started by GARZONJ, Today, 11:22 AM
      1 response
      10 views
      0 likes
      Last Post NinjaTrader_Jesse  
      Started by KonalGondal, Today, 10:18 AM
      1 response
      19 views
      0 likes
      Last Post NinjaTrader_Kate  
      Started by Jorge.andres.o, Today, 09:24 AM
      4 responses
      23 views
      0 likes
      Last Post NinjaTrader_PaulH  
      Working...
      X