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; }
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; }
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); }
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; }
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; }
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; }
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; }
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; }
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; }
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; }
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; }
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; }
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); } } }
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; }
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; }
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; }
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(); }
/// <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(); }
/// <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(); }
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; }
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; }
public PVT(TimeSeries input, Color color, EDrawStyle drawStyle) : base(input) { this.Init(); this.Color = color; this.DrawStyle = drawStyle; }
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; }
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; }
public TR(TimeSeries input, Color color, EDrawStyle drawStyle): base(input) { this.Init(); this.Color = color; this.DrawStyle = drawStyle; }
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); } } }