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 Hwop38, 05-04-2026, 07:02 PM
            0 responses
            169 views
            0 likes
            Last Post Hwop38
            by Hwop38
             
            Started by CaptainJack, 04-24-2026, 11:07 PM
            0 responses
            324 views
            0 likes
            Last Post CaptainJack  
            Started by Mindset, 04-21-2026, 06:46 AM
            0 responses
            250 views
            0 likes
            Last Post Mindset
            by Mindset
             
            Started by M4ndoo, 04-20-2026, 05:21 PM
            0 responses
            353 views
            0 likes
            Last Post M4ndoo
            by M4ndoo
             
            Started by M4ndoo, 04-19-2026, 05:54 PM
            0 responses
            180 views
            0 likes
            Last Post M4ndoo
            by M4ndoo
             
            Working...
            X