• 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

how to get the highest Value from custom DataSeries

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

    how to get the highest Value from custom DataSeries

    Hi

    I was trying to get the Highest Bar/Point from my own DataSeries. But it dosen´t work.
    I always get the Value from the newest Data that was saved in this DataSeries Object.

    I tried it this way:

    DataSeries MyDataSeries;

    myDataSeriesHigh=MyDataSeries[HighestBar(MyDataSeries,period)];

    When I tried it with the High or Low DataSeries,it worked.

    Thank you for your help.

    #2
    Hello FlexW,

    Have you double checked that the values saved in this series are expected values and that they are being set on every bar?

    Also, to find the highest value instead of finding the bar number of the highest value, use the MAX() method.

    MAX(DataSeries, period)
    http://ninjatrader.com/support/helpG...aximum_max.htm
    Chelsea B.NinjaTrader Customer Service

    Comment


      #3
      With the MAX Method, it works correctly. Thank you!

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by reks13, Today, 01:52 AM
      1 response
      6 views
      0 likes
      Last Post NinjaTrader_ChrisSch  
      Started by tonynt, Today, 02:48 AM
      0 responses
      5 views
      0 likes
      Last Post tonynt
      by tonynt
       
      Started by cls71, Today, 02:11 AM
      2 responses
      11 views
      0 likes
      Last Post NinjaTrader_ChrisSch  
      Started by RB104, Today, 01:52 AM
      0 responses
      4 views
      0 likes
      Last Post RB104
      by RB104
       
      Started by raffu, Today, 01:35 AM
      1 response
      12 views
      0 likes
      Last Post raffu
      by raffu
       
      Working...
      X