/// <summary>
        /// Called on each bar update event (incoming tick).
        /// </summary>
        protected override void OnBarUpdate()
        {
            diff.Set(High[0] - Low[0]);

            double middle = EMA(Typical, Period)[0];
            double offset = EMA(diff, Period)[0] * offsetMultiplier;

            double upper = middle + offset;
            double lower = middle - offset;

            Midline.Set(middle);
            Upper.Set(upper);
            Lower.Set(lower);

            if (Rising(Midline))
            {
                PlotColors[1][0] = upColor;
                PlotColors[2][0] = upColor;
            }
            if (Falling(Midline))
            {
                PlotColors[1][0] = dnColor;
                PlotColors[2][0] = dnColor;
            }
        }
Exemplo n.º 2
0
 public Panos_1(String SVGPanos1String)
 {
     int tempInt;
     String[] valuesString = SVGPanos1String.Split(' ');
     if (int.TryParse(valuesString[0], out tempInt))
         family = (Family)tempInt;
     if (int.TryParse(valuesString[1], out tempInt))
         serifStyle = (Serif_Style)tempInt;
     if (int.TryParse(valuesString[2], out tempInt))
         weight = (Weight)tempInt;
     if (int.TryParse(valuesString[3], out tempInt))
         proportion = (Proportion)tempInt;
     if (int.TryParse(valuesString[4], out tempInt))
         contrast = (Contrast)tempInt;
     if (int.TryParse(valuesString[5], out tempInt))
         strokeVariation = (Stroke_Variation)tempInt;
     if (int.TryParse(valuesString[6], out tempInt))
         armStyle = (Arm_Style)tempInt;
     if (int.TryParse(valuesString[7], out tempInt))
         letterform = (Letterform)tempInt;
     if (int.TryParse(valuesString[8], out tempInt))
         midline = (Midline)tempInt;
     if (int.TryParse(valuesString[0], out tempInt))
         xHeight = (XHeight)tempInt;
 }
Exemplo n.º 3
0
        /// <summary>
        /// Called on each bar update event (incoming tick).
        /// </summary>
        protected override void OnBarUpdate()
        {
            diff.Set(High[0] - Low[0]);

            double middle = SMA(Typical, Period)[0];
            double offset = SMA(diff, Period)[0] * offsetMultiplier;

            double upper = middle + offset;
            double lower = middle - offset;

            Midline.Set(middle);
            Upper.Set(upper);
            Lower.Set(lower);
        }
Exemplo n.º 4
0
            public Panos_1(String SVGPanos1String)
            {
                int tempInt;

                String[] valuesString = SVGPanos1String.Split(' ');
                if (int.TryParse(valuesString[0], out tempInt))
                {
                    family = (Family)tempInt;
                }
                if (int.TryParse(valuesString[1], out tempInt))
                {
                    serifStyle = (Serif_Style)tempInt;
                }
                if (int.TryParse(valuesString[2], out tempInt))
                {
                    weight = (Weight)tempInt;
                }
                if (int.TryParse(valuesString[3], out tempInt))
                {
                    proportion = (Proportion)tempInt;
                }
                if (int.TryParse(valuesString[4], out tempInt))
                {
                    contrast = (Contrast)tempInt;
                }
                if (int.TryParse(valuesString[5], out tempInt))
                {
                    strokeVariation = (Stroke_Variation)tempInt;
                }
                if (int.TryParse(valuesString[6], out tempInt))
                {
                    armStyle = (Arm_Style)tempInt;
                }
                if (int.TryParse(valuesString[7], out tempInt))
                {
                    letterform = (Letterform)tempInt;
                }
                if (int.TryParse(valuesString[8], out tempInt))
                {
                    midline = (Midline)tempInt;
                }
                if (int.TryParse(valuesString[0], out tempInt))
                {
                    xHeight = (XHeight)tempInt;
                }
            }