• 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 Newtrader101, Today, 12:12 PM
      0 responses
      2 views
      0 likes
      Last Post Newtrader101  
      Started by ganesaraja12, Today, 11:09 AM
      0 responses
      5 views
      0 likes
      Last Post ganesaraja12  
      Started by Newtrader101, Today, 08:51 AM
      5 responses
      35 views
      0 likes
      Last Post NinjaTrader_ShawnB  
      Started by rodrigo.martineldutto, Today, 07:45 AM
      2 responses
      21 views
      0 likes
      Last Post rodrigo.martineldutto  
      Started by jhoenle, Today, 06:38 AM
      1 response
      18 views
      0 likes
      Last Post NinjaTrader_ChrisL  
      Working...
      X