示例#1
0
        /// <summary>
        /// generate random ticks for single symbol
        /// </summary>
        /// <param name="sym"></param>
        /// <param name="Ticks"></param>
        /// <returns></returns>
        public static Tick[] GenerateSymbol(string sym, int Ticks)
        {
            RandomTicks rt = new RandomTicks(new string[] { sym });

            rt.Generate(Ticks);
            return(rt.Ticks[0]);
        }
示例#2
0
 /// <summary>
 /// generate random ticks for single symbol
 /// </summary>
 /// <param name="sym"></param>
 /// <param name="Ticks"></param>
 /// <returns></returns>
 public static Tick[] GenerateSymbol(string sym, int Ticks)
 {
     RandomTicks rt = new RandomTicks(new string[] { sym });
     rt.Generate(Ticks);
     return rt.Ticks[0];
 }