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 CarlTrading, 03-31-2026, 09:41 PM
      1 response
      129 views
      1 like
      Last Post NinjaTrader_ChelseaB  
      Started by CarlTrading, 04-01-2026, 02:41 AM
      0 responses
      74 views
      1 like
      Last Post CarlTrading  
      Started by CaptainJack, 03-31-2026, 11:44 PM
      0 responses
      117 views
      2 likes
      Last Post CaptainJack  
      Started by CarlTrading, 03-30-2026, 11:51 AM
      0 responses
      111 views
      1 like
      Last Post CarlTrading  
      Started by CarlTrading, 03-30-2026, 11:48 AM
      0 responses
      89 views
      0 likes
      Last Post CarlTrading  
      Working...
      X