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 CarlTrading, 05-11-2026, 05:56 AM
        0 responses
        27 views
        0 likes
        Last Post CarlTrading  
        Started by CarlTrading, 05-10-2026, 08:12 PM
        0 responses
        20 views
        0 likes
        Last Post CarlTrading  
        Started by Hwop38, 05-04-2026, 07:02 PM
        0 responses
        183 views
        0 likes
        Last Post Hwop38
        by Hwop38
         
        Started by CaptainJack, 04-24-2026, 11:07 PM
        0 responses
        335 views
        0 likes
        Last Post CaptainJack  
        Started by Mindset, 04-21-2026, 06:46 AM
        0 responses
        260 views
        0 likes
        Last Post Mindset
        by Mindset
         
        Working...
        X