예제 #1
0
 public new Daily this[DateTime date, EIndexOption option]
 {
     get
     {
         return(base[date, option] as Daily);
     }
 }
예제 #2
0
파일: DailySeries.cs 프로젝트: heber/FreeOQ
		public new Daily this[DateTime date, EIndexOption option]
		{
			get
			{
				return base[date, option] as Daily;
			}
		}
예제 #3
0
파일: PnFSeries.cs 프로젝트: heber/FreeOQ
		public new PnF this[DateTime datetime, EIndexOption option]
		{
			get
			{
				return ((TimeSeries)this)[datetime, option] as PnF;
			}
		}
예제 #4
0
 public new PnF this[DateTime datetime, EIndexOption option]
 {
     get
     {
         return(((TimeSeries)this)[datetime, option] as PnF);
     }
 }
예제 #5
0
 public new double this[DateTime datetime, EIndexOption option]
 {
     get
     {
         this.Calculate();
         return(base[datetime, option]);
     }
 }
예제 #6
0
파일: DSView.cs 프로젝트: heber/FreeOQ
		public DSView(Pad pad, DoubleSeries series, Color color, EIndexOption option, SmoothingMode smoothing)
			: base(pad)
		{
			this.mainSeries = series;
			this.option = option;
			this.KNRy1kSrcC = color;
			this.IXfyvDxxVL = smoothing;
			this.ToolTipFormat = "toool";
//			this.ToolTipFormat = this.toolTipFormat.Replace(FJDHryrxb1WIq5jBAt.mT707pbkgT(2828), pad.Chart.LabelDigitsCount.ToString());
		}
예제 #7
0
        public DSView(Pad pad, DoubleSeries series, Color color, EIndexOption option, SmoothingMode smoothing)
            : base(pad)
        {
            this.mainSeries    = series;
            this.option        = option;
            this.KNRy1kSrcC    = color;
            this.IXfyvDxxVL    = smoothing;
            this.ToolTipFormat = "toool";
//			this.ToolTipFormat = this.toolTipFormat.Replace(FJDHryrxb1WIq5jBAt.mT707pbkgT(2828), pad.Chart.LabelDigitsCount.ToString());
        }
예제 #8
0
 public new double this[DateTime datetime, EIndexOption option]
 {
     get
     {
         object obj = base[datetime, option];
         if (obj != null)
         {
             return((double)obj);
         }
         throw new Exception("invalid datetime or option" + datetime + option);
     }
 }
예제 #9
0
 public object this[DateTime datetime, EIndexOption option]
 {
     get
     {
         int index = this.GetIndex(datetime, option);
         if (index != -1)
         {
             return(this.fArray[index]);
         }
         else
         {
             return(null);
         }
     }
 }
예제 #10
0
        public virtual int GetIndex(DateTime datetime, EIndexOption option)
        {
            int index = this.fArray.IndexOf(datetime);

            if (index == -1 && option != EIndexOption.Null)
            {
                switch (option)
                {
                case EIndexOption.Next:
                    index = this.fArray.IndexOf(datetime, SearchOption.Next);
                    break;

                case EIndexOption.Prev:
                    index = this.fArray.IndexOf(datetime, SearchOption.Prev);
                    break;
                }
            }
            return(index);
        }
예제 #11
0
파일: TimeSeries.cs 프로젝트: heber/FreeOQ
		public object this[DateTime datetime, EIndexOption option]
		{
			get
			{
				int index = this.GetIndex(datetime, option);
				if (index != -1)
					return this.fArray[index];
				else
					return null;
			}
		}
예제 #12
0
파일: DSView.cs 프로젝트: heber/FreeOQ
		public DSView(Pad pad, DoubleSeries series, EIndexOption option) 
			: this(pad, series, Color.White, option, SmoothingMode.AntiAlias)
		{
		}
예제 #13
0
파일: Indicator.cs 프로젝트: heber/FreeOQ
		public new double this[DateTime datetime, EIndexOption option]
		{
			get
			{
				this.Calculate();
				return base[datetime, option];
			}
		}
예제 #14
0
파일: TimeSeries.cs 프로젝트: heber/FreeOQ
		public virtual int GetIndex(DateTime datetime, EIndexOption option)
		{
			int index = this.fArray.IndexOf(datetime);
			if (index == -1 && option != EIndexOption.Null)
			{
				switch (option)
				{
					case EIndexOption.Next:
						index = this.fArray.IndexOf(datetime, SearchOption.Next);
						break;
					case EIndexOption.Prev:
						index = this.fArray.IndexOf(datetime, SearchOption.Prev);
						break;
				}
			}
			return index;
		}
예제 #15
0
 public override int GetIndex(DateTime datetime, EIndexOption option)
 {
     this.Calculate();
     return(base.GetIndex(datetime, option));
 }
예제 #16
0
 public DSView(Pad pad, DoubleSeries series, EIndexOption option)
     : this(pad, series, Color.White, option, SmoothingMode.AntiAlias)
 {
 }
예제 #17
0
파일: Indicator.cs 프로젝트: heber/FreeOQ
		public override int GetIndex(DateTime datetime, EIndexOption option)
		{
			this.Calculate();
			return base.GetIndex(datetime, option);
		}
예제 #18
0
파일: Chart.cs 프로젝트: heber/FreeOQ
		public void DrawSeries(DoubleSeries series, int padNumber, Color color, SimpleDSStyle style, EIndexOption option, SmoothingMode smoothingMode)
		{
			lock(this.dataLock)
			{
				if (!this.volumePadShown && padNumber > 1)
					--padNumber;
				DSView view = new DSView(this.pads[padNumber], series, color, option, smoothingMode);
				view.Style = style;
				this.pads[padNumber].AddPrimitive(view);
				view.SetInterval(this.leftDateTime, this.rightDateTime);
				this.contentUpdated = true;
			}
		}
예제 #19
0
		public new double this[DateTime datetime, EIndexOption option]
		{
			get
			{
				object obj = base[datetime, option];
				if (obj != null)
					return (double)obj;
				throw new Exception("invalid datetime or option" + datetime + option);
			}
		}