Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Minimum of two indicators

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

    Minimum of two indicators

    If I want to code the minimum from two indicator values how would this best be done:
    This is how I thought it might be done:


    Minimum(DonchianChannel(10).Upper[1],SMA(),30)

    #2
    Correct, except the method call needed would be Math.Min here - you pass then two double values in and it will report back the lower one for you.

    A good reference would be - http://www.dotnetperls.com/math
    BertrandNinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by ZenCortexAuCost, Today, 04:24 AM
    0 responses
    3 views
    0 likes
    Last Post ZenCortexAuCost  
    Started by ZenCortexAuCost, Today, 04:22 AM
    0 responses
    0 views
    0 likes
    Last Post ZenCortexAuCost  
    Started by SantoshXX, Today, 03:09 AM
    0 responses
    13 views
    0 likes
    Last Post SantoshXX  
    Started by DanielTynera, Today, 01:14 AM
    0 responses
    2 views
    0 likes
    Last Post DanielTynera  
    Started by yertle, 04-18-2024, 08:38 AM
    9 responses
    42 views
    0 likes
    Last Post yertle
    by yertle
     
    Working...
    X