Пример #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));
 }