예제 #1
0
파일: Sample1.cs 프로젝트: seredasv/TRx
 /// <summary>
 /// необъодимо вызывать метов из переопределения консольной команды
 /// Бары
 /// </summary>
 public void ConsoleHandlerB()
 {
     Console.Clear();
     foreach (Bar item in TradingData.Instance.Get <IEnumerable <Bar> >().OrderBy(i => i.DateTime))
     //foreach (Bar item in TradingData.Instance.Get<IEnumerable<Bar>>())
     {
         TradeConsole.ConsoleWriteLineBar(item);
         //TradeHubStarter.sendBarString(item);
         TradeHubStarter.sendBar(item);
     }
     //foreach (double item in indicatorsOnBar.MaFast)
     //{
     //    TradeHubStarter.sendDouble1(item);
     //}
     //foreach (double item in indicatorsOnBar.MaSlow)
     //{
     //    TradeHubStarter.sendDouble2(item);
     //}
     foreach (var item in indicatorsOnBar.MaFastValue)
     {
         TradeHubStarter.sendValueDouble1(item);
     }
     foreach (var item in indicatorsOnBar.MaSlowValue)
     {
         TradeHubStarter.sendValueDouble2(item);
     }
     foreach (var item in indicatorsOnBar.CrossX)
     {
         TradeHubStarter.sendValueBool(item);
     }
 }
예제 #2
0
 /// <summary>
 /// Бары
 /// </summary>
 virtual public void ConsoleHandlerB()
 {
     Console.Clear();
     Console.WriteLine("Base.ConsoleHandlerB()");
     foreach (Bar item in TradingData.Instance.Get <IEnumerable <Bar> >().OrderBy(i => i.DateTime))
     //foreach (Bar item in TradingData.Instance.Get<IEnumerable<Bar>>())
     {
         TradeConsole.ConsoleWriteLineBar(item);
         //TradeHubStarter.sendBarString(item);
         TradeHubStarter.sendBar(item);
     }
 }