Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

SortedList with internal class IndexOfValue

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

    SortedList with internal class IndexOfValue

    I know this is not supported but I could really use a tip. Trying to learn how to get the Index of a Value using internal class. I have found many references for basic KeyValuePairs but nothing on internal class. Could someone pass a website showing this procedure or offer a solution?


    internal class IndicatorInfo
    {
    public int DescriptionType= 0;
    public string TempOne = "";
    public string TempTwo = "";
    }
    private SortedList<double, IndicatorInfo> IndicatorValueList = new SortedList<double, IndicatorInfo>();


    Obviously this does not work nor has many, many other variations:
    int IndexOfTempOne = IndicatorValueList.IndexOfValue(TempOneString);

    I need to find what does work.
    Bar Tab for the solution.

    #2
    Hello,

    You have checked out MSDN right?

    Represents a collection of key/value pairs that are sorted by the keys and are accessible by key and by index.


    Otherwise I will leave this thread open for other members of the forum to check in.

    Let me know if I can be of further assistance.
    BrettNinjaTrader Product Management

    Comment


      #3
      Brett,

      Yes I have checked that page as well as many others. I have found many examples of a Key and one Value but nothing on multiple Values. Obviously I am either missing some concept or perhaps it is not possible. Don't know which.

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by CarlTrading, 05-11-2026, 05:56 AM
      0 responses
      26 views
      0 likes
      Last Post CarlTrading  
      Started by CarlTrading, 05-10-2026, 08:12 PM
      0 responses
      20 views
      0 likes
      Last Post CarlTrading  
      Started by Hwop38, 05-04-2026, 07:02 PM
      0 responses
      182 views
      0 likes
      Last Post Hwop38
      by Hwop38
       
      Started by CaptainJack, 04-24-2026, 11:07 PM
      0 responses
      335 views
      0 likes
      Last Post CaptainJack  
      Started by Mindset, 04-21-2026, 06:46 AM
      0 responses
      260 views
      0 likes
      Last Post Mindset
      by Mindset
       
      Working...
      X