Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Get price range of chart

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

    Get price range of chart

    Hi

    How can I find out in script what is the highest price of chart and the lowest price in chart ?
    The question has nothing to do with the bars in the chart , just the price axis.

    Found it:
    double minValue=chartScale.MinValue;
    double maxValue=chartScale.MaxValue;
    Last edited by doron; 03-27-2016, 02:26 PM.

    #2
    Thanks for posting the solution you found.

    I would also advise ensuring you have chartScale != null checks as well prior to accessing them.

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by AttiM, 02-14-2024, 05:20 PM
    12 responses
    213 views
    0 likes
    Last Post DrakeiJosh  
    Started by cre8able, 02-11-2023, 05:43 PM
    3 responses
    237 views
    0 likes
    Last Post rhubear
    by rhubear
     
    Started by frslvr, 04-11-2024, 07:26 AM
    8 responses
    117 views
    1 like
    Last Post NinjaTrader_BrandonH  
    Started by stafe, 04-15-2024, 08:34 PM
    10 responses
    47 views
    0 likes
    Last Post stafe
    by stafe
     
    Started by rocketman7, Today, 09:41 AM
    3 responses
    12 views
    0 likes
    Last Post NinjaTrader_Jesse  
    Working...
    X