• If this is your first visit, you will have to register before you can post. To view messages, please scroll below and select the forum that you would like to visits. Questions? Be sure to check out the Forum FAQ.

Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Visible Chart Price

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

    Visible Chart Price

    Hi guys,

    Is there a way I can call the lowest and highest price that's visible on my chart? To be clear it's the current high and low of prices that's visible in the panel.

    Thanks!

    #2
    Hello Bluebeep,

    For the visible bars only, likely the best way to accomplish this would be to use similar code to what OnRender or OnCalculateMinMax uses.

    https://ninjatrader.com/support/help...alculateMinMax
    https://ninjatrader.com/support/help...htsub=onrender

    The loop over the visible range of bars would essentially be the same in both cases, this could also be used from other areas like OnBarUpdate if necessary. The fundamental is the loop over the range of visible bars by using ChartBars.FromIndex and ChartBars.ToIndex.

    I look forward to being of further assistance.
    JesseNinjaTrader Customer Service

    Comment


      #3
      Thank you!

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by Sannyttaffaw, Today, 04:14 AM
      0 responses
      1 view
      0 likes
      Last Post Sannyttaffaw  
      Started by canuck, Yesterday, 07:52 PM
      0 responses
      6 views
      0 likes
      Last Post canuck
      by canuck
       
      Started by itrader46, 10-21-2019, 11:12 PM
      2 responses
      20 views
      0 likes
      Last Post koganam
      by koganam
       
      Started by walter739, Yesterday, 06:04 PM
      0 responses
      4 views
      0 likes
      Last Post walter739  
      Started by MarkWise, Yesterday, 03:04 PM
      2 responses
      9 views
      0 likes
      Last Post MarkWise  
      Working...
      X