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 cmoran13, 04-16-2026, 01:02 PM
            0 responses
            43 views
            0 likes
            Last Post cmoran13  
            Started by PaulMohn, 04-10-2026, 11:11 AM
            0 responses
            25 views
            0 likes
            Last Post PaulMohn  
            Started by CarlTrading, 03-31-2026, 09:41 PM
            1 response
            163 views
            1 like
            Last Post NinjaTrader_ChelseaB  
            Started by CarlTrading, 04-01-2026, 02:41 AM
            0 responses
            98 views
            1 like
            Last Post CarlTrading  
            Started by CaptainJack, 03-31-2026, 11:44 PM
            0 responses
            158 views
            2 likes
            Last Post CaptainJack  
            Working...
            X