Esempio n. 1
0
 public void Fill_OHLC(GF.Api.Contracts.IContract contract, GF.Api.Subscriptions.Bars.Bar bar)
 {
     L.Add(bar.Low);
     H.Add(bar.High);
     O.Add(bar.Open);
     C.Add(bar.Close);
     Console.WriteLine("OHLC Lists Filled");
 }
Esempio n. 2
0
 private static void DisplayBar(GF.Api.Contracts.IContract contract, GF.Api.Subscriptions.Bars.Bar bar)
 {
     Console.WriteLine(
         "{0} {1} O:{2} H:{3} L:{4} C:{5} Vol:{6} Ticks:{7} UpVol:{8} DownVol:{9}",
         contract.Symbol,
         bar.OpenTimestamp.ToLocalTime(),
         contract.PriceToString(bar.Open),
         contract.PriceToString(bar.High),
         contract.PriceToString(bar.Low),
         contract.PriceToString(bar.Close),
         bar.Volume,
         bar.Ticks,
         bar.UpVolume,
         bar.DownVolume);
 }