Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Bars on chart or price range on chart

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

  • NinjaTrader_Dierk
    replied
    Unfortunately this is not supported.

    Leave a comment:


  • sbgtrading
    replied
    The CurrentBar gives a count of the total number of bars loaded (which could be 5 days worth of intraday bars). I'm looking for a way to determine how many bars are displayed in the current chart window. It would be helpful to know this so we can write text data to the screen at the leftmost bar of the window, at the topmost price of the window. Metatrader has a number of window functions (WindowBarsOnChart specifically, as well as WindowPriceMin and WindowPriceMax) that get us this info.

    Leave a comment:


  • NinjaTrader_JoshP
    replied
    To get the number of bars in your bars object you can use this property:
    Code:
    CurrentBar
    http://www.ninjatrader-support.com/H...urrentBar.html

    To get max and min price of the current chart you will just have to roll your own algorithm. Store the value of a high and a low. If the next bar is higher then replace that high. etc etc.

    Leave a comment:


  • NinjaTrader_Dierk
    replied
    Unfortunately this is not supported.

    Leave a comment:


  • sbgtrading
    started a topic Bars on chart or price range on chart

    Bars on chart or price range on chart

    Are there a functions I can call to determine:

    1) The number of bars on the current chart
    2) The max & min price on the current chart

Latest Posts

Collapse

Topics Statistics Last Post
Started by goddilybuy, Today, 10:22 PM
0 responses
1 view
0 likes
Last Post goddilybuy  
Started by goddilybuy, Today, 10:21 PM
0 responses
1 view
0 likes
Last Post goddilybuy  
Started by godaily1, Today, 10:20 PM
0 responses
1 view
0 likes
Last Post godaily1  
Started by godaily1, Today, 10:19 PM
0 responses
1 view
0 likes
Last Post godaily1  
Started by mo_fi, Today, 10:08 PM
0 responses
1 view
0 likes
Last Post mo_fi
by mo_fi
 
Working...
X