using MarketData.MarketDataModel; using MarketData.Utils; using System; using System.Collections.Generic; using System.Linq; using System.Runtime.Serialization; using System.Text; using System.Threading.Tasks; namespace MarketData.MarketDataModel { public class RSIDictionary : Dictionary { } public class RSICollection : List { public RSICollection() { } public RSICollection(List rsiElements) { foreach(RSIElement rsiElement in rsiElements)Add(rsiElement); } public RSICollection Top(int count,int offset=0) { if (count > Count) return null; RSICollection rsiCollection = new RSICollection(); for (int index = 0+offset; index Count) return null; RSICollection rsiCollection = new RSICollection(); for (int index = Count-1-offset; index>=0 && rsiCollection.Count