Esempio n. 1
0
        public FreeQuant.Data.Bar FilterBarOpen(FreeQuant.Data.Bar bar, string symbol)
        {
            Bar bar1 = this.oqFilter.FilterBarOpen(new Bar(bar), symbol);

            if (bar1 != null)
            {
                return(bar1.bar);
            }
            else
            {
                return((FreeQuant.Data.Bar)null);
            }
        }
Esempio n. 2
0
 ///<summary>
 ///  Gets bar with specified time stamp in the series
 ///</summary>
 public Bar this[DateTime dateTime]
 {
     get
     {
         FreeQuant.Data.Bar bar = this.series[dateTime];
         if (bar == null)
         {
             return(null);
         }
         else
         {
             return(new Bar(bar));
         }
     }
 }
Esempio n. 3
0
File: Bar.cs Progetto: heber/FreeOQ
		internal Bar(FreeQuant.Data.Bar bar)
		{
			this.bar = bar;
		}
Esempio n. 4
0
File: Bar.cs Progetto: heber/FreeOQ
		public Bar(DateTime dateTime, double open, double high, double low, double close, long volume, long size)
		{
			this.bar = new FreeQuant.Data.Bar(dateTime, open, high, low, close, volume, size);
		}
Esempio n. 5
0
 internal Bar(FreeQuant.Data.Bar bar)
 {
     this.bar = bar;
 }
Esempio n. 6
0
 public Bar(DateTime dateTime, double open, double high, double low, double close, long volume, long size)
 {
     this.bar = new FreeQuant.Data.Bar(dateTime, open, high, low, close, volume, size);
 }