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, 03-31-2026, 09:41 PM
        1 response
        41 views
        0 likes
        Last Post NinjaTrader_ChelseaB  
        Started by CarlTrading, 04-01-2026, 02:41 AM
        0 responses
        20 views
        0 likes
        Last Post CarlTrading  
        Started by CaptainJack, 03-31-2026, 11:44 PM
        0 responses
        29 views
        1 like
        Last Post CaptainJack  
        Started by CarlTrading, 03-30-2026, 11:51 AM
        0 responses
        46 views
        0 likes
        Last Post CarlTrading  
        Started by CarlTrading, 03-30-2026, 11:48 AM
        0 responses
        37 views
        0 likes
        Last Post CarlTrading  
        Working...
        X