예제 #1
0
파일: TimeSeries.cs 프로젝트: heber/FreeOQ
		public virtual bool CrossesAbove(Indicator indicator, DateTime dateTime)
		{
			return this.series.CrossesAbove((FreeQuant.Series.TimeSeries)indicator.indicator, dateTime);
		}
예제 #2
0
파일: Canvas.cs 프로젝트: heber/FreeOQ
		public void Add(Indicator indicator)
		{
			indicator.indicator.Draw();
		}
예제 #3
0
파일: TimeSeries.cs 프로젝트: heber/FreeOQ
		public virtual Cross Crosses(Indicator indicator, DateTime dateTime)
		{
			return EnumConverter.Convert(this.series.Crosses((FreeQuant.Series.TimeSeries)indicator.indicator, dateTime));
		}
예제 #4
0
		public Cross Crosses(Indicator indicator, Bar bar)
		{
			return EnumConverter.Convert(this.series.Crosses(indicator.indicator, bar.bar));
		}
예제 #5
0
		public bool CrossesAbove(Indicator indicator, Bar bar)
		{
			return this.series.CrossesAbove(indicator.indicator, bar.bar);
		}
예제 #6
0
파일: Strategy.cs 프로젝트: heber/FreeOQ
 public void Draw(Indicator indicator, int padNumber, DrawStyle style)
 {
   if (indicator is UserIndicator)
     (indicator as UserIndicator).Init();
   this.Draw((DoubleSeries) indicator.indicator, padNumber, style);
 }
예제 #7
0
파일: Strategy.cs 프로젝트: heber/FreeOQ
 public void Draw(Indicator indicator, DrawStyle style)
 {
   int padNumber = -1;
   switch ((int) indicator.indicator.Type)
   {
     case 0:
     case 2:
       padNumber = this.maxPadNumber + 1;
       break;
     case 1:
       padNumber = 0;
       break;
   }
   if (indicator is UserIndicator)
     (indicator as UserIndicator).Init();
   this.Draw((DoubleSeries) indicator.indicator, padNumber, style);
 }
예제 #8
0
		public virtual bool CrossesAbove(Indicator indicator, DateTime dateTime)
		{
			return this.series.CrossesAbove(indicator.indicator, dateTime);
		}