Exemple #1
0
        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();
        }
Exemple #2
0
 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));
     }
 }
Exemple #3
0
 private void AddValue()
 {
     MaList.Add(new IntValue(Value));
 }