Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Finding the size a candle

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

    Finding the size a candle

    What is the easiest way to find out the size of the candle that just closed?

    Thanks in advance.

    #2
    Hi cirion, you could use Range() for that - http://www.ninjatrader-support.com/H...eV6/Range.html

    Code:
    [COLOR=#0000ff]double[/COLOR] value = Range()[0]; 
    Print("The current bar's range is " + value.ToString());

    Comment


      #3
      Does exactly what i want. Thanks again Bertrand, you know i looked through all the reference commands for ninjascript but did not think of the indicator list

      Comment


        #4
        You are welcome cirion, see this is very handy, when you build an indicator it automatically becomes a method that can be reused in other scripts easily (other platforms would call this a function).

        Comment

        Latest Posts

        Collapse

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