static void Main(string[] args) { List <string> plakalar1 = new List <string>(); plakalar1.Add("01-Adana"); MaList <string> plakalar2 = new MaList <string>(); plakalar2.Add("02-Adıyaman"); Console.WriteLine(plakalar2.Count); plakalar2.List(); }
private void RecordBars(IList <IStrategyOnBarInfo> bars) { for (int i = 0; i < bars.Count; i++) { IStrategyOnBarInfo barInfo = bars[i]; KLinePeriod period = barInfo.KLinePeriod; List <double> MaList; if (dic_Period_MA.ContainsKey(period)) { MaList = dic_Period_MA[period]; } else { MaList = new List <double>(); dic_Period_MA.Add(period, MaList); } MaList.Add(GetMa(barInfo, this.maPeriod)); } }
private void AddValue() { MaList.Add(new IntValue(Value)); }