Beispiel #1
0
 private void DrawDots()
 {
     if (RawTrend[0] < 0 && Prediction[0] < 0)
     {
         if (Slope(RawTrend, 2, 0) < 0 && Slope(Prediction, 2, 0) < 0 && RawTrend[0] > Prediction[0])
         {
             DotWarn.Set(0);
         }
         if (RawTrend[0] < Prediction[0])
         {
             DotL.Set(0);
         }
         else
         {
             DotU.Set(0);
         }
     }
     else if (RawTrend[0] > 0 && Prediction[0] > 0)
     {
         if (Slope(RawTrend, 2, 0) > 0 && Slope(Prediction, 2, 0) > 0 && RawTrend[0] < Prediction[0])
         {
             DotWarn.Set(0);
         }
         if (RawTrend[0] > Prediction[0])
         {
             DotU.Set(0);
         }
         else
         {
             DotL.Set(0);
         }
     }
 }
Beispiel #2
0
        private void DrawDots()
        {
            if (RawTrend[0] < 0 && Prediction[0] < 0)
            {
//				BackColor = Color.FromArgb(50,Color.DeepPink);  // Added by TheWizard December 10, 2009
                if (Slope(RawTrend, 2, 0) < 0 && Slope(Prediction, 2, 0) < 0 && RawTrend[0] > Prediction[0])
                {
                    DotWarn.Set(0);
                }
                if (RawTrend[0] < Prediction[0])
                {
                    DotL.Set(0);
                }
                else
                {
                    DotU.Set(0);
                }
            }
            else if (RawTrend[0] > 0 && Prediction[0] > 0)
            {
//				BackColor = Color.FromArgb(50,Color.DodgerBlue);  // Added by TheWizard December 10, 2009
                if (Slope(RawTrend, 2, 0) > 0 && Slope(Prediction, 2, 0) > 0 && RawTrend[0] < Prediction[0])
                {
                    DotWarn.Set(0);
                }
                if (RawTrend[0] > Prediction[0])
                {
                    DotU.Set(0);
                }
                else
                {
                    DotL.Set(0);
                }
            }
        }
Beispiel #3
0
 private void DrawDots()
 {
     if ((RawTrend[0] < 0.0) && (Prediction[0] < 0.0))
     {
         if (((Slope(RawTrend, 2, 0) < 0.0) && (Slope(Prediction, 2, 0) < 0.0)) &&
             (RawTrend[0] > Prediction[0]))
         {
             DotWarn.Set(0.0);
         }
         if (RawTrend[0] < Prediction[0])
         {
             DotL.Set(0.0);
         }
         else
         {
             DotU.Set(0.0);
         }
     }
     else if ((RawTrend[0] > 0.0) && (Prediction[0] > 0.0))
     {
         if (((Slope(RawTrend, 2, 0) > 0.0) && (Slope(Prediction, 2, 0) > 0.0)) &&
             (RawTrend[0] < Prediction[0]))
         {
             DotWarn.Set(0.0);
         }
         if (RawTrend[0] > Prediction[0])
         {
             DotU.Set(0.0);
         }
         else
         {
             DotL.Set(0.0);
         }
     }
 }