Example #1
0
    public Range(TimeSeries input, int length, Color color, EDrawStyle drawStyle)
			: base(input)  {
      this.length = 14;
      this.length = length;
      this.Init();
			this.fColor = color;
      this.fDrawStyle = drawStyle;
    }
Example #2
0
File: PCL.cs Project: heber/FreeOQ
		public PCL(TimeSeries input, int length, Color color, EDrawStyle drawStyle)	: base(input) 
    {
      this.fLength = 14;
      this.fLength = length;
      this.Init();
      this.Color = color;
      this.DrawStyle = drawStyle;
    }
Example #3
0
 public VROC(TimeSeries input, int length, Color color, EDrawStyle drawStyle) : base(input)
 {
     this.fLength = 14;
     this.fLength = length;
     this.Init();
     this.Color     = color;
     this.DrawStyle = drawStyle;
 }
        public ColorVerticalSliderUserControl()
        {
            InitializeComponent();

            mHSL = new ColorSpaceConverter.HSL(1.0, 1.0, 1.0);
            mRGB = ColorSpaceConverter.HSL2RGB(mHSL);
            mDrawStyle = EDrawStyle.Hue;
            mSliderPos = 0;
        }
        public ColorPaletteUserControl()
        {
            InitializeComponent();

            mHSL = new ColorSpaceConverter.HSL(1.0, 1.0, 1.0);
            mRGB = ColorSpaceConverter.HSL2RGB(mHSL);
            mDrawStyle = EDrawStyle.Hue;
            mMarkerPos = new Point(0, 0);
        }
Example #6
0
 public VWAP(TimeSeries input, int length, BarData option, Color color, EDrawStyle drawStyle) : base(input)
 {
     this.fLength = 14;
     this.fLength = length;
     this.fOption = option;
     this.Init();
     this.Color     = color;
     this.DrawStyle = drawStyle;
 }
Example #7
0
File: EMA.cs Project: heber/FreeOQ
    public EMA(TimeSeries input, int length, BarData option, Color color, EDrawStyle drawStyle)
			: base(input) {
      this.fLength = 14;
      this.fLength = length;
      this.fOption = option;
      this.Init();
      this.Color = color;
      this.DrawStyle = drawStyle;
    }
Example #8
0
File: PERF.cs Project: heber/FreeOQ
    public PERF(TimeSeries input, double k, BarData option, Color color, EDrawStyle drawStyle)
			: base(input) {
      this.fK = 14.0;
      this.fOption = option;
      this.fK = k;
      this.Init();
      this.Color = color;
      this.DrawStyle = drawStyle;
    }
Example #9
0
File: PDI.cs Project: heber/FreeOQ
    public PDI(TimeSeries input, int length, EIndicatorStyle style, Color color, EDrawStyle drawStyle)
			: base(input) {
      this.fLength = 14;
      this.fLength = length;
      this.fStyle = style;
      this.Init();
      this.Color = color;
      this.DrawStyle = drawStyle;
    }
Example #10
0
 public Range(TimeSeries input, int length, Color color, EDrawStyle drawStyle)
     : base(input)
 {
     this.length = 14;
     this.length = length;
     this.Init();
     this.fColor     = color;
     this.fDrawStyle = drawStyle;
 }
Example #11
0
    public D_Fast(TimeSeries input, int length, int order, Color color, EDrawStyle drawStyle)
			: base(input) {
      this.fLength = 14;
      this.fOrder = 10;
      this.fLength = length;
      this.fOrder = order;
      this.Init();
      this.Color = color;
      this.DrawStyle = drawStyle;
    }
Example #12
0
 public DX(TimeSeries input, int length, EIndicatorStyle style, Color color, EDrawStyle drawStyle)
     : base(input)
 {
     this.fLength = 14;
     this.fLength = length;
     this.fStyle  = style;
     this.Init();
     this.Color     = color;
     this.DrawStyle = drawStyle;
 }
Example #13
0
File: VCH.cs Project: heber/FreeOQ
    public VCH(TimeSeries input, int length1, int length2, Color color, EDrawStyle drawStyle)
			:base(input) {
      this.fLength1 = 14;
      this.fLength2 = 10;
      this.fLength1 = length1;
      this.fLength2 = length2;
      this.Init();
      this.Color = color;
      this.DrawStyle = drawStyle;
    }
Example #14
0
 public PERF(TimeSeries input, double k, BarData option, Color color, EDrawStyle drawStyle)
     : base(input)
 {
     this.fK      = 14.0;
     this.fOption = option;
     this.fK      = k;
     this.Init();
     this.Color     = color;
     this.DrawStyle = drawStyle;
 }
Example #15
0
 public VCH(TimeSeries input, int length1, int length2, Color color, EDrawStyle drawStyle)
     : base(input)
 {
     this.fLength1 = 14;
     this.fLength2 = 10;
     this.fLength1 = length1;
     this.fLength2 = length2;
     this.Init();
     this.Color     = color;
     this.DrawStyle = drawStyle;
 }
Example #16
0
 public D_Fast(TimeSeries input, int length, int order, Color color, EDrawStyle drawStyle)
     : base(input)
 {
     this.fLength = 14;
     this.fOrder  = 10;
     this.fLength = length;
     this.fOrder  = order;
     this.Init();
     this.Color     = color;
     this.DrawStyle = drawStyle;
 }
Example #17
0
 public UltOsc(TimeSeries input, int n1, int n2, int n3, Color color, EDrawStyle drawStyle)
     :  base(input)
 {
     this.fN1 = 14;
     this.fN2 = 10;
     this.fN3 = 5;
     this.fN1 = n1;
     this.fN2 = n2;
     this.fN3 = n3;
     this.Init();
     this.Color     = color;
     this.DrawStyle = drawStyle;
 }
Example #18
0
        public override void Draw(string option)
        {
            if (Chart.Pad == null)
            {
                new Canvas("Canvas Name", "Canvas Title");
            }
            if (option.ToLower().IndexOf("DrawStyle=Bar") != -1)
            {
                this.fDrawStyle = EDrawStyle.Bar;
            }
            if (option.ToLower().IndexOf("DrawStyle=Circle") != -1)
            {
                this.fDrawStyle = EDrawStyle.Circle;
            }
            if (option.ToLower().IndexOf("DrawStyle=Line") != -1)
            {
                this.fDrawStyle = EDrawStyle.Line;
            }
            Chart.Pad.Add(this);
            Chart.Pad.Title.Add(this.Name, this.Color);
            Chart.Pad.Legend.Add(this.Name, this.Color);
            Chart.Pad.AxisBottom.Type        = EAxisType.DateTime;
            Chart.Pad.AxisBottom.LabelFormat = "";
            if (this.Count > 0)
            {
                if ((this.LastDateTime - this.FirstDateTime).TotalSeconds / (double)(this.Count - 1) >= 86400.0)
                {
                    Chart.Pad.AxisBottom.LabelFormat = "";
                    this.ToolTipDateTimeFormat       = "";
                }
                else
                {
                    Chart.Pad.AxisBottom.LabelFormat = "";
                    this.ToolTipDateTimeFormat       = "";
                }

                if (option.ToLower().IndexOf("Range") == -1)
                {
                    double xMin = (double)this.FirstDateTime.Ticks;
                    double xMax = (double)this.LastDateTime.Ticks;
                    double min  = this.GetMin();
                    double max  = this.GetMax();
                    Chart.Pad.SetRange(xMin, xMax, min, max);
                }
            }
        }
Example #19
0
File: MACD.cs Project: heber/FreeOQ
    public MACD(TimeSeries input, int length1, int length2, BarData option, Color color, EDrawStyle drawStyle)
			: base(input) {
      this.fLength1 = 14;
      this.fLength2 = 10;
      this.fLength1 = length1;
      this.fLength2 = length2;
      this.fOption = option;
      this.Init();
      this.Color = color;
      this.DrawStyle = drawStyle;
    }
Example #20
0
File: RSI.cs Project: heber/FreeOQ
    public RSI(TimeSeries input, int length, BarData option, EIndicatorStyle style, Color color, EDrawStyle drawStyle)
			: base(input)  {
      this.fLength = 14;
      this.fLength = length;
      this.fOption = option;
      this.fStyle = style;
      this.Init();
      this.Color = color;
      this.DrawStyle = drawStyle;
    }
Example #21
0
 public HV(TimeSeries input, int length, double span, BarData option, Color color, EDrawStyle drawStyle)
     : base(input)
 {
     this.fLength = 14;
     this.fSpan   = 20.0;
     this.fLength = length;
     this.fSpan   = span;
     this.fOption = option;
     this.Init();
     this.Color     = color;
     this.DrawStyle = drawStyle;
 }
Example #22
0
    public D_Slow(TimeSeries input, int length, int order1, int order2, Color color, EDrawStyle drawStyle)
			: base(input) {
      this.fLength = 14;
      this.fOrder1 = 10;
      this.fOrder2 = 5;
      this.fLength = length;
      this.fOrder1 = order1;
      this.fOrder2 = order2;
      this.Init();
      this.Color = color;
      this.DrawStyle = drawStyle;
    }
        /// <summary>
        /// Init the ColorBox
        /// </summary>
        /// <param name="size">The size of the new ColorBox</param>
        public ColorBox(Size size)
        {
            this.mHsl = new Hsl { H = 1, S = 1, L = 1 };

            this.mRgb = Utilities.HslToRgb(this.mHsl);
            this.mEDrawStyle = EDrawStyle.Hue;

            this.mWidth = size.Width;
            this.mHeight = size.Height;

            this.DrawControl();
        }
        /// <summary>
        /// Init the VerticalColorSlider
        /// </summary>
        /// <param name="size"></param>
        public VerticalColorSlider(Size size)
        {
            this.mHsl = new Hsl();
            this.mHsl.H = 1;
            this.mHsl.S = 1;
            this.mHsl.L = 1;

            this.mRgb = Utilities.HslToRgb(this.mHsl);
            this.mEDrawStyle = EDrawStyle.Hue;

            this.mHeight = size.Height;
            this.mWidth = size.Width;

            this.DrawControl();
        }
Example #25
0
        /// <summary>
        ///     Init the VerticalColorSlider
        /// </summary>
        /// <param name="size"></param>
        /// <param name="disabled"></param>
        public VerticalColorSlider(Size size, bool disabled = false)
        {
            this.mHsl = new Hsl { H = 1, S = 1, L = 1 };

            this.mRgb = Utilities.HslToRgb(this.mHsl);
            this.mEDrawStyle = EDrawStyle.Hue;

            this.mHeight = size.Height;
            this.mWidth = size.Width;

            this.mDisabled = disabled;

            this.DrawControl();
        }
Example #26
0
        /// <summary>
        /// Init the VerticalAlphaSlider
        /// </summary>
        /// <param name="size"></param>
        public VerticalAlphaSlider(Size size, bool disabled = false)
        {
            this.mHsl = new Hsl();
            this.mHsl.H = 1;
            this.mHsl.S = 0;
            this.mHsl.L = 1;

            this.mRgb = Utilities.HslToRgb(this.mHsl);
            this.mEDrawStyle = EDrawStyle.Brightness;

            this.mHeight = size.Height;
            this.mWidth = size.Width;

            this.mDisabled = disabled;

            this.DrawControl();
        }
Example #27
0
File: ENVL.cs Project: heber/FreeOQ
    public ENVL(TimeSeries input, int length, double shift, BarData option, Color color, EDrawStyle drawStyle)
			: base(input) {
      this.fLength = 14;
      this.fShift = 20.0;
      this.fLength = length;
      this.fShift = shift;
      this.fOption = option;
      this.Init();
      this.Color = color;
      this.DrawStyle = drawStyle;
    }
Example #28
0
File: HV.cs Project: heber/FreeOQ
    public HV(TimeSeries input, int length, double span, BarData option, Color color, EDrawStyle drawStyle)
			: base(input)  {
      this.fLength = 14;
      this.fSpan = 20.0;
      this.fLength = length;
      this.fSpan = span;
      this.fOption = option;
      this.Init();
      this.Color = color;
      this.DrawStyle = drawStyle;
    }
Example #29
0
 public ENVU(TimeSeries input, int length, double shift, BarData option, Color color, EDrawStyle drawStyle)
     : base(input)
 {
     this.fLength = 14;
     this.fShift  = 20.0;
     this.fLength = length;
     this.fShift  = shift;
     this.fOption = option;
     this.Init();
     this.Color     = color;
     this.DrawStyle = drawStyle;
 }
Example #30
0
 public D_Slow(TimeSeries input, int length, int order1, int order2, Color color, EDrawStyle drawStyle)
     : base(input)
 {
     this.fLength = 14;
     this.fOrder1 = 10;
     this.fOrder2 = 5;
     this.fLength = length;
     this.fOrder1 = order1;
     this.fOrder2 = order2;
     this.Init();
     this.Color     = color;
     this.DrawStyle = drawStyle;
 }
Example #31
0
 public RSI(TimeSeries input, int length, BarData option, EIndicatorStyle style, Color color, EDrawStyle drawStyle)
     : base(input)
 {
     this.fLength = 14;
     this.fLength = length;
     this.fOption = option;
     this.fStyle  = style;
     this.Init();
     this.Color     = color;
     this.DrawStyle = drawStyle;
 }
Example #32
0
 public PVT(TimeSeries input, Color color, EDrawStyle drawStyle) : base(input)
 {
     this.Init();
     this.Color     = color;
     this.DrawStyle = drawStyle;
 }
Example #33
0
 public OSC(TimeSeries input, int length1, int length2, BarData option, Color color, EDrawStyle drawStyle)
     : base(input)
 {
     this.fLength1 = 14;
     this.fLength2 = 20;
     this.fLength1 = length1;
     this.fLength2 = length2;
     this.fOption  = option;
     this.Init();
     this.Color     = color;
     this.DrawStyle = drawStyle;
 }
Example #34
0
    public UltOsc(TimeSeries input, int n1, int n2, int n3, Color color, EDrawStyle drawStyle)
			:  base(input){
      this.fN1 = 14;
      this.fN2 = 10;
      this.fN3 = 5;
      this.fN1 = n1;
      this.fN2 = n2;
      this.fN3 = n3;
      this.Init();
      this.Color = color;
      this.DrawStyle = drawStyle;
    }
Example #35
0
File: TR.cs Project: heber/FreeOQ
		public TR(TimeSeries input, Color color, EDrawStyle drawStyle): base(input)
    {
      this.Init();
      this.Color = color;
      this.DrawStyle = drawStyle;
    }
Example #36
0
		public override void Draw(string option)
		{
			if (Chart.Pad == null)
			{
				new Canvas("Canvas Name", "Canvas Title");
			}
			if (option.ToLower().IndexOf("DrawStyle=Bar") != -1)
				this.fDrawStyle = EDrawStyle.Bar;
			if (option.ToLower().IndexOf("DrawStyle=Circle") != -1)
				this.fDrawStyle = EDrawStyle.Circle;
			if (option.ToLower().IndexOf("DrawStyle=Line") != -1)
				this.fDrawStyle = EDrawStyle.Line;
			Chart.Pad.Add(this);
			Chart.Pad.Title.Add(this.Name, this.Color);
			Chart.Pad.Legend.Add(this.Name, this.Color);
			Chart.Pad.AxisBottom.Type = EAxisType.DateTime;
			Chart.Pad.AxisBottom.LabelFormat = "";
			if (this.Count > 0)
			{
				if ((this.LastDateTime-this.FirstDateTime).TotalSeconds / (double)(this.Count - 1) >= 86400.0)
				{
					Chart.Pad.AxisBottom.LabelFormat = "";
					this.ToolTipDateTimeFormat = "";
				}
				else
				{
					Chart.Pad.AxisBottom.LabelFormat = "";
					this.ToolTipDateTimeFormat = "";
				}

				if (option.ToLower().IndexOf("Range") == -1)
				{
					double xMin = (double)this.FirstDateTime.Ticks;
					double xMax = (double)this.LastDateTime.Ticks;
					double min = this.GetMin();
					double max = this.GetMax();
					Chart.Pad.SetRange(xMin, xMax, min, max);
				}
			}
		}