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); } } }
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); } } }
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); } } }
private void CatchZLR() { if (DotL.ContainsValue(1) || DotU.ContainsValue(1)) { return; } if (CrossAbove(RawTrend, 0, 3) && RawTrend[0] < 0) { // BackColor = Color.FromArgb(50,Color.DodgerBlue); // Added by TheWizard December 10, 2009 _zlr.Set(-1); DrawTriangleDown("ZLRs" + CurrentBar, true, 0, High[0] + (TickSize * TriangleDisplacement), DownColor); } if (CrossBelow(RawTrend, 0, 3) && RawTrend[0] > 0) { // BackColor = Color.FromArgb(50,Color.DeepPink); // Added by TheWizard December 10, 2009 _zlr.Set(1); DrawTriangleUp("ZLRL" + CurrentBar, true, 0, Low[0] - (TickSize * TriangleDisplacement), UpColor); } }
private void CatchZLR() { if (DotL.ContainsValue(1) || DotU.ContainsValue(1)) { return; } if (CrossAbove(RawTrend, 0, 3) && RawTrend[0] < 0) { _zlr.Set(-1); DrawTriangleDown("ZLRs" + CurrentBar, true, 0, 0 + TickSize, Color.Black); //DrawText("ZLR"+CurrentBar, true, "ZLRS", 0, RawTrend[1], 5, Color.Yellow, textFont, StringAlignment.Center, Color.Empty, Color.Empty, 1); } if (CrossBelow(RawTrend, 0, 3) && RawTrend[0] > 0) { _zlr.Set(1); DrawTriangleUp("ZLRL" + CurrentBar, true, 0, 0 - TickSize, Color.GreenYellow); //DrawText("ZLR" + CurrentBar, true, "ZLRL", 0, RawTrend[1], -5, Color.Yellow, textFont, StringAlignment.Center, Color.Empty, Color.Empty, 1); } }