예제 #1
0
 public virtual Cross Crosses(TimeSeries series, DateTime dateTime)
 {
     return(EnumConverter.Convert(this.series.Crosses(series.series, dateTime)));
 }
예제 #2
0
 public virtual Cross Crosses(double level, Bar bar)
 {
     return(EnumConverter.Convert(this.series.Crosses(level, this.series.GetIndex(bar.DateTime))));
 }
예제 #3
0
 public virtual Cross Crosses(BarSeries series, Bar bar, BarData barData)
 {
     return(EnumConverter.Convert(this.series.Crosses(series.series, bar.bar, (int)barData)));
 }
예제 #4
0
 public virtual Cross Crosses(Indicator indicator, DateTime dateTime)
 {
     return(EnumConverter.Convert(this.series.Crosses(indicator.indicator, dateTime)));
 }
예제 #5
0
 public static void Add(Instrument instrument, DateTime datetime, BidAsk side, OrderBookAction action, int position, double price, int size)
 {
     DataManager.Add(instrument, new OrderBookUpdate(new MarketDepth(datetime, string.Empty, position, EnumConverter.Convert(action), EnumConverter.Convert(side), price, size)));
 }
예제 #6
0
 public virtual Cross Crosses(BarSeries series, Bar bar)
 {
     return(EnumConverter.Convert(this.series.Crosses(series.series, bar.bar)));
 }
예제 #7
0
 public virtual Cross Crosses(BarSeries series, Bar bar)
 {
     return(EnumConverter.Convert(this.series.Crosses((FreeQuant.Series.TimeSeries)series.series, bar.bar)));
 }
예제 #8
0
 public static BarSeries GetHistoricalBars(Instrument instrument, DateTime begin, DateTime end, BarType barType, long barSize)
 {
     FreeQuant.Instruments.Instrument instrument1 = Map.OQ_FQ_Instrument[(object)instrument] as FreeQuant.Instruments.Instrument;
     if (barSize == 86400)
     {
         return(new BarSeries((FreeQuant.Series.BarSeries)FreeQuant.Instruments.DataManager.GetDailySeries(instrument1, begin, end)));
     }
     else
     {
         return(new BarSeries(FreeQuant.Instruments.DataManager.GetBarSeries(instrument1, begin, end, EnumConverter.Convert(barType), barSize)));
     }
 }
예제 #9
0
 public virtual Cross Crosses(BarSeries series, Bar bar, BarData barData)
 {
     return(EnumConverter.Convert(((FreeQuant.Series.TimeSeries) this.indicator).Crosses((FreeQuant.Series.TimeSeries)series.series, bar.bar, (int)barData)));
 }
예제 #10
0
 public virtual Cross Crosses(double level, Bar bar)
 {
     return(EnumConverter.Convert(((FreeQuant.Series.TimeSeries) this.indicator).Crosses(level, ((FreeQuant.Series.TimeSeries) this.indicator).GetIndex(bar.DateTime))));
 }
예제 #11
0
 public virtual Cross Crosses(Indicator indicator, Bar bar)
 {
     return(EnumConverter.Convert(((FreeQuant.Series.TimeSeries) this.indicator).Crosses((FreeQuant.Series.TimeSeries)indicator.indicator, bar.bar)));
 }
예제 #12
0
 ///<summary>
 ///  Checks if this indicator crosses a bar series above at specified dateTime
 ///</summary>
 public virtual Cross Crosses(TimeSeries series, DateTime dateTime)
 {
     return(EnumConverter.Convert(((FreeQuant.Series.TimeSeries) this.indicator).Crosses((FreeQuant.Series.TimeSeries)series.series, dateTime)));
 }
예제 #13
0
 private BarRequest(SmartQuant.Data.BarType barType, long barSize, bool isBarFactoryRequest) : this(EnumConverter.Convert(barType), barSize, isBarFactoryRequest)
 {
 }
예제 #14
0
 public Cross Crosses(Indicator indicator, Bar bar)
 {
     return(EnumConverter.Convert(this.series.Crosses(indicator.indicator, bar.bar)));
 }
예제 #15
0
 public void Add(BarType barType, long size, DateTime beginTime, DateTime endTime, double open, double high, double low, double close, long volume, long openInt)
 {
     this.series.Add(new SmartQuant.Data.Bar(EnumConverter.Convert(barType), size, beginTime, endTime, open, high, low, close, volume, openInt));
 }