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 sjsj2732, 03-23-2026, 04:31 AM
            0 responses
            69 views
            0 likes
            Last Post sjsj2732  
            Started by NullPointStrategies, 03-13-2026, 05:17 AM
            0 responses
            312 views
            0 likes
            Last Post NullPointStrategies  
            Started by argusthome, 03-08-2026, 10:06 AM
            0 responses
            306 views
            0 likes
            Last Post argusthome  
            Started by NabilKhattabi, 03-06-2026, 11:18 AM
            0 responses
            146 views
            1 like
            Last Post NabilKhattabi  
            Started by Deep42, 03-06-2026, 12:28 AM
            0 responses
            105 views
            0 likes
            Last Post Deep42
            by Deep42
             
            Working...
            X