Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

how can i find certain value in series without using bars ago coz they r unknown

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

    how can i find certain value in series without using bars ago coz they r unknown

    hi
    i made string and data series
    and put unique values in string series
    and un unique values in data series
    can i access the unique value in string series with its value only
    and then can i access the paralell values of data series close high time volume which r present at the position of the unique value of string series
    "like as in excel sheet when accessing certain value u can access all values in thatrow"
    thanks

    #2
    i found "list" in some codes here but no mention of it in help guide????

    Comment


      #3
      Hello ahmedallam,

      Thank you for writing in.

      If you wish to check what index a value is at, I would suggest utilizing a for loop.

      As an example:
      Code:
      int index = 0;
      
      for (int i = CurrentBar; i > -1; i--)
      {
           // replace myValue variable below with your value variable/value itself
           if (myDataSeries[i] == myValue;
           {
                index = i; // assign index variable to i
                break; // break out of for loop because it is no longer necessary to keep looking for the value
           }
      }
      With this index value, you can go and obtain the value at the same index for your other DataSeries.

      Example:
      Code:
      Print(myOtherDataSeries[index]);
      For more information about for loops, please take a look at this Dot Net Perls link: http://www.dotnetperls.com/for

      Please, let us know if we may be of further assistance.
      Zachary G.NinjaTrader Customer Service

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by Hwop38, 05-04-2026, 07:02 PM
      0 responses
      174 views
      0 likes
      Last Post Hwop38
      by Hwop38
       
      Started by CaptainJack, 04-24-2026, 11:07 PM
      0 responses
      329 views
      0 likes
      Last Post CaptainJack  
      Started by Mindset, 04-21-2026, 06:46 AM
      0 responses
      252 views
      0 likes
      Last Post Mindset
      by Mindset
       
      Started by M4ndoo, 04-20-2026, 05:21 PM
      0 responses
      355 views
      0 likes
      Last Post M4ndoo
      by M4ndoo
       
      Started by M4ndoo, 04-19-2026, 05:54 PM
      0 responses
      182 views
      0 likes
      Last Post M4ndoo
      by M4ndoo
       
      Working...
      X