Ejemplo n.º 1
0
 public UserIndicator(ISeries input)
 {
     this.input = input;
     if (input is global::OpenQuant.API.TimeSeries)
     {
         this.series = (input as global::OpenQuant.API.TimeSeries).series;
     }
     if (input is global::OpenQuant.API.BarSeries)
     {
         this.series = (input as global::OpenQuant.API.BarSeries).series;
     }
     if (input is global::OpenQuant.API.Indicator)
     {
         this.series = (input as global::OpenQuant.API.Indicator).indicator;
     }
     this.indicator = new SmartQuant.Indicators.Indicator(this.series);
 }
Ejemplo n.º 2
0
		public UserIndicator(ISeries input)
		{
			this.input = input;
			if (input is global::OpenQuant.API.TimeSeries)
			{
				this.series = (input as global::OpenQuant.API.TimeSeries).series;
			}
			if (input is global::OpenQuant.API.BarSeries)
			{
				this.series = (input as global::OpenQuant.API.BarSeries).series;
			}
			if (input is global::OpenQuant.API.Indicator)
			{
				this.series = (input as global::OpenQuant.API.Indicator).indicator;
			}
			this.indicator = new SmartQuant.Indicators.Indicator(this.series);
		}