• 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 stevenev1, Today, 01:43 PM
      0 responses
      3 views
      0 likes
      Last Post stevenev1  
      Started by shinuvu, Today, 11:05 AM
      2 responses
      12 views
      0 likes
      Last Post shinuvu
      by shinuvu
       
      Started by Hagar, Yesterday, 07:12 PM
      1 response
      14 views
      0 likes
      Last Post NinjaTrader_ChrisL  
      Started by PBreen, Today, 11:59 AM
      1 response
      7 views
      0 likes
      Last Post NinjaTrader_ShawnB  
      Started by johnnybegoode, 01-14-2019, 07:24 PM
      13 responses
      544 views
      0 likes
      Last Post seeseea
      by seeseea
       
      Working...
      X