Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Minimum Value

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

    Minimum Value

    Is there a way to code the following indicator?

    value = Range / Volume;

    if (Value[0] = Lowest(Value, 20))
    {
    DrawArrowUp("MyArrowUp"+CurrentBar, 0, Low[0]-0.15, Color.Yellow);
    }



    I can do the then part, but the if statement is giving me trouble. I am trying to draw an arrow whenever the parameter Value is lower then it was in the last 20 bars.
    Last edited by lvaduva; 10-30-2009, 12:16 PM.

    #2
    lvaduva, if you want to assign a value use one equal sign, to check for equality please use a double one ( == ).

    Comment


      #3
      I did that but how do I find the lowest value? When compliling the name Lowest does not exist. Is there a function that I can use to retain the lowest value for the last 20 bars and compare against current?

      Comment


        #4
        Sorry yes, please use MIN() for this - http://www.ninjatrader-support.com/H...inimumMIN.html

        Comment


          #5
          Here is a pic of the error I get attached
          Attached Files

          Comment


            #6
            The MIN method expects a dataseries input, not a double variable as in your posted screenshot - http://www.ninjatrader-support.com/H...iesObject.html

            Comment

            Latest Posts

            Collapse

            Topics Statistics Last Post
            Started by Geovanny Suaza, 02-11-2026, 06:32 PM
            0 responses
            612 views
            0 likes
            Last Post Geovanny Suaza  
            Started by Geovanny Suaza, 02-11-2026, 05:51 PM
            0 responses
            355 views
            1 like
            Last Post Geovanny Suaza  
            Started by Mindset, 02-09-2026, 11:44 AM
            0 responses
            105 views
            0 likes
            Last Post Mindset
            by Mindset
             
            Started by Geovanny Suaza, 02-02-2026, 12:30 PM
            0 responses
            561 views
            1 like
            Last Post Geovanny Suaza  
            Started by RFrosty, 01-28-2026, 06:49 PM
            0 responses
            564 views
            1 like
            Last Post RFrosty
            by RFrosty
             
            Working...
            X